[vtkusers] get vtkImageData point
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) - get the data value at (x,y,z)
Or you can use vtkImageInterpolator, which is described here:
On Thu, Oct 19, 2017 at 7:38 AM, arwtyxouymz <arw.tyx-ouy_mz at ezweb.ne.jp>
> 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.
> 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...
More information about the vtkusers