Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • VTK VTK
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 834
    • Issues 834
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 238
    • Merge requests 238
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • VTKVTK
  • VTKVTK
  • Issues
  • #16102
Closed
Open
Issue created Apr 27, 2016 by Kitware Robot@kwrobotOwner

Incorrect results from vtkImageEuclideanDistance when ConsiderAnisotropy = true

This issue was created automatically from an original Mantis Issue. Further discussion may take place here.


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.

Assignee
Assign to
Time tracking