MantisBT - VTK
View Issue Details
0002940VTK(No Category)public2006-03-07 08:002016-08-12 09:54
m.danilouchkine1 
Will Schroeder 
highmajoralways
closedmoved 
 
 
0002940: vtkSubPixelPositionEdgels Boundary check-up
vtkSubPixelPositionEdgelnks::Move checks whether the edge point lies outside the image extent.
The image extents are within the range [0 dim-1] and the correct boundary check should look like

for 2d-case (line 172 VTK 5.0.1):

if (x < 0 || y < 0 || x >= xdim || y >= ydim)
  {
  resultNormal[0] = 1;
  resultNormal[1] = 0;
  resultNormal[2] = 0;
  }

for 3d-case (line 264 VTK 5.0.1):

if (x < 0 || y < 0 || z < 0 ||
    x >= xdim || y >= ydim || z >= zdim)
  {
  resultNormal[0] = 1;
  resultNormal[1] = 1;
  resultNormal[2] = 1;
  }
No tags attached.
Issue History
2011-06-16 13:11Zack GalbreathCategory => (No Category)
2016-08-12 09:54Kitware RobotNote Added: 0036840
2016-08-12 09:54Kitware RobotStatusexpired => closed
2016-08-12 09:54Kitware RobotResolutionopen => moved

Notes
(0036840)
Kitware Robot   
2016-08-12 09:54   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.