<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
To complete Simon's answer,the GetScalarComponentAsDouble is quite
slow, so use the
<a class="el" href="cid:part1.07010905.03080400@gmail.com">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<br>
<br>
On 07/21/2010 04:59 PM, Simon Rit wrote:
<blockquote
cite="mid:AANLkTimko8Jn92z9TE5BP_YmRmSZHkc4v5YLo1CxEJPP@mail.gmail.com"
type="cite">
<pre wrap="">Hi Kumar,
On Tue, Jul 20, 2010 at 10:00 AM, Dr.KUMAR RAJAMANI
<a class="moz-txt-link-rfc2396E" href="mailto:k_rajamani@cb.amrita.edu"><k_rajamani@cb.amrita.edu></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">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 wrap="">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 wrap="">
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 wrap="">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 wrap="">
Thanks in advance for your help
Warm Regards
Kumar
_______________________________________________
vv mailing list
<a class="moz-txt-link-abbreviated" href="mailto:vv@creatis.insa-lyon.fr">vv@creatis.insa-lyon.fr</a>
<a class="moz-txt-link-freetext" href="http://www.creatis.insa-lyon.fr/mailman/listinfo/vv">http://www.creatis.insa-lyon.fr/mailman/listinfo/vv</a>
</pre>
</blockquote>
<pre wrap="">_______________________________________________
vv mailing list
<a class="moz-txt-link-abbreviated" href="mailto:vv@creatis.insa-lyon.fr">vv@creatis.insa-lyon.fr</a>
<a class="moz-txt-link-freetext" href="http://www.creatis.insa-lyon.fr/mailman/listinfo/vv">http://www.creatis.insa-lyon.fr/mailman/listinfo/vv</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" 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 class="moz-txt-link-freetext" href="http://www.creatis.insa-lyon.fr/rio">http://www.creatis.insa-lyon.fr/rio</a>
<a class="moz-txt-link-freetext" href="http://www.creatis.insa-lyon.fr/rio/vv">http://www.creatis.insa-lyon.fr/rio/vv</a>
</pre>
</body>
</html>