[Insight-users] ImageRegistration1
Luis Ibanez
luis.ibanez at kitware.com
Mon May 28 19:59:34 EDT 2012
Hi Massi,
The Method:
GetBufferedRegion()
http://www.itk.org/Doxygen/html/classitk_1_1ImageBase.html#abb2a8342cd8793694d77aefade6e32f2
belongs to the itk::ImageBase class:
http://www.itk.org/Doxygen/html/classitk_1_1ImageBase.html
from which all ITK Images derive.
The itk::ImageFileReader class,
http://www.itk.org/Doxygen/html/classitk_1_1ImageFileReader.html
returns one of such ITK images
in its GetOutput() method:
If you want to make the code more explicit
you could do:
fixedImageReader->Update();
const FixedImageType * fixedImage =
fixedImageReader->GetOutput();
registration->SetFixedImageRegion(
fixedImage->GetBufferedRegion() );
Luis
-----------------------------------------
On Fri, May 25, 2012 at 10:01 AM, Massi <Massinissa.Bandou at usherbrooke.ca>wrote:
> Hi
> Sorry there is no asterisk I tried to write it in bold.
>
>
> registration->SetFixedImageRegion(fixedImageReader->GetOutput()->GetBufferedRegion());
>
> it seems GetBufferedRegion() doesn't exist.
> I just want if I have to do something before setting the image region.
>
> Thank you
>
> Massi
>
>
>
> --
> View this message in context:
> http://itk-insight-users.2283740.n2.nabble.com/ImageRegistration1-tp7575198p7576547.html
> Sent from the ITK Insight Users mailing list archive at Nabble.com.
> _____________________________________
> 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/20120528/88ad2892/attachment.htm>
More information about the Insight-users
mailing list