[vtkusers] Crash during DICOM segmentation

Hierl, Thomas Thomas.Hierl at medizin.uni-leipzig.de
Mon Nov 5 03:02:07 EST 2007


Hello,
sorry for the lack of information. Our vtk version is 4.4.2. Programming is done in Java using Eclipse. The problem with debugging is that Eclipse can do that only until the program crashes in Java. What happens in vtk remains unclear that way. Our pathway is:

import of a DCM-dataset:
-vtkContourFilter ("cf.SetValue(0, greyvalue)")
-then packing this ContourFilter in vtkPolyDataNormals  ("dn.SetInput(cf.GetOutput())")
-then PolyDataNormals in vtkStripper ("bs.SetInput(dn.GetOutput())")
-then  Stripper in vtkPolyDataMapper ("bm.SetInput(bs.GetOutput())")
-then the Mapper is set in vtkActor  ("a.SetMapper(bm)")
-> display of the Actor

After changing the greyvalue (using ("Slider")) the new values are handled to the ContourFilter ( "contourFilter.SetValue(0, greyvalue)" ).
Then the Panel with the vtkActor is redrawn("repaint")

Segmentation thresholds are -900 to 3000. SoftTissue is displayed at -400 and bone at 500.
Is the greyvalue given to CountourFilter between -100 and 100 ( "contourFilter.SetValue(0, 10)" ) there is OutOfMemoryError in Java

Error:
ERROR: In c:\...\common\vtkDataArrayTemplate.txx, ...
vtkIDTypeArray(0599AC38):Unable to allocate "10^8" elements of size ...

This repeats a couple of times until the program crashes

King regards, Thomas


>You don't give enough info for anyone to help you.  Which version of
>VTK?  Where does it crash?  Have you used a debugger? etc.

-- 
____________________________________________________________
Sean McBride, B. Eng                 sean at rogue-research.com
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada



>>we are using vtk for visualizing DICOM medical data. When doing
>>thresholding operations to change from bone to soft tissue in surface
>>rendering, vtk crashes when putting the segmentation threshold in the
>>region between soft tissue and bone (i.e. "misty" soft tissue display).
>>Could this lie in to little computing power (Windows XP; 2 GB RAM; 1,86
>>GHz) ? A typical dataset for display has the size of 130 MB.

----------------------------------------------------------------------------------------
PD Dr. Dr. Thomas Hierl
Klinik und Poliklinik für Mund-, Kiefer- und Plastische Gesichtschirurgie
04103 Leipzig




More information about the vtkusers mailing list