[vtkusers] vtkDICOMImageReader broken in vtk 5.0 and up?

Sven Prevrhal sven.prevrhal at radiology.ucsf.edu
Wed Apr 19 12:31:54 EDT 2006


Hi Mathieu,

I started on this problem again, pulled and installed the nightlies on 3/22.
vtkDICOMImageReader does read and update on my file now but stuffing it into
vtkImageViewer2 causes a crash! To be sure it has to do with the reader I
converted the file to jpeg using the Office dcmtk dcmj2pnm executable. The
JPEG version of the file displays fine (Window/Leveling is _very_ slow
though, although both CPU and graphics card should be sufficiently fast
Pentium 4 3.0 GHz, ATI FireGL). I have attached the code (modified
vtkImageViewer2 test). The file that causes a crash in my configuration is
on
ftp://ftp.mrsc.ucsf.edu/pub/sven/SC.1.3.6.1.4.1.9590.100.1.1.581587240110609
28131648073180919160033  

It's rather large so I am thinking that Ben may be correct and there's a bug
in the vtk code.

The JPEG version (only 8bit!) is ftp://ftp.mrsc.ucsf.edu/pub/sven/x.jpg   


Sven Prevrhal, Ph.D.
Department of Radiology
University of California, San Francisco

185 Berry St, Suite 350, San Francisco, CA 94107
ph 415-353-9404, fax 415-353-3438

Faculty Assistant: Randolph.Smith at radiology.ucsf.edu


-----Original Message-----
From: Sven Prevrhal [mailto:sven.prevrhal at radiology.ucsf.edu] 
Sent: Wednesday, March 15, 2006 1:24 PM
To: 'Mathieu Malaterre'
Subject: RE: [vtkusers] vtkDICOMImageReader broken in vtk 5.0 and up?

Great! From where do I pull the cvs sources? 
:pserver:anonymous at public.kitware.com:/cvsroot/VTK or, as your text
suggests, somehow form ParaView?

- Sven


-----Original Message-----
From: Mathieu Malaterre [mailto:mathieu.malaterre at kitware.com]
Sent: Wednesday, March 15, 2006 12:15 PM
To: Sven Prevrhal
Subject: Re: [vtkusers] vtkDICOMImageReader broken in vtk 5.0 and up?

Sven,

	I believe the seg fault you saw is fixed in current VTK CVS.

	Please give it a try if you can. Thanks for the data to reproduce
the problem.


$ cvs ci -m"BUG: DICOM spec do not enforce value to be present for Slice 
Number" 
/cvsroot/ParaView/ParaView/VTK/Utilities/DICOMParser/DICOMAppHelper.cxx,v 
  <--  DICOMAppHelper.cxx
new revision: 1.23; previous revision: 1.22
/cvsroot/ParaView/ParaView/VTK/Utilities/DICOMParser/DICOMParser.cxx,v 
<--  DICOMParser.cxx
new revision: 1.15; previous revision: 1.14

HTH
Mathieu
Ps: You may want to contact your DICOM vendor as the DICOM has a very 
bizarre 0008,0008 Image Type value: "Vidar" ??? Whereas it should be 
something like:

DERIVED/SECONDARY

Sven Prevrhal wrote:
> Hi Mathieu,
> 
> You can grab the images from ftp://ftp.mrsc.ucsf.edu/pub/sven. The setup
> file is unrelated!
> 
> Thanks for looking at this!
> 
> sven
> 
> Sven Prevrhal, Ph.D.
> Department of Radiology
> University of California, San Francisco
> 
> 185 Berry St, Suite 350, San Francisco, CA 94107
> ph 415-353-9404, fax 415-353-3438
> 
> Faculty Assistant: Jessica.Mapes at radiology.ucsf.edu
> 
> 
> -----Original Message-----
> From: Mathieu Malaterre [mailto:mathieu.malaterre at kitware.com] 
> Sent: Friday, March 10, 2006 12:49 PM
> To: Sven Prevrhal
> Cc: vtkusers at vtk.org
> Subject: Re: [vtkusers] vtkDICOMImageReader broken in vtk 5.0 and up?
> 
> Sven Prevrhal wrote:
> 
>>I have DICOM images that vtk 4.4 will read just fine, but vtk 5.0 and up 
>>and nightly builds will crash.  (I built vtk with python 2.4). Anybody 
>>experiencing similar behavior?
> 
> 
> Can you send me a sample data to reproduce the problem ?
> 
> Thanks
> Mathieu
> 
> 
> 
> 


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: testdicomread.py
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20060419/fe8cfb34/attachment.txt>


More information about the vtkusers mailing list