<div>Is there a way to create a non-rectangular shaped region?&nbsp; Or is there a way to perform registration with some pixel locations masked out?&nbsp; </div>
<div>&nbsp;</div>
<div>I would like perform registration between two images, but there are some pixels at the top left and top right corners I need to mask out.&nbsp; If I use rectangular region, I will have to give up columns or rows of pixels, which is not preferred.&nbsp; Any thoughts or feedback are appreciated.&nbsp; Thanks.</div>

<div>&nbsp;</div>
<div>Regards,</div>
<div>Brandon</div>
<div><br><br>&nbsp;</div>
<div><span class="gmail_quote">On 3/31/08, <b class="gmail_sendername">Brandon Lin</b> &lt;<a href="mailto:brandon.lin@gmail.com">brandon.lin@gmail.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>Thank Tomáš.</div>
<div>&nbsp;</div><span class="sg">
<div>Brandon<br><br>&nbsp;</div></span>
<div><span class="q" id="q_119058051d42dcb7_2">
<div><span class="gmail_quote">On 3/31/08, <b class="gmail_sendername">Tomáš Kazmar</b> &lt;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Tomash.Kazmar@seznam.cz" target="_blank">Tomash.Kazmar@seznam.cz</a>&gt; wrote:</span> 
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi Brandon,<br><br>just do what you describe. Create a region of your image&#39;s region type, setup<br>its index and size, and call SetFixedImageRegion():<br>
<br>ImageType::RegionType region;<br>ImageType::IndexType index;<br>ImageType::SizeType size;<br>for (int i = 0; i &lt; ImageType::ImageDimension; i++) {<br>&nbsp;&nbsp; index[i] = ...start of your region...<br>&nbsp;&nbsp; size[i] = ...size of your region...<br>
}<br>region.SetIndex(index);<br>region.SetSize(size);<br>...<br>registration.SetFixedImageRegion(region);<br><br>For more information read the ITK Software Guide, Section 4.1 on Images.<br><br>Regards,<br>Tomas<br><br># I&#39;m trying to perform 2D image to image registration.&nbsp;&nbsp;However, I&#39;d like to<br>
# define a region of the image to perform registration.&nbsp;&nbsp;I understand that<br># this can be done using registration-&gt;SetFixedImageRegion() method.&nbsp;&nbsp;The<br># example only uses the full image.&nbsp;&nbsp;Could anyone please point me to<br>
# documentation on how to setup the region?&nbsp;&nbsp;All I need to specify is the<br># start pixel and length for each dimension.<br></blockquote></div><br></span></div></blockquote></div><br>