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
3
votes
2 answers

How to read a multiple frames DICOM file by c++ library?

How do you read a multiple frame DICOM file that is a single file contains many 2D XA images (for example, barre.nom.fr/medical/samples). I know the software (dicom2), java library (dcm4che2) and matlab method(dicomread) can do this, but is there…
Cheery
  • 45
  • 6
2
votes
0 answers

CMake error - " Some (but not all) targets in this export set were already defined."

I am trying to build a library that is dependent on GDCM. So, I've installed GDCM following instructions that were provided in INSTAL.txt file and did not have any trouble doing it. But, when I tried to use cmake to build the library that is…
Stefan Radonjic
  • 1,449
  • 4
  • 19
  • 38
2
votes
1 answer

Why importing pydicom rise AttributeError: module 'gdcm' has no attribute 'DataElement'

After having installed libgdcm-tools (2.6.6-3) on my system (via apt install libgdcm-tools) I am not longer able to import pydicom in Python. When running import pydicom as pdc I got the following error AttributeError: module 'gdcm' has no attribute…
fednem
  • 95
  • 2
  • 13
2
votes
0 answers

How to build a native nuget package

I am trying to build the nuget package of the GDCM project. This project is written in C++ and offer a C# binding using SWIG. Here is my current attempt: This is based mostly on: https://stackoverflow.com/a/52459363/136285 And references…
malat
  • 12,152
  • 13
  • 89
  • 158
2
votes
1 answer

How can I install GDCM with the Python wrapper?

I'm on Ubuntu 16.04 and have been trying like crazy to install GDCM so I can use it with Python. I have pipenv installed, and I suspect that's causing issues. I did sudo apt-get install libgdcm2.6 python-gdcm. It seems to install fine, but when I…
Shamoon
  • 41,293
  • 91
  • 306
  • 570
2
votes
1 answer

GDCM C-Move issue with studies containing documents/reports

I don't think I"m going to get the answer I want but I figured I would ask before giving up with GDCM. I've built a tool using the GDCM library to do some Query/Retrieve on our local PACS. During testing, everything worked fine, but now that I've…
2
votes
1 answer

Convert bmp image into DICOM

I have 800 images in BMP format and I would like to convert them into DICOM. I have started like this, but it is not working for some reason. My experience with VTK is limited: file_in = 'C:/programfile/image.bmp' file_out =…
user622170
  • 21
  • 1
  • 3
2
votes
1 answer

How to render / display multiframe dicom images in vtk?

I am using gdcm ImageReader to read multiframe dicom file. It reads multiframe correctly but I am unable to display the multiframe dicom file. I am using vtkImageViewer to display single frame image, vtkImageViewer viewer = new vtkImageViewer(); …
Namrata
  • 173
  • 8
2
votes
0 answers

VTK- missing semicolon error

I am building VtkGdcm c# wrappers on visual studio 2010. At the following line i got the possibly missing semicolon error. Its header file. vtkStringArray.h VTK_NEWINSTANCE vtkArrayIterator * NewIterator() ; Any help will be appreciated.
Namrata
  • 173
  • 8
2
votes
1 answer

Draw dicom raw data in qt

I'm trying to develop a tool to visualize dicom images I'm using itk library but i have some problem drawing the data I'm using gdcm library provided by itk library as a third party lib. I'm reading the image correctly i retrieved the tags ... but…
Adah
  • 113
  • 7
2
votes
1 answer

GDCM: getting tag value

I am trying to read and write the attribute values of a dicom file. The interfaces shall be something like this: // only need to support std::string, int, float, float*, etc. template T getTagValue(const DataSet& ds, const Tag&…
Steve
  • 1,448
  • 11
  • 18
2
votes
1 answer

Opening file-like object with Python wrapper of gdcm (Grassroots DICOM)

Using the SWIG generated Python wrappers for gdcm: Is there some way to pass the gdcm.ImageReader a file-like object rather than having to pass the fileName? Currently I load a DICOM file using: image_reader = gdcm.ImageReader() …
Alex Rothberg
  • 10,243
  • 13
  • 60
  • 120
2
votes
1 answer

build gdcm 2.4.1 with cmake and msvc 2010 can't get all the dlls

I build the gdcm following the instruction, no c# wrapping, with GDCM_BUILD_SHARED_LIBS checked (using the cmake-gui), after configured and generated, open the msvc2010 and buildall, I find the content of the build_dir\bin\debug are all static…
toolchainX
  • 1,998
  • 3
  • 27
  • 43
2
votes
1 answer

Is there a way to specify all the GDCM libraries in CMakeList at once?

This may be a very basic question, but I am unable to find the answer. I just installed GDCM library on my Windows 7 workstation and compiled it with CMake and later built the generated solution using VS2012 Express. However, I'm unsure about which…
catalyst
  • 95
  • 1
  • 6
2
votes
1 answer

converting from Jpeg 2000 to DICOM using DCMTK

I am tring to convert a DICOM with JPEG 2000 Transfer Syntax to regular DICOM file (Explicit Little Endian, or Implicit Little Endian). I was able to read pixels from DICOM / JPEG 2000 file into a buffer, but I am now stuck on to create JPEG 2000…
Bhuvan Bose
  • 21
  • 1
  • 4