[Vv] Reg: Access to Data
David Sarrut
David.Sarrut at creatis.insa-lyon.fr
Thu Jul 22 08:06:25 CEST 2010
Hi Kumar,
another tip that may be useful: in the last version (cvs), you can display a
binary image as an overlay ROI. Use the tool "Display ROI" in the
"Experimental" menu. Then browse and load an image and indicate what pixel
value is the background (0 by default, all other pixel values are considered
as foreground). The loaded image is displayed on the current image as an
overlay (background is transparent and foreground as a unique color). You
can change the opacity, the contour, the color. See the attached example
screenshot.
Sincerely,
David
On Wed, Jul 21, 2010 at 17:28, Joël Schaerer <joel.schaerer at gmail.com>wrote:
> To complete Simon's answer,the GetScalarComponentAsDouble is quite slow,
> so use the GetScalarPointer<?ui=2&ik=7603e68cab&view=att&th=129f5a0804eca0b2&attid=0.0.1.1&disp=emb&zw>()
> method instead if you do a lot of access to the data and if speed is a
> concern.
>
> If you do a lot of processing, you could also consider doing your
> processing in ITK like we do ourselves. You can check out the resample tool
> to see an example of that.
>
> joel
>
>
> On 07/21/2010 04:59 PM, Simon Rit wrote:
>
> Hi Kumar,
>
> On Tue, Jul 20, 2010 at 10:00 AM, Dr.KUMAR RAJAMANI<k_rajamani at cb.amrita.edu> <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 listvv at creatis.insa-lyon.frhttp://www.creatis.insa-lyon.fr/mailman/listinfo/vv
>
> _______________________________________________
> vv mailing listvv at creatis.insa-lyon.frhttp://www.creatis.insa-lyon.fr/mailman/listinfo/vv
>
>
>
> --
> Joël Schaerer, PhD
> Post-doctoral researcher
>
> Centre de lutte contre le cancer Léon Bérard
> Service de radiothérapie
> 28 rue Laënnec
> 69373 LYON CEDEX 08
>
> Tel: 04 78 78 51 50
> 06 26 65 29 54
> http://www.creatis.insa-lyon.fr/riohttp://www.creatis.insa-lyon.fr/rio/vv
>
>
> _______________________________________________
> vv mailing list
> vv at creatis.insa-lyon.fr
> http://www.creatis.insa-lyon.fr/mailman/listinfo/vv
>
>
--
David Sarrut, Phd
Chargé de recherche CNRS
Centre de lutte contre le cancer Léon Bérard
28 rue Laënnec, 69373 Lyon cedex 08
Laboratoire CREATIS-LRMN UMR CNRS 5220, Inserm U 630
Tel : 04 78 78 51 51 / 06 74 72 05 42
http://www.creatis.insa-lyon.fr/rio
_________________________________
"2 + 2 = 5, for extremely large values of 2"
_________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.creatis.insa-lyon.fr/pipermail/vv/attachments/20100722/a10bd366/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: overlay.png
Type: image/png
Size: 411485 bytes
Desc: not available
URL: <http://www.creatis.insa-lyon.fr/pipermail/vv/attachments/20100722/a10bd366/attachment.png>
More information about the vv
mailing list