<div>Is there a way to create a non-rectangular shaped region? Or is there a way to perform registration with some pixel locations masked out? </div>
<div> </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. If I use rectangular region, I will have to give up columns or rows of pixels, which is not preferred. Any thoughts or feedback are appreciated. Thanks.</div>
<div> </div>
<div>Regards,</div>
<div>Brandon</div>
<div><br><br> </div>
<div><span class="gmail_quote">On 3/31/08, <b class="gmail_sendername">Brandon Lin</b> <<a href="mailto:brandon.lin@gmail.com">brandon.lin@gmail.com</a>> 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> </div><span class="sg">
<div>Brandon<br><br> </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> <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Tomash.Kazmar@seznam.cz" target="_blank">Tomash.Kazmar@seznam.cz</a>> 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'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 < ImageType::ImageDimension; i++) {<br> index[i] = ...start of your region...<br> 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'm trying to perform 2D image to image registration. However, I'd like to<br>
# define a region of the image to perform registration. I understand that<br># this can be done using registration->SetFixedImageRegion() method. The<br># example only uses the full image. Could anyone please point me to<br>
# documentation on how to setup the region? All I need to specify is the<br># start pixel and length for each dimension.<br></blockquote></div><br></span></div></blockquote></div><br>