Hi Kumar, <div><br></div><div>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.</div>
<div><br></div><div>Sincerely, </div><div>David<br><br><div class="gmail_quote">On Wed, Jul 21, 2010 at 17:28, Joël Schaerer <span dir="ltr"><<a href="mailto:joel.schaerer@gmail.com">joel.schaerer@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div bgcolor="#ffffff" text="#000000">
To complete Simon's answer,the GetScalarComponentAsDouble is quite
slow, so use the
<a href="?ui=2&ik=7603e68cab&view=att&th=129f5a0804eca0b2&attid=0.0.1.1&disp=emb&zw" target="_blank">GetScalarPointer</a>()
method instead if you do a lot of access to the data and if speed is a
concern.<br>
<br>
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.<br>
<br>
joel<div><div></div><div class="h5"><br>
<br>
On 07/21/2010 04:59 PM, Simon Rit wrote:
<blockquote type="cite">
<pre>Hi Kumar,
On Tue, Jul 20, 2010 at 10:00 AM, Dr.KUMAR RAJAMANI
<a href="mailto:k_rajamani@cb.amrita.edu" target="_blank"><k_rajamani@cb.amrita.edu></a> wrote:
</pre>
<blockquote type="cite">
<pre>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 ?
</pre>
</blockquote>
<pre>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.
</pre>
<blockquote type="cite">
<pre>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 ?
</pre>
</blockquote>
<pre>Yes. You can use member GetScalarComponentAsDouble of vtkImageData.
Refer to the vtk doc or to the example in vvSlicer.cxx.
Good luck!
Simon
</pre>
<blockquote type="cite">
<pre>Thanks in advance for your help
Warm Regards
Kumar
_______________________________________________
vv mailing list
<a href="mailto:vv@creatis.insa-lyon.fr" target="_blank">vv@creatis.insa-lyon.fr</a>
<a href="http://www.creatis.insa-lyon.fr/mailman/listinfo/vv" target="_blank">http://www.creatis.insa-lyon.fr/mailman/listinfo/vv</a>
</pre>
</blockquote>
<pre>_______________________________________________
vv mailing list
<a href="mailto:vv@creatis.insa-lyon.fr" target="_blank">vv@creatis.insa-lyon.fr</a>
<a href="http://www.creatis.insa-lyon.fr/mailman/listinfo/vv" target="_blank">http://www.creatis.insa-lyon.fr/mailman/listinfo/vv</a>
</pre>
</blockquote>
<br>
<br>
</div></div><pre cols="80">--
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
<a href="http://www.creatis.insa-lyon.fr/rio" target="_blank">http://www.creatis.insa-lyon.fr/rio</a>
<a href="http://www.creatis.insa-lyon.fr/rio/vv" target="_blank">http://www.creatis.insa-lyon.fr/rio/vv</a>
</pre>
</div>
<br>_______________________________________________<br>
vv mailing list<br>
<a href="mailto:vv@creatis.insa-lyon.fr">vv@creatis.insa-lyon.fr</a><br>
<a href="http://www.creatis.insa-lyon.fr/mailman/listinfo/vv" target="_blank">http://www.creatis.insa-lyon.fr/mailman/listinfo/vv</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>David Sarrut, Phd<br>Chargé de recherche CNRS<br>Centre de lutte contre le cancer Léon Bérard<br>28 rue Laënnec, 69373 Lyon cedex 08<br>Laboratoire CREATIS-LRMN UMR CNRS 5220, Inserm U 630<br>
Tel : 04 78 78 51 51 / 06 74 72 05 42<br><a href="http://www.creatis.insa-lyon.fr/rio" target="_blank">http://www.creatis.insa-lyon.fr/rio</a><br>_________________________________<br> "2 + 2 = 5, for extremely large values of 2"<br>
_________________________________<br>
</div>