<div class="gmail_quote">On Thu, Jan 22, 2009 at 10:38 AM, Michael Jackson <span dir="ltr">&lt;<a href="mailto:mike.jackson@bluequartz.net">mike.jackson@bluequartz.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I noticed the method SetNumberOfThreads(int); in the RegistrationMethod class. I set this to &quot;2&quot; (I have a Dual Core machine) but when I run my registration code I am not seeing both CPU&#39;s utilized, I just get 1 CPU fully utilized. Are there only specific Registration Methods that are multi-threaded or am I mis-interpreting what this method is supposed to do.</blockquote>
<div><br>Yes.<br><br>The components of the registration methods are :<br><br>- Metric<br>- Optimizer<br>- Transform<br>- Resampling stage<br><br>Some (not all) of the metrics are multi-threaded. These are the Mattes MI, Mean Squares and Match Cardinality image metrics. You need to turn on the ITK_USE_OPTIMIZED_REGISTRATION_METHODS flag.<br>
<br>The resampling (to resample the moving image using the transform onto the fixed image) is multithreaded.<br><br></div></div><br>-- <br>Karthik Krishnan<br>R&amp;D Engineer,<br>Kitware Inc.<br>Ph: 518 371 3971 x119<br>
Fax: 518 371 3971<br>