<div dir="ltr"><div>Hi Shiwei,<br>try using<br><span class="" style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px">image->GetPixel( pixelIndex );</span><br><br></div>You may want to have a look at some older posts on the same issue to see if they are helpful:<br>
<a href="http://itk-insight-users.2283740.n2.nabble.com/Get-pixel-Data-td6035296.html">http://itk-insight-users.2283740.n2.nabble.com/Get-pixel-Data-td6035296.html</a><br><div><div><div class="gmail_extra"><a href="http://www.itk.org/pipermail/insight-users/2006-January/016517.html">http://www.itk.org/pipermail/insight-users/2006-January/016517.html</a><br>
<br></div><div class="gmail_extra">HTH,<br></div><div class="gmail_extra">JON HAITZ<br><br><br></div><div class="gmail_extra"><div class="gmail_quote">On 24 October 2013 08:08, shiwei <span dir="ltr"><<a href="mailto:swingsw89@163.com" target="_blank">swingsw89@163.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="line-height:1.7;font-size:14px;font-family:arial">Hi,all<div>       Now I run into a problem is that in a Big 3D volume named Db, I want to have the following result like thie code in Matlab: </div>
<div><span style="white-space:pre-wrap">                          </span><b>if Db( Point1(1,1) , Point1(2,1) , Point1(3,1) ) == 0 </b></div><div><span style="white-space:pre-wrap">        </span>And I know Point1(1,1),<span style="line-height:1.7">Point1(2,1),</span><span style="line-height:1.7">Point1(3,1), I wonder if there is a way in ITK to locate this coordinate and get the value of the voxel to check whether it's zero? Maybe not use a SliceIterator in the whole 3d volume? For before this code, I have already iterate the Db 3D volume?</span></div>
<div><span style="line-height:1.7"><br></span></div><div><span style="line-height:1.7">                    &nbs
 p;                                                                                                         Thank you</span></div><span class=""><font color="#888888"><div><span style="line-height:1.7">                                                                                                                                 shiwei</span></div>
</font></span></div><br><br><span title="neteasefooter"><span></span></span><br>_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br></div></div></div></div>