[vtkusers] VTK-GDCM questions
kingvsk at aol.com
kingvsk at aol.com
Thu Oct 18 07:25:09 EDT 2012
Hi,
-----------whether we can solely use VTK for reading, visualizing, and
writing DICOM file---------
*Yes, VTK is enough to read DICOM files. Try vtkDICOMImageReader
<http://www.vtk.org/doc/nightly/html/classvtkDICOMImageReader.html>.*
--
Sathish
On Thursday 18 October 2012 04:35 PM, Tanya wrote:
> Dear VTK developers and users,
>
> My first question is : I would like to know, whether we can solely use
> VTK for reading, visualizing, and writing DICOM file, in Eclipse -
> MinGW/msys environment under Windows XP.
>
> I want to make a software package that includes image registration and
> other image processing methods using my own raw C++ source code, but
> for for reading and writing the DICOM file, I want to use GDCM, and
> for visualization I want to use VTK.
>
> I wonder if somebody here has been using VTK only for reading,
> visualizing and writing DICOM file, because as far as I know GDCM is
> attached to VTK.
> I am new to GDCM. and DICOM, so any answer would be appreciated.
>
> Second question is about GDCM, I tried to first make a small Eclipse
> project to read the DICOM header file but when I built my program, I
> got the error message attached in the bottom of this email. I think
> the problem related to gdcmJpeg8, gdcmJpeg12, and gdcmJpeg16 linker,
> but I don't know how to solve it.
>
> I have put all these libraries name in MingGW linker - libraries -l,
> through the "Properties" of the project:
> gdcmjpeg12,wsock32,gdcmjpeg16,vtkgdcm,gdcmopenjpeg,gdcmjpeg8,snmpapi,gdcm.
>
> I have also put these paths in the MingGW linker - libraries through
> the "Properties" of the project:
> "C:\Program Files\GDCM\lib\gdcm"
> "C:\WINDOWS\system32"
>
> To make it easier for you to diagnose my problem, here are the
> environment I use:
> - Eclipse Indigo Release 2
> - MinGW
> - GDCM v. 1.3.2
> - I generated the GDCM using CMake 2.8.9, WITHOUT, please underline
> "without" BUILD_SHARED_LIBS and BUILD_TESTING. Because if I used these
> 2, it will give me error messages in the "make".
> - Compiler tobe used for the CMake : MSYS, NOT, please underline "not"
> MinGW
> - I am on Windows XP, Professional version
>
> Any help would be highly appreciated, and please see below for the
> error messages.
>
> Best Regards,
> .Tanya.
>
> ---The Error Messages :
> C:\Program
> Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg8.obj):gdcmJpeg8.cxx:(.text+0x260):
> undefined reference to `gdcm_jpeg8_jpeg_resync_to_restart'
> C:\Program
> Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg8.obj):gdcmJpeg8.cxx:(.text+0x566):
> undefined reference to `gdcm_jpeg8_jpeg_std_error'
> C:\Program
> Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg8.obj):gdcmJpeg8.cxx:(.text+0x58a):
> undefined reference to `gdcm_jpeg8_jpeg_CreateCompress'
> C:\Program
> Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg8.obj):gdcmJpeg8.cxx:(.text+0x604):
> undefined reference to `gdcm_jpeg8_jpeg_set_defaults'
> C:\Program
> Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg8.obj):gdcmJpeg8.cxx:(.text+0x622):
> undefined reference to `gdcm_jpeg8_jpeg_simple_lossless'
> C:\Program
> Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg8.obj):gdcmJpeg8.cxx:(.text+0x63f):
> undefined reference to `gdcm_jpeg8_jpeg_set_quality'
> C:\Program
> Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg8.obj):gdcmJpeg8.cxx:(.text+0x655):
> undefined reference to `gdcm_jpeg8_jpeg_start_compress'
> C:\Program
> Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg8.obj):gdcmJpeg8.cxx:(.text+0x6c2):
> undefined reference to `gdcm_jpeg8_jpeg_write_scanlines'
> C:\Program
> Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg8.obj):gdcmJpeg8.cxx:(.text+0x6fe):
> undefined reference to `gdcm_jpeg8_jpeg_finish_compress'
> C:\Program
> Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg8.obj):gdcmJpeg8.cxx:(.text+0x70c):
> undefined reference to `gdcm_jpeg8_jpeg_destroy_compress'
> C:\Program
> Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg8.obj):gdcmJpeg8.cxx:(.text+0x769):
> undefined reference to `gdcm_jpeg8_jpeg_std_error'
> C:\Program
> Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg8.obj):gdcmJpeg8.cxx:(.text+0x88b):
> undefined reference to `gdcm_jpeg8_jpeg_destroy_decompress'
> C:\Program
> Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg8.obj):gdcmJpeg8.cxx:(.text+0x8b7):
> undefined reference to `gdcm_jpeg8_jpeg_CreateDecompress'
> C:\Program
> Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg8.obj):gdcmJpeg8.cxx:(.text+0x91b):
> undefined reference to `gdcm_jpeg8_jpeg_read_header'
> C:\Program
> Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg8.obj):gdcmJpeg8.cxx:(.text+0x961):
> undefined reference to `gdcm_jpeg8_jpeg_start_decompress'
> C:\Program
> Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg8.obj):gdcmJpeg8.cxx:(.text+0x9f7):
> undefined reference to `gdcm_jpeg8_jpeg_read_scanlines'
> C:\Program
> Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg8.obj):gdcmJpeg8.cxx:(.text+0xa56):
> undefined reference to `gdcm_jpeg8_jpeg_finish_decompress'
> C:\Program
> Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg8.obj):gdcmJpeg8.cxx:(.text+0xa74):
> undefined reference to `gdcm_jpeg8_jpeg_destroy_decompress'
> C:\Program
> Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg12.obj):gdcmJpeg12.cxx:(.text+0x260):
> undefined reference to `gdcm_jpeg12_jpeg_resync_to_restart'
> C:\Program
> Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg12.obj):gdcmJpeg12.cxx:(.text+0x566):
> undefined reference to `gdcm_jpeg12_jpeg_std_error'
> C:\Program
> Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg12.obj):gdcmJpeg12.cxx:(.text+0x58a):
> undefined reference to `gdcm_jpeg12_jpeg_CreateCompress'
> C:\Program
> Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg12.obj):gdcmJpeg12.cxx:(.text+0x604):
> undefined reference to `gdcm_jpeg12_jpeg_set_defaults'
> C:\Program
> Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg12.obj):gdcmJpeg12.cxx:(.text+0x622):
> undefined reference to `gdcm_jpeg12_jpeg_simple_lossless'
> C:\Program
> Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg12.obj):gdcmJpeg12.cxx:(.text+0x63f):
> undefined reference to `gdcm_jpeg12_jpeg_set_quality'
> C:\Program
> Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg12.obj):gdcmJpeg12.cxx:(.text+0x655):
> undefined reference to `gdcm_jpeg12_jpeg_start_compress'
> C:\Program
> Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg12.obj):gdcmJpeg12.cxx:(.text+0x6c2):
> undefined reference to `gdcm_jpeg12_jpeg_write_scanlines'
> C:\Program
> Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg12.obj):gdcmJpeg12.cxx:(.text+0x700):
> undefined reference to `gdcm_jpeg12_jpeg_finish_compress'
> C:\Program
> Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg12.obj):gdcmJpeg12.cxx:(.text+0x70e):
> undefined reference to `gdcm_jpeg12_jpeg_destroy_compress'
> C:\Program
> Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg12.obj):gdcmJpeg12.cxx:(.text+0x76b):
> undefined reference to `gdcm_jpeg12_jpeg_std_error'
> C:\Program
> Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg12.obj):gdcmJpeg12.cxx:(.text+0x88d):
> undefined reference to `gdcm_jpeg12_jpeg_destroy_decompress'
> C:\Program
> Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg12.obj):gdcmJpeg12.cxx:(.text+0x8b9):
> undefined reference to `gdcm_jpeg12_jpeg_CreateDecompress'
> C:\Program
> Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg12.obj):gdcmJpeg12.cxx:(.text+0x91d):
> undefined reference to `gdcm_jpeg12_jpeg_read_header'
> C:\Program
> Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg12.obj):gdcmJpeg12.cxx:(.text+0x963):
> undefined reference to `gdcm_jpeg12_jpeg_start_decompress'
> C:\Program
> Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg12.obj):gdcmJpeg12.cxx:(.text+0x9fb):
> undefined reference to `gdcm_jpeg12_jpeg_read_scanlines'
> C:\Program
> Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg12.obj):gdcmJpeg12.cxx:(.text+0xa5a):
> undefined reference to `gdcm_jpeg12_jpeg_finish_decompress'
> C:\Program
> Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg12.obj):gdcmJpeg12.cxx:(.text+0xa78):
> undefined reference to `gdcm_jpeg12_jpeg_destroy_decompress'
> C:\Program
> Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg16.obj):gdcmJpeg16.cxx:(.text+0x260):
> undefined reference to `gdcm_jpeg16_jpeg_resync_to_restart'
> C:\Program
> Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg16.obj):gdcmJpeg16.cxx:(.text+0x566):
> undefined reference to `gdcm_jpeg16_jpeg_std_error'
> C:\Program
> Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg16.obj):gdcmJpeg16.cxx:(.text+0x58a):
> undefined reference to `gdcm_jpeg16_jpeg_CreateCompress'
> C:\Program
> Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg16.obj):gdcmJpeg16.cxx:(.text+0x604):
> undefined reference to `gdcm_jpeg16_jpeg_set_defaults'
> C:\Program
> Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg16.obj):gdcmJpeg16.cxx:(.text+0x622):
> undefined reference to `gdcm_jpeg16_jpeg_simple_lossless'
> C:\Program
> Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg16.obj):gdcmJpeg16.cxx:(.text+0x63f):
> undefined reference to `gdcm_jpeg16_jpeg_set_quality'
> C:\Program
> Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg16.obj):gdcmJpeg16.cxx:(.text+0x655):
> undefined reference to `gdcm_jpeg16_jpeg_start_compress'
> C:\Program
> Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg16.obj):gdcmJpeg16.cxx:(.text+0x6c2):
> undefined reference to `gdcm_jpeg16_jpeg_write_scanlines'
> C:\Program
> Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg16.obj):gdcmJpeg16.cxx:(.text+0x700):
> undefined reference to `gdcm_jpeg16_jpeg_finish_compress'
> C:\Program
> Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg16.obj):gdcmJpeg16.cxx:(.text+0x70e):
> undefined reference to `gdcm_jpeg16_jpeg_destroy_compress'
> C:\Program
> Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg16.obj):gdcmJpeg16.cxx:(.text+0x76b):
> undefined reference to `gdcm_jpeg16_jpeg_std_error'
> C:\Program
> Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg16.obj):gdcmJpeg16.cxx:(.text+0x88d):
> undefined reference to `gdcm_jpeg16_jpeg_destroy_decompress'
> C:\Program
> Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg16.obj):gdcmJpeg16.cxx:(.text+0x8b9):
> undefined reference to `gdcm_jpeg16_jpeg_CreateDecompress'
> C:\Program
> Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg16.obj):gdcmJpeg16.cxx:(.text+0x91d):
> undefined reference to `gdcm_jpeg16_jpeg_read_header'
> C:\Program
> Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg16.obj):gdcmJpeg16.cxx:(.text+0x963):
> undefined reference to `gdcm_jpeg16_jpeg_start_decompress'
> C:\Program
> Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg16.obj):gdcmJpeg16.cxx:(.text+0x9fb):
> undefined reference to `gdcm_jpeg16_jpeg_read_scanlines'
> C:\Program
> Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg16.obj):gdcmJpeg16.cxx:(.text+0xa5a):
> undefined reference to `gdcm_jpeg16_jpeg_finish_decompress'
> C:\Program
> Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg16.obj):gdcmJpeg16.cxx:(.text+0xa78):
> undefined reference to `gdcm_jpeg16_jpeg_destroy_decompress'
> Build error occurred, build is stopped
> Time consumed: 4187 ms.
>
> _______________________________________________
> Dcmlib mailing list
> Dcmlib at creatis.insa-lyon.fr <mailto:Dcmlib at creatis.insa-lyon.fr>
> http://www.creatis.insa-lyon.fr/mailman/listinfo/dcmlib
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20121018/f3785b6c/attachment.htm>
More information about the vtkusers
mailing list