[Insight-users] Get the value of a voxel in 3d Image
Jon Haitz Legarreta
jhlegarreta at vicomtech.org
Thu Oct 24 02:59:48 EDT 2013
Hi Shiwei,
try using
image->GetPixel( pixelIndex );
You may want to have a look at some older posts on the same issue to see if
they are helpful:
http://itk-insight-users.2283740.n2.nabble.com/Get-pixel-Data-td6035296.html
http://www.itk.org/pipermail/insight-users/2006-January/016517.html
HTH,
JON HAITZ
On 24 October 2013 08:08, shiwei <swingsw89 at 163.com> wrote:
> Hi,all
> 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:
> *if Db( Point1(1,1) , Point1(2,1) , Point1(3,1) ) == 0 *
> And I know Point1(1,1),Point1(2,1),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?
>
> &nbs p;
> Thank you
>
> shiwei
>
>
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20131024/344f372e/attachment.htm>
More information about the Insight-users
mailing list