Skip to content

GitLab

  • Menu
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 737
    • Issues 737
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 209
    • Merge requests 209
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • VTK
  • VTKVTK
  • Issues
  • #17938

Closed
Open
Created Jun 20, 2020 by Bane Sullivan@banesullivanContributor

vtkExtractVOI origin bug

The output of the vtkExtractVOI doesn't properly set the origin of the output vtkImageData. For example:

import vtk

image = vtk.vtkUniformGrid()
image.SetOrigin(0,0,0)
image.SetDimensions(10,10,10)

alg = vtk.vtkExtractVOI()
alg.SetVOI((0,9, 5,5, 0,9))
alg.SetInputDataObject(image)
alg.Update()

output = alg.GetOutput()
print(output.GetOrigin(), output.GetBounds())

The origin of the output is (0.0, 0.0, 0.0) while the bounds are (0.0, 9.0, 5.0, 5.0, 0.0, 9.0). these are inconsistent... since this is a "2D slice", the origin should be: (0, 5.0, 0) to be consistent with the bounds

Edited Jun 20, 2020 by Bane Sullivan
Assignee
Assign to
Time tracking