Questions tagged [gdcm]

Grassroots DICOM (GDCM) is a cross-platform library written in C++ for DICOM medical files. It's automatically wrapped to Python/C#/Java & PHP (using swig). It supports RAW, JPEG (lossy/lossless), J2K, JPEG-LS, RLE and deflated. Parts 3, 6 & 7 of the DICOM standard are included as XML files. GDCM can be used to build a JPIP or WADO server. Questions about just using the bundled applications are off-topic for Stack Overflow, unless programming specific.

100 questions
1
vote
0 answers

how to install gdcm from sources in linux?

I can't find how to install gdcm, from sources, in Xubuntu. I've downloaded tha latest snapshot from gdcm, version 2.2.0. http://sourceforge.net/projects/gdcm/files/gdcm%202.x/GDCM%202.2.0/ It contains four…
Mark A.
  • 193
  • 1
  • 3
  • 14
1
vote
1 answer

Qt Creator + gdcm (Grassroots DICOM): can't link libraries

I'm using Qt Creator 2.4.1 under Xubuntu 11.10. I've installed libgdcm2-dev (2.0.17) in repositories. Now I have /usr/include/gdcm-2.0 /usr/lib/gdcm-2.0* and a lot of *.so related to gdcm in /usr/lib/ Writing code, I can autocomplete sentences…
Mark A.
  • 193
  • 1
  • 3
  • 14
1
vote
1 answer

Read Multiframe DICOM images using ITK

I can read single frame DICOM images fine. But I am not sure how to go about reading a multi frame DICOM file, which say, has multiple images in a single DICOM file. Here is the code I use to read single frame DICOM. I am thinking along the lines…
over.drive
  • 287
  • 1
  • 6
  • 15
1
vote
1 answer

How to use GDCM to write voxel data, slice by slice?

In all the examples I've seen for GDCM on how to write image data, they always consider the image volume as a single whole, cohesive buffer. The basic structure is along the lines #include "gdcmImage.h" #include "gdcmImageWriter.h" #include…
datenwolf
  • 159,371
  • 13
  • 185
  • 298
1
vote
1 answer

JPEG2000 Losses Read DICOM in Python 3.7

In my Python 3.7, I want to read DICOM. But I face this notification: NotImplementedError: this transfer syntax JPEG 2000 Image Compression (Lossless Only), can not be read because Pillow lacks the jpeg 2000 decoder plugin. I've tried this…
1
vote
2 answers

Most efficient way to change the value of a specific tag in a DICOM file using GDCM

I have a need to go through a set of DICOM files and modify certain tags to be current with the data maintained in the database of an external system. I am looking to use GDCM. I am new to GDCM. A search through stack overflow posts demonstrates…
Bill
  • 1,241
  • 17
  • 25
1
vote
2 answers

Installing GDCM on Windows -- ImportError

I am trying to install GDCM on Windows (10, x64) so I can use the GDCM package with Python 3.6.5, and am finding it completely impossible. I have tried every combination of: Installing GDCM-2.8.7-Windows-x86_64, GDCM-2.8.7-Windows-x86.exe,…
Jase
  • 41
  • 1
  • 6
1
vote
0 answers

how to install gdcm python wrapping on Windows System?

After reading this:https://github.com/neurosnap/mudicom/blob/master/docs/install.rst Download from here:https://github.com/malaterre/GDCM/releases install it and Copy the gdcm.py&gdcmswig.py to site-packages folder, run this sample…
Kamil
  • 594
  • 1
  • 8
  • 28
1
vote
1 answer

gdcmanon - Requested cryptoraphic library not configured

I am using gdcmanon to anonimize dicom files like the following: LD_LIBRARY_PATH=../lib ./gdcmanon --certificate CA_cert.cer -e ./dump ./dump/anon But it gives the following error: Error: In…
Nafis Abdullah Khan
  • 2,062
  • 3
  • 22
  • 39
1
vote
1 answer

ImageReader Access violation with release config in gdcm

I want to use the x64 gdcm library in my c++ app and it works in debug builds, But when i make a build with release configuration then i have : Access violation reading location 0x0000000000000008. When calling getDataSet() function : gdcm::File…
masoud khanlo
  • 189
  • 1
  • 14
1
vote
1 answer

How to decompress a compressed DICOM image with gdcm and Python?

I'm working with compressed DICOM images I would like to decompress, with Python 2.7 on Ubuntu 14. I'm using gdcm, which I've installed following this link (sudo apt-get install python-gdcm) I'm using this example to decompress an image (at least…
Soltius
  • 2,162
  • 1
  • 16
  • 28
1
vote
0 answers

Building GDCM with VTK

I tried to do (hxr99.blogspot.nl/2013/03/qt-vtk-displaying-dicom-series-using.html) but Qt throws error : error: LNK1104: cannot open file 'vtkgdcm.lib' I did everything in here for windows. I checked GDCM_USE_VTK and GDCM_BUILD_SHARED_LIBS and then…
Chubakapra
  • 11
  • 3
1
vote
1 answer

Apply LUT using GDCM on DICOM File

I have an RLE compressed DICOM file that has PALETTE_COLOR photometric interpretation. Using GDCM, I can get the fragment using this code: gdcm.ImageReader imagereader = new gdcm.ImageReader(); imagereader.SetFileName(fileName); if…
gege
  • 25
  • 8
1
vote
0 answers

Generating a simple CT DICOM image using GDCM

I need to generate a series of CT DICOM images (512x512, MONOCHROME) using the GDCM library. Because of the structure of the application that I am working on, it is ideal for me to separately prepare gdcm::Image and gdcm::File instances for each…
S.G.
  • 357
  • 2
  • 15
1
vote
1 answer

GDCM python DICOM decompression

I executed this python script. An error happened in the line t = gdcm.Orientation.GetType(dircos) The error information is: Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/IPython/core/interactiveshell.py", line 2820, in…
Huayu Zhang
  • 207
  • 4
  • 11