Bill - Is it the difference image filter:<br><a href="http://www.itk.org/Doxygen/html/classitk_1_1AbsoluteValueDifferenceImageFilter.html">http://www.itk.org/Doxygen/html/classitk_1_1AbsoluteValueDifferenceImageFilter.html</a> <br>
you are referring to ?<br><br><div class="gmail_quote">On Sat, Aug 4, 2012 at 2:55 AM, Bill Lorensen <span dir="ltr">&lt;<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">There is a similar class in ITKv3, but I can&#39;t recall the name.<span class="HOEnZb"><font color="#888888"><div><br>
</div></font></span><div><span class="HOEnZb"><font color="#888888">bill</font></span><div><div class="h5"><br><br><div class="gmail_quote">On Fri, Aug 3, 2012 at 5:17 PM, Gerenrot, Mikhail <span dir="ltr">&lt;<a href="mailto:mikhail.gerenrot@stryker.com" target="_blank">mikhail.gerenrot@stryker.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div link="blue" vlink="purple" lang="EN-US"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Bill,<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">We use ITK 3.1.<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">I tried  to upgrade to ITK4, this turned out to be not that simple, so we decided to postpone this for now.<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">I appreciate you help,<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Thank you.<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in">

<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> Bill Lorensen [mailto:<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>] <br>

<b>Sent:</b> Friday, August 03, 2012 1:41 PM<br><b>To:</b> Gerenrot, Mikhail<br><b>Cc:</b> <a href="mailto:insight-users@itk.org" target="_blank">insight-users@itk.org</a><br><b>Subject:</b> Re: [Insight-users] compare images<u></u><u></u></span></p>

</div><div><div><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal" style="margin-bottom:12.0pt">If you are using itkv4, look at Modules/Core/TestKernel/include/itkTestingComparisonImageFilter.h. It&#39;s what itk uses for regression testing.<br>

<br><u></u><u></u></p><div><p class="MsoNormal">On Fri, Aug 3, 2012 at 4:21 PM, Gerenrot, Mikhail &lt;<a href="mailto:mikhail.gerenrot@stryker.com" target="_blank">mikhail.gerenrot@stryker.com</a>&gt; wrote:<u></u><u></u></p>

<div><div><p class="MsoNormal">Hi Team,<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">We need to check if images are equal, and we wrote a method that uses iterators and compares pixels:<u></u><u></u></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">bool</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"> AreImagesEqual(<span style="color:blue">const</span> ImageType::Pointer &amp; image1, <span style="color:blue">const</span> ImageType::Pointer &amp; image2)</span><u></u><u></u></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">{</span><u></u><u></u></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">  itk::ImageSliceConstIteratorWithIndex&lt;ImageType&gt; it1( image1, image1-&gt;GetRequestedRegion() );</span><u></u><u></u></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">  itk::ImageSliceConstIteratorWithIndex&lt;ImageType&gt; it2( image2, image2-&gt;GetRequestedRegion() );</span><u></u><u></u></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"> </span><u></u><u></u></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">  PixelType p1;</span><u></u><u></u></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">  PixelType p2;</span><u></u><u></u></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"> </span><u></u><u></u></p>

<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#00b050">// loop starts</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">…</span><u></u><u></u></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">  p1 = it1.Get();</span><u></u><u></u></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">  p2 = it2.Get();</span><u></u><u></u></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">  <span style="color:blue">if</span>(p1 != p2)</span><u></u><u></u></p><p class="MsoNormal" style="text-autospace:none">

<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">  {</span><u></u><u></u></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">    <span style="color:blue">return</span> <span style="color:blue">false</span>;</span><u></u><u></u></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">  }</span><u></u><u></u></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">…</span><u></u><u></u></p>

<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#00b050">// loop ends</span><u></u><u></u></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">return true;</span><u></u><u></u></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">}</span><u></u><u></u></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"> </span><u></u><u></u></p>

<p class="MsoNormal">Is there any better way?<u></u><u></u></p><p class="MsoNormal">Any input will be greatly appreciated.<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">Thank you all in advance,<u></u><u></u></p>

<p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">Your Mike Gerenrot<u></u><u></u></p><p class="MsoNormal">Stryker Corp.<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p></div></div><p class="MsoNormal" style="margin-bottom:12.0pt">

<br>_____________________________________<br>Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br><br>Visit other Kitware open-source projects at<br><a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>

<br>Kitware offers ITK Training Courses, for more information visit:<br><a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br><br>Please keep messages on-topic and check the ITK FAQ at:<br>

<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><u></u><u></u></p>

</div><p class="MsoNormal" style="margin-bottom:12.0pt"><br><br clear="all"><br>-- <br>Unpaid intern in BillsBasement at noware dot com<u></u><u></u></p></div></div></div></div></blockquote></div><br><br clear="all"><div>

<br></div>-- <br>Unpaid intern in BillsBasement at noware dot com<br><br>
</div></div></div>
<br>_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br>