Hi Massi,<br><br>The Method:<br><br>             GetBufferedRegion()<br><br><a href="http://www.itk.org/Doxygen/html/classitk_1_1ImageBase.html#abb2a8342cd8793694d77aefade6e32f2">http://www.itk.org/Doxygen/html/classitk_1_1ImageBase.html#abb2a8342cd8793694d77aefade6e32f2</a><br>
<br>belongs to the itk::ImageBase class:<br><br><a href="http://www.itk.org/Doxygen/html/classitk_1_1ImageBase.html">http://www.itk.org/Doxygen/html/classitk_1_1ImageBase.html</a><br><br>from which all ITK Images derive.<br>
<br><br>The itk::ImageFileReader class, <br><a href="http://www.itk.org/Doxygen/html/classitk_1_1ImageFileReader.html">http://www.itk.org/Doxygen/html/classitk_1_1ImageFileReader.html</a><br><br>returns one of such ITK images <br>
in its GetOutput() method:<br><br>If you want to make the code more explicit <br>you could do:<br><br>  fixedImageReader-&gt;Update();<br><br>  const FixedImageType * fixedImage = <br>               fixedImageReader-&gt;GetOutput();<br>
<br>  registration-&gt;SetFixedImageRegion(<br>               fixedImage-&gt;GetBufferedRegion() );<br><br><br><br>   Luis<br><br><br>-----------------------------------------<br><div class="gmail_quote">On Fri, May 25, 2012 at 10:01 AM, Massi <span dir="ltr">&lt;<a href="mailto:Massinissa.Bandou@usherbrooke.ca" target="_blank">Massinissa.Bandou@usherbrooke.ca</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi<br>
Sorry there is no asterisk I tried to write it in bold.<br>
<br>
registration-&gt;SetFixedImageRegion(fixedImageReader-&gt;GetOutput()-&gt;GetBufferedRegion());<br>
<br>
it seems GetBufferedRegion() doesn&#39;t exist.<br>
I just want if I have to do something before setting the image region.<br>
<br>
Thank you<br>
<br>
Massi<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://itk-insight-users.2283740.n2.nabble.com/ImageRegistration1-tp7575198p7576547.html" target="_blank">http://itk-insight-users.2283740.n2.nabble.com/ImageRegistration1-tp7575198p7576547.html</a><br>

<div class="HOEnZb"><div class="h5">Sent from the ITK Insight Users mailing list archive at Nabble.com.<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>
</div></div></blockquote></div><br>