[vtk-developers] imaging pipeline bug

Dean Inglis dean.inglis at camris.ca
Mon Jan 3 14:48:46 EST 2005

Hi Amy,

thanks for trying the script  This is odd.
I get a crash on shared lib build under Borland C++ Builder
vers. 5, CMake 2.0.5, MinSizeRel, Win 2000 Pro, latest cvs of VTK,
but no crash on a static build on a different PC (same software).
However, on the static build, the script runs showing the correct
rectangular ROI but the image stats are not correct:
the vtkImageAccumulate calculates all zeros.  I successfully ran the
script under a static build with revision 1.51 wherein the
ROI stats are all non-zero (i.e. correctly calculated).  So, if you are
you seeing the text:
N: 0, (1E+299 -> -1E+299) 0 +- 0 HU

as I am, then something is wrong. The correct numbers should read:
N: 1504, (100 -> 2317) 1051 +- 419.018 HU

Also, this may or may not be a separate bug with vtkImageAccumulate, 
but if the ivar VoxelCount is 1, a divide by zero will occur:
see line 244 in method vtkImageAccumulateExecute. 


More information about the vtk-developers mailing list