<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7226.0">
<TITLE>Using masks in registration.</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<BR>

<P><FONT SIZE=2 FACE="Arial">Dear list, </FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I have a question on the use of masks in registration; I hope someone can help me.</FONT>

<BR><FONT SIZE=2 FACE="Arial">To define a custom region I use Metric-&gt;SetFixedImageMask(), as in ImageRegistration12.cxx. </FONT>

<BR><FONT SIZE=2 FACE="Arial">This seems to work fine; the IsInside() in the metric gives points in the masked region.</FONT>

<BR><FONT SIZE=2 FACE="Arial">However, there is one thing I do not understand: I get _very_ different results when setting the</FONT>

<BR><FONT SIZE=2 FACE="Arial">Registration-&gt;SetFixedImageRegion() to the entire image or when using, for example, the bounding</FONT>

<BR><FONT SIZE=2 FACE="Arial">box around the mask; even when numberofspatialsamples set to the total number of pixels of the masked</FONT>

<BR><FONT SIZE=2 FACE="Arial">area. I would expect that using a larger region would be (possibly much) slower, but not different, from using</FONT>

<BR><FONT SIZE=2 FACE="Arial">a smaller region, since in both cases numberofspatialsamples points are taken<I> inside</I> the masked region.</FONT>

<BR><FONT SIZE=2 FACE="Arial">So, I was wondering whether my assumptions were wrong (and, in that case, why?)? If not, than at least I know</FONT>

<BR><FONT SIZE=2 FACE="Arial">that there is a coding error somewhere that results in the observed behaviour..</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I hope you can help.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Regards,</FONT>
</P>
<BR>

<P><FONT SIZE=2 FACE="Arial">Ro.</FONT>
</P>
<BR>
<BR>
<BR>
<BR>
<BR>

<P><FONT SIZE=2 FACE="Arial">&nbsp;</FONT>
</P>
<BR>
<BR>

</BODY>
</HTML>