Thanks for your help, Jerome.<br>I find the vtkGdcmReader files in the latest GDCM package. After I build these files as a Paraview Plug-in and load it, I got this error message from Paraview console: <br><span style="color: rgb(255, 0, 0);">ERROR: In /usr/scratch/bshe/Paraview/ParaView-3.4.0/Servers/Common/vtkProcessModule.cxx, line 1079</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);">vtkProcessModule (0x8a7c2e0): Cannot create object of type "vtkGdcmReader".</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">while processing</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);">Message 0 = New</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"> Argument 0 = string_value {vtkGdcmReader}</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"> Argument 1 = id_value {84}</span><br style="color: rgb(255, 0, 0);">
<br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ERROR: In /usr/scratch/bshe/Paraview/ParaView-3.4.0/Servers/Common/vtkProcessModule.cxx, line 1080</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">vtkProcessModule (0x8a7c2e0): Aborting execution for debugging purposes.</span><br>
I must do something wrong, but when I build the vtkGdcmReader, no error message at all. Here is my CMakeLists file:<br>FIND_PACKAGE(ParaView REQUIRED)<br>INCLUDE(${PARAVIEW_USE_FILE})<br><br>FIND_PACKAGE (GDCM)<br>IF (GDCM_FOUND)<br>
INCLUDE(${GDCM_USE_FILE})<br>ENDIF (GDCM_FOUND) <br><br>ADD_PARAVIEW_PLUGIN(vtkGDCMReader "1.0" SERVER_MANAGER_SOURCES<br>vtkGdcmReader.cxx)<br>ADD_PARAVIEW_PLUGIN(vtkGDCMReader "1.0" GUI_RESOURCE_FILES pqReader.xml)<br>
ADD_PARAVIEW_PLUGIN(vtkGDCMReader "1.0" SERVER_MANAGER_XML reader.xml)<br><br>You also mentioned that you use vtkDICOMImageReader as your DICOM reader in Paraview. It seems that I can only use the reader to read one DICOM image file. How can I write the XML files for vtkDICOMImageReader to read a series of DICOM files? Could you please email me your XML files for vtkDICOMImageReader if possible? Thanks very much!<br>
<br>Aaron<br><br><br><div class="gmail_quote">On Fri, Feb 6, 2009 at 12:52 AM, Jérôme <span dir="ltr"><<a href="mailto:jerome.velut@gmail.com" target="_blank">jerome.velut@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<br>
if you intend to use a DICOM reader in Paraview, why not using<br>
directly GDCM, instead of ITK? It contains a VTK Reader... If I am<br>
right, you will just have to write the XML/CMake files that make the<br>
reader available in Paraview.<br>
<br>
In my case, I use the vtkDICOMImageReader, that is a very simple dcm<br>
file series reader: just give the folder containing the files, and let<br>
it read. If you need more functionalities, the GDCM reader will do the<br>
trick.<br>
<br>
You can find a later version of GDCM than the ITK integrated one, on<br>
this website: <a href="http://www.creatis.insa-lyon.fr/Public/Gdcm/" target="_blank">http://www.creatis.insa-lyon.fr/Public/Gdcm/</a> . I cannot<br>
help you more, as I had never use it for now.<br>
<br>
Cheers,<br>
Jerome<br>
<br>
2009/2/6 Biao She <<a href="mailto:shebiao@gmail.com" target="_blank">shebiao@gmail.com</a>>:<br>
<div><div></div><div>> Hi everyone.<br>
> I am wondering if anyone know how to integrate a ITK(GDCM) based DICOM<br>
> reader to Paraview?<br>
> My basic idea is:<br>
> 1. Read DICOM series data through ITK(GDCM)<br>
> 2. Export the data to a vtkImageImport class<br>
> 3. Use the data in vtkImageImport as a source of Paraview<br>
> I have done the first two steps. But I am not sure how to do the third one.<br>
><br>
> I have read something about how to write a Paraview Reader in the Paraview<br>
> book. It is said that all the readers must derive from vtkAlgorithm or one<br>
> of its subclass. Fortunately, vtkImageImport is one of its subclass. So, I<br>
> guess it would be a good idea to choose vtkImageImport as a superclass of my<br>
> reader. Am I right?<br>
> If I choose vtkImageImport as a superclass, to make my reader works<br>
> properly, which methods should be implemented in my reader?<br>
><br>
> The last question is: How do I read the path to DICOM files from Paraview<br>
> Client GUI and pass it to my reader? For example, the DICOM data is stored<br>
> in /usr/DATA/ directory, how can I pass this value to my reader?<br>
><br>
> Thanks very much for your help!<br>
><br>
> Aaron<br>
><br>
</div></div>> _______________________________________________<br>
> ParaView mailing list<br>
> <a href="mailto:ParaView@paraview.org" target="_blank">ParaView@paraview.org</a><br>
> <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
><br>
><br>
</blockquote></div><br>