[vtkusers] get vtkImageData point

David Gobbi david.gobbi at gmail.com
Thu Oct 19 09:47:25 EDT 2017


You can use vtkImplicitVolume, it has these methods:
  void SetVolume(vtkImageData *data)  - set the data to use
  double FunctionValue(double xyz[3]) - get the data value at (x,y,z)

Or you can use vtkImageInterpolator, which is described here:
https://www.vtk.org/Wiki/VTK/Image_Interpolators

 - David



On Thu, Oct 19, 2017 at 7:38 AM, arwtyxouymz <arw.tyx-ouy_mz at ezweb.ne.jp>
wrote:

> Hi,
>
> I get the pixel value from x-y-z real-world coordinate.
> For getting pixel value, by vtkImageData Class Reference, GetScalarPoint is
> useful but its arguments are only int, i-j-k points of image.
>
> So I want to convert real-world x-y-z coordinate to image i-j-k points and
> get pixel value.
> If there is directory converting method, please tell me.
>
> Or
> I could convert x-y-z coordinate to vtkIdType by using FindPoint method.
> So, please tell me the method converting vtkIdType to image i-j-k points.
>
> Please help!
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20171019/6872ba09/attachment.html>


More information about the vtkusers mailing list