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.
Questions tagged [gdcm]
100 questions
1
vote
1 answer
LNK1181: cannot open input file 'D:\programs\gdcm-2.6.2\qt-build\bin.obj'
I have built debug and release configurations of gdcm 2.6.2 using cmake followed by ALL_BUILD option in MS-VS 2013. When i try to link the libraries so created in my Qt 5.5.1 Project, i get the error:
LINK : fatal error LNK1181: cannot open input…

Maelstorm
- 580
- 2
- 10
- 29
1
vote
1 answer
Using gdcm libs in UE4
For my UE4 project I want to use the GDCM libraries for C++ to load CT Scans. So I really tried a lot the last few days but I'm still not able to use GDCM... But where is the error? Can someone help me?
I created the dll and lib files with CMake…

MelD
- 31
- 6
1
vote
2 answers
Compile GDCM with VTK and OPENJPEG
I have successfully compiled GDCM 2.4.4 and VTK 5.10.1 on Ubuntu server 14.04.
But now I have to use JPEG2000 images and my program, that uses GDCM and VTK, is very slow.
So i have decided to recompile GDCM with OPENJPEG 1.5 library (alredy…

user4970092
- 21
- 3
1
vote
1 answer
GDCM: I'd like to do a simple sharpening filter to the image, but have no idea how to change the pixel value
I'm new to GDCM(c++). What I want to do, is to code a very simple laplacian filter to the dicom image. I have gotten the buffer of the image, but what to do next? Is there a method that can let me access the pixels with coordinates as in a 2D array?…

YFan
- 11
- 1
1
vote
4 answers
The type initializer for 'gdcm.gdcmPINVOKE' threw an exception
first time for using gdcm in c#
has an exception in the first line.
please, any help
gdcm.ImageReader gReader = new gdcm.ImageReader();
gReader.SetFileName(inputFile);
the error is:
The type initializer for 'gdcm.gdcmPINVOKE' threw an…

user4598741
- 11
- 1
- 2
1
vote
1 answer
Using gdcm (Grassroots DICOM) to Decompress DICOM Image Data
Is it possible to use the Python wrappers for GDCM to decode the image data in a DICOM file?
I have a byte array / string with the bytes of the image data in a DICOM file (i.e. the contents of tag 7fe0,0010 ("Pixel Data")) and I want to decode the…

Alex Rothberg
- 10,243
- 13
- 60
- 120
1
vote
1 answer
gdcm2vtk usage to convert a stack of images into a vti file
I've managed to compile GDCM with VTK and I have a particular application I would like to use, which is the "gdcm2vtk.exe".
Now, how's the syntax for converting a stack of imags into a ".vti" file? so far I have this:
gdcm2vtk Input_Directory…

Matimont
- 739
- 3
- 14
- 33
1
vote
2 answers
gdcmimg to convert stack of DICOM images into a vti file?
I've compiled GDCM using CMake (using VS2012). However, I can't find gdcm2vtk.exe in my bin/Debug folder.
I was able to find gdcmimg.exe, would that one work to convert a stack of images into 3D?
I've read somewhere that if I'm able to generate a…

Matimont
- 739
- 3
- 14
- 33
1
vote
1 answer
Qt + GDCM problems with the libs
I'm trying to use the library gdcm in my project. However I'm with some problem.
gdcmGlobal.cxx:-1: error: undefined reference to gdcm::System::FileIsDirectory(char const*)'
gdcmGlobal.cxx:-1: error: undefined reference…

wallacesouza
- 21
- 4
1
vote
2 answers
Programming with GDCM in Windows and changing pixel data with VTK?
I have two questions.
First: I haven't got any definite documentation on how to use the GDCM library in Windows. Is it at all possible to use GDCM library in Visual Studio in windows? If so, could you please provide me any instruction how to install…

the_naive
- 2,936
- 6
- 39
- 68
1
vote
4 answers
Retrieving gdcm DataElement values as strings
I am basically trying to read out all or most attribute values from a DICOM file, using the gdcm C++ library. I am having hard time to get out any non-string values. The gdcm examples generally assume I know the group/element numbers beforehand so I…

Paavo
- 111
- 1
- 10
0
votes
0 answers
Why am I getting LNK2019 errors in visual studio with GDCM and vcpkg
I'm pretty new to vcpkg, but it seems like a handy tool. However, it doesn't seem to help me overcome the normal-for-me linking issues as hoped/promised. I'm trying to use GDCM in a visual studio project, but get LNK2019 errors.
When installing the…

DrDiagnosis
- 1
- 2
0
votes
1 answer
Opening a compressed Dicom (MONOCHROME2) file in Python
I tried to open a Dicom file which is a compressed version (JPEG 2000 Image Compression).
I used different free software tools as well as Python libraries (pydicom, VTK, OpenCV) to open it, but they were unsuccessful
In pydicom, decompress()…

Amin
- 63
- 10
0
votes
0 answers
QT, GDCM lib problems. "Undefined reference to '_imp_ZNgdcmr11ImageReader...'
I want to run GDCM lib (v.3.0.0) using C ++ in the API QT 5.13.1 (MinGW 7.3.0 64-bit) to read DICOM files. This is normal when I include the header files and see all the methods in the libraries. But here
ascending error when I try to…

Ilya Osmakov
- 1
- 1
0
votes
1 answer
exception during string assignment from GDCM
I have a Qt application that I am building with newer versions of VC++ and GDCM. I had built the application previously with VC++ 2015, and old version of GDCM, and it compiled and ran just fine. Now I'm running into an exception in a string…

Greg B
- 609
- 6
- 19