[Vv] Reg: Access to Data
Simon Rit
simon.rit at creatis.insa-lyon.fr
Wed Jul 21 16:59:58 CEST 2010
Hi Kumar,
On Tue, Jul 20, 2010 at 10:00 AM, Dr.KUMAR RAJAMANI
<k_rajamani at cb.amrita.edu> wrote:
> Dear All
> I would like to know how exactly the image data is read into VV
> What data-structure is used to store the image data internally ?
The image is a vvImage object which has a member, mVtkImages, which
points to the data in vtk format (vtkImageData*). You can refer to the
vtk doc for more information on that structure. It is read via
vvImageReader, which calls itk::ImageFileReader.
>
> Which Class/method needs to be used to retrieve the data ?
> Is it possible to get the pixel value at a particular (x,y,z) or (x,y,z,t) location ?
Yes. You can use member GetScalarComponentAsDouble of vtkImageData.
Refer to the vtk doc or to the example in vvSlicer.cxx.
Good luck!
Simon
>
> Thanks in advance for your help
>
> Warm Regards
> Kumar
> _______________________________________________
> vv mailing list
> vv at creatis.insa-lyon.fr
> http://www.creatis.insa-lyon.fr/mailman/listinfo/vv
>
More information about the vv
mailing list