Thanks very much, Jerome.<br>The vtkDICOMReader works right now. The problem was in my xml file for server manager. <br>Again, thanks very much. I am really appreciate your help!<br><br>Aaron<br><br><br><div class="gmail_quote">
On Tue, Feb 10, 2009 at 7:49 AM, Jérôme <span dir="ltr"><<a href="mailto:jerome.velut@gmail.com">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>
I use 3 files for the vtkDICOMImageReader plugin :<br>
<br>
- One CMakeList.txt where you can find those lines:<br>
<br>
# READERS PLUGIN --------------------------------------------------<br>
<br>
# Use the ADD_PARAVIEW_PLUGIN macro to build a plugin<br>
ADD_PARAVIEW_PLUGIN(<br>
DICOMImageReader #<--Name for the plugin<br>
"1.0" #<--Version string<br>
SERVER_MANAGER_XML DICOMReader.xml #<-- server manager xml<br>
GUI_RESOURCE_FILES DICOMReaderGUI.xml<br>
)<br>
#------------------------------------------------------------------<br>
<br>
You can also use this file for other ADD_PARAVIEW_PLUGIN command<br>
<br>
- One DICOMReaderGUI.xml<br>
- One DICOMReader.xml<br>
<br>
Both latter are given.<br>
<br>
Regarding the GDCMReader, I am sorry I could not help you. As I said,<br>
I had never tried this lib in a Paraview framework. The best you can<br>
do - well, the laziest in fact - is to ask the GDCM development team<br>
to give a built-in paraview plugin.<br>
<br>
Today, the vtkDICOMImageReader is sufficient for me, and what I give<br>
here makes it works in ParaView 3.4 stable and nightly CVS 3.5, both<br>
Windows (XP and Vista) and Linux (Fedora 9). This is true when the<br>
plugin is loaded on the computer that built Paraview. Other problems<br>
arise when deploying on 'pure-of-devel-stuff' systems.<br>
<br>
I hope this will help.<br>
<br>
Best regards,<br>
<br>
Jerome<br>
2009/2/9 Biao She <<a href="mailto:shebiao@gmail.com">shebiao@gmail.com</a>>:<br>
<div><div></div><div class="Wj3C7c">> Thanks for your help, Jerome.<br>
> I find the vtkGdcmReader files in the latest GDCM package. After I build<br>
> these files as a Paraview Plug-in and load it, I got this error message from<br>
> Paraview console:<br>
> ERROR: In<br>
> /usr/scratch/bshe/Paraview/ParaView-3.4.0/Servers/Common/vtkProcessModule.cxx,<br>
> line 1079<br>
> vtkProcessModule (0x8a7c2e0): Cannot create object of type "vtkGdcmReader".<br>
> while processing<br>
> Message 0 = New<br>
> Argument 0 = string_value {vtkGdcmReader}<br>
> Argument 1 = id_value {84}<br>
><br>
> ERROR: In<br>
> /usr/scratch/bshe/Paraview/ParaView-3.4.0/Servers/Common/vtkProcessModule.cxx,<br>
> line 1080<br>
> vtkProcessModule (0x8a7c2e0): Aborting execution for debugging purposes.<br>
> I must do something wrong, but when I build the vtkGdcmReader, no error<br>
> 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<br>
> Paraview. It seems that I can only use the reader to read one DICOM image<br>
> file. How can I write the XML files for vtkDICOMImageReader to read a series<br>
> of DICOM files? Could you please email me your XML files for<br>
> vtkDICOMImageReader if possible? Thanks very much!<br>
><br>
> Aaron<br>
><br>
><br>
> On Fri, Feb 6, 2009 at 12:52 AM, Jérôme <<a href="mailto:jerome.velut@gmail.com">jerome.velut@gmail.com</a>> wrote:<br>
>><br>
>> 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">shebiao@gmail.com</a>>:<br>
>> > 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<br>
>> > one.<br>
>> ><br>
>> > I have read something about how to write a Paraview Reader in the<br>
>> > Paraview<br>
>> > book. It is said that all the readers must derive from vtkAlgorithm or<br>
>> > one<br>
>> > of its subclass. Fortunately, vtkImageImport is one of its subclass. So,<br>
>> > I<br>
>> > guess it would be a good idea to choose vtkImageImport as a superclass<br>
>> > 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<br>
>> > Paraview<br>
>> > Client GUI and pass it to my reader? For example, the DICOM data is<br>
>> > 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>
>> > _______________________________________________<br>
>> > ParaView mailing list<br>
>> > <a href="mailto:ParaView@paraview.org">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>
><br>
><br>
</div></div></blockquote></div><br>