简体   繁体   English

如何通过鼠标单击从 vtkimage 查看器获取体素坐标(如在 ITK snap 中)

[英]How to get voxel coordinates(as in ITK snap ) from vtkimage viewer from mouse click

I am trying to use ITK's region growing algorithm for medical image segmentation.我正在尝试使用 ITK 的区域增长算法进行医学图像分割。 So to put the seedpoint i need exact voxel coordinates of the mouseclick position in my vtkimageviewer.因此,要放置种子点,我需要在我的 vtkimageviewer 中单击鼠标 position 的精确体素坐标。 So how can I get those voxel coordinates(as in ITK snap tool) from my vtkimage viewer.那么如何从我的 vtkimage 查看器中获取这些体素坐标(如在 ITK 捕捉工具中)。 Currently I am able to get VTK World Coordinates using pick point picker.目前,我可以使用拾取点选择器获取 VTK 世界坐标。 Now how to convert this vtk world coordinates to voxel coordinates as in ITK snap tool … Please help me with this information.现在如何将这个 vtk 世界坐标转换为体素坐标,就像在 ITK 捕捉工具中一样……请帮助我了解这些信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM