[Insight-users] Access directly to the data structure
Uril Yakubov
uyakubov at rotman-baycrest.on.ca
Wed Sep 9 17:57:37 EDT 2009
Hi users,
Could you please disregard my last question.
How in itk I can easily traverse through the image in 3 dimension. Like
-
loop over height
loop over rows
loop over columns
end column loop
end row loop
end height loop
Thanks,
Uril.
On Wed, 2009-09-09 at 15:03 -0400, Uril Yakubov wrote:
> Hi every-body,
>
> I am a new in ITK and I would like to now how I can access directly
> image intensities in data structure. I have next code.
>
> For example I read a vtk file:
> typedef itk::Image< unsigned short, 3 > ImageType;
> typedef itk::ImageFileReader< ImageType > ReaderType;
> ReaderType::Pointer reader = ReaderType::New();
> reader->SetFileName( inputFilename );
> reader->UpdateLargestPossibleRegion();
>
> What should I do next to get value from coordinate (x,y,z).
>
> Thank you for help.
>
> Uril.
>
>
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> 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
More information about the Insight-users
mailing list