Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
VTK
VTK
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 582
    • Issues 582
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 160
    • Merge Requests 160
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • VTK
  • VTKVTK
  • Issues
  • #16964

Closed
Open
Opened Jan 24, 2017 by paul@p77johnson

Incorrect results from vtkImageEuclideanDistance when ConsiderAnisotropy = true

See Issue #16102 (closed) which was automatically created from Mantis.

New information: The issue still exist in VTK 7.1.0

Original bug report:

This occurs when using vtkImageEuclideanDistance and requesting that the image spacing be used in the computation of the distance (ConsiderAnisotropy = true).

In vtkImageEuclideanDistance (specifically vtkImageEuclideanDistanceExecuteSaito), the spacing variable that it uses to compute the distances is being assigned incorrect values during two of the three iterations.

For the first two iterations, the spacing for the distance calculation is being set to "1". For the third iteration, the spacing is correctly set based on the spacing of the input image. For example, if the input image spacing is [0.2, 0.2, 0.2] the spacing used for the calculation will be [1.0, 1.0, 0.2]. Inserting debugging code to output information around line 215 (for the spacing variable) and around line 586 (for the image data and information) highlights the issue.

I've tested this with 5.10.1, 6.3.0 and 7.0.0. It occurs in both 6.3.0 and 7.0.0 but not in 5.10.1.

I'm attaching an archive of debugging output, python script, sample data, and visualization of the results.

TestDistMap.zip

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: vtk/vtk#16964