<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
This is interesting. I get the same problem with the non-v4 version
of MeanSquaresImageToImageMetric but it goes away if I set the
number of threads to 1. It might be worth a try to see if this cures
your problem too.<br>
<br>
Tim<br>
<br>
<div class="moz-cite-prefix">On 13-01-21 03:58 AM, Champ Frédéric
wrote:<br>
</div>
<blockquote cite="mid:50FD033F.3050504@unistra.fr" type="cite">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
Hi,<br>
<br>
I'm working on a slice-by-slice registration method for diffusion
MRI.
The method works with the registration framework but the
itk::MattesMutualInformationImageToImageMetric (which gives best
results) is not thread safe.<br>
<br>
I tried to optimize this method be using the framework v4 but I
get
some problems.<br>
To compute a slice-by-slice registration, In the old framework I
set
the current slice as the fixed image region at each iteration. In
the
new framework, this region is used to create the mask of fixed
image
set in the metric (It's the only way I found to specify the image
region...) but it doesn't work and returns the following message:<br>
<br>
Description: itk::ERROR:
MattesMutualInformationImageToImageMetricv4(0x7f7eb004b360): <b>Too
many
samples map outside moving image buffer. There are only 4 valid
points out of 471 total points</b>. The images do not
sufficiently
overlap. They need to be initialized to have more overlap before
this
metric will work. For instance, you can align the image centers by
translation.<br>
<br>
However if I don't set any mask the registration works but it
registers
the whole volume...<br>
I tried to use the same Image as the fixed and moving one
(expecting an
overlap) or to use fixed sample point sets but in both cases I had
the
same error message.<br>
Did I missed some step ? Is there any way to specify the fixed
region ?<br>
<br>
Thanks,<br>
<br>
Fred<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_____________________________________
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>
Visit other Kitware open-source projects at
<a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>
Kitware offers ITK Training Courses, for more information visit:
<a class="moz-txt-link-freetext" href="http://www.kitware.com/products/protraining.php">http://www.kitware.com/products/protraining.php</a>
Please keep messages on-topic and check the ITK FAQ at:
<a class="moz-txt-link-freetext" href="http://www.itk.org/Wiki/ITK_FAQ">http://www.itk.org/Wiki/ITK_FAQ</a>
Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Tim Allman, Ph.D.
35 Margaret Street,
Guelph Ontario N1E 5R6
Canada
</pre>
</body>
</html>