[vtkusers] vtkSubPixelPositionEdgels seg fault

Lorensen, William E (Research) lorensen at crd.ge.com
Mon Jun 17 08:03:42 EDT 2002


Mathieu,
Certainly you have found a bug and diagnosed it correctly. It's apparent that we never tested this
code with a non zero origin and non unit spacing. I was able to get the test Canny.tcl to crash when
I change the origin and spacing of the image.

We'll have to look at the code for a correction.

Thanks for the bug report.

Bill

-----Original Message-----
From: Mathieu Malaterre [mailto:mmalat at irus.rri.ca]
Sent: Sunday, June 16, 2002 10:28 PM
To: VTK Mailing list
Subject: [vtkusers] vtkSubPixelPositionEdgels seg fault


Hi all,
   I tried vtkSubPixelPositionEdgels on a volume image and I get a seg
fault. I look into the code and I found that the Move method (line 107)
is called on real points (origin and spacing are taken into account).
But these coordinate also serve to access the pixel value in memory
(lines 256 through 292)!  Why do you need to use origin and spacing ?
They are totally outside of memory allocation.

Mathieu



More information about the vtkusers mailing list