the_naive
the_naive

Reputation: 3064

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 library in Visual studio? I want to change or add something to the way the GDCM command "gdcmimg" functions.

Second: I have some multiframe dicom images where I need to modify the pixels and keep all the tags(private or non-private) intact. I have tried with Matlab, GDCM and Dcmtk. But in each case there is some problem. Matlab can't change multiframe images as it runs out of memory. GDCM can't keep the tags intact(I use the "gdcmimg" command) and I don't know yet how to change this functionality, dcmtk(I use the "dcmodify" command for that purpose) can only change the single frame dicom images and mysteriously it fails to do so in case of multi-frame dicom images when the images are provided by some vendors. What I mean is that, I tried with the multi-frame dicom images made by myself using matlab and I could change their pixel data in using "dcmodify", but when I try to do so with vendor provided multi-frame dicom image it fails to change the pixel data. So, now I want to try with VTK. Could you please say me whether or not VTK can change the pixel data of a Multi-frame dicom image while keeping all the tags, private or non-private, intact?

Thanks

Upvotes: 1

Views: 1763

Answers (2)

malat
malat

Reputation: 12505

When all else fails, read the documentation:Configuring and Building With VS .NET 2003. Of course this works with any newer Visual Studio, thanks to the use of CMake.

Upvotes: 1

denver
denver

Reputation: 3135

You can work with GDCM on windows in Visual Studio.

  1. Download the GDCM source.
  2. Download CMake
  3. User CMake to generate a visual studio solution for GDCM
  4. Build the Visual Studio Solution
  5. Use the built library in your own projects.

GDCM has very little documentation.

In regards to the private tags. The general practice is that when you modify/derive an image you do not keep the private tags. The only private tags should be the ones you add.

Upvotes: 2

Related Questions