<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
    <link href="chrome://translator/skin/floatingPanel.css"
      type="text/css" rel="stylesheet">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hi,<br>
      <br>
      maybe itk::DifferenceImageFilter is what you are looking for?
      AbsoluteValueDifferenceImageFilter calculates |a|-|b|.<br>
      <br>
      Christina Rossmanith<br>
      --<br>
      <span
style="font-size:10pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"
        lang="EN-GB">Dept. of Neurology</span> <br>
      <span
style="font-size:10pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"
        lang="EN-GB">University Medical Center Mannheim</span><br>
      <br>
      Am 10.08.2012 09:13, schrieb Navneeth Subramanian:<br>
    </div>
    <blockquote
cite="mid:CAODkZ4c5CgT+EruedCbrnY4DjeJW_30cO=W=jQMTXRqRXM_-XA@mail.gmail.com"
      type="cite">Bill - Is it the difference image filter:<br>
      <a moz-do-not-send="true"
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 moz-do-not-send="true"
            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'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
                      moz-do-not-send="true"
                      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,</span></p>
                        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">&nbsp;</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.</span></p>
                        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">I
                            tried &nbsp;to upgrade to ITK4, this turned out
                            to be not that simple, so we decided to
                            postpone this for now.</span></p>
                        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">&nbsp;</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,</span></p>
                        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">&nbsp;</span></p>
                        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Thank
                            you.</span></p>
                        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">&nbsp;</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
                                moz-do-not-send="true"
                                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 moz-do-not-send="true"
                                href="mailto:insight-users@itk.org"
                                target="_blank">insight-users@itk.org</a><br>
                              <b>Subject:</b> Re: [Insight-users]
                              compare images</span></p>
                        </div>
                        <div>
                          <div>
                            <p class="MsoNormal">&nbsp;</p>
                            <p class="MsoNormal"
                              style="margin-bottom:12.0pt">If you are
                              using itkv4, look at
                              Modules/Core/TestKernel/include/itkTestingComparisonImageFilter.h.
                              It's what itk uses for regression testing.<br>
                              <br>
                            </p>
                            <div>
                              <p class="MsoNormal">On Fri, Aug 3, 2012
                                at 4:21 PM, Gerenrot, Mikhail &lt;<a
                                  moz-do-not-send="true"
                                  href="mailto:mikhail.gerenrot@stryker.com"
                                  target="_blank">mikhail.gerenrot@stryker.com</a>&gt;
                                wrote:</p>
                              <div>
                                <div>
                                  <p class="MsoNormal">Hi Team,</p>
                                  <p class="MsoNormal">&nbsp;</p>
                                  <p class="MsoNormal">We need to check
                                    if images are equal, and we wrote a
                                    method that uses iterators and
                                    compares pixels:</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></p>
                                  <p class="MsoNormal"
                                    style="text-autospace:none"><span
                                      style="font-size:10.0pt;font-family:&quot;Courier
                                      New&quot;">{</span></p>
                                  <p class="MsoNormal"
                                    style="text-autospace:none"><span
                                      style="font-size:10.0pt;font-family:&quot;Courier
                                      New&quot;">&nbsp;
                                      itk::ImageSliceConstIteratorWithIndex&lt;ImageType&gt;
                                      it1( image1,
                                      image1-&gt;GetRequestedRegion() );</span></p>
                                  <p class="MsoNormal"
                                    style="text-autospace:none"><span
                                      style="font-size:10.0pt;font-family:&quot;Courier
                                      New&quot;">&nbsp;
                                      itk::ImageSliceConstIteratorWithIndex&lt;ImageType&gt;
                                      it2( image2,
                                      image2-&gt;GetRequestedRegion() );</span></p>
                                  <p class="MsoNormal"
                                    style="text-autospace:none"><span
                                      style="font-size:10.0pt;font-family:&quot;Courier
                                      New&quot;">&nbsp;</span></p>
                                  <p class="MsoNormal"
                                    style="text-autospace:none"><span
                                      style="font-size:10.0pt;font-family:&quot;Courier
                                      New&quot;">&nbsp; PixelType p1;</span></p>
                                  <p class="MsoNormal"
                                    style="text-autospace:none"><span
                                      style="font-size:10.0pt;font-family:&quot;Courier
                                      New&quot;">&nbsp; PixelType p2;</span></p>
                                  <p class="MsoNormal"
                                    style="text-autospace:none"><span
                                      style="font-size:10.0pt;font-family:&quot;Courier
                                      New&quot;">&nbsp;</span></p>
                                  <p class="MsoNormal"><span
                                      style="font-size:10.0pt;font-family:&quot;Courier
                                      New&quot;;color:#00b050">// loop
                                      starts</span></p>
                                  <p class="MsoNormal"><span
                                      style="font-size:10.0pt;font-family:&quot;Courier
                                      New&quot;">&#8230;</span></p>
                                  <p class="MsoNormal"
                                    style="text-autospace:none"><span
                                      style="font-size:10.0pt;font-family:&quot;Courier
                                      New&quot;">&nbsp; p1 = it1.Get();</span></p>
                                  <p class="MsoNormal"
                                    style="text-autospace:none"><span
                                      style="font-size:10.0pt;font-family:&quot;Courier
                                      New&quot;">&nbsp; p2 = it2.Get();</span></p>
                                  <p class="MsoNormal"
                                    style="text-autospace:none"><span
                                      style="font-size:10.0pt;font-family:&quot;Courier
                                      New&quot;">&nbsp; <span
                                        style="color:blue">if</span>(p1
                                      != p2)</span></p>
                                  <p class="MsoNormal"
                                    style="text-autospace:none">
                                    <span
                                      style="font-size:10.0pt;font-family:&quot;Courier
                                      New&quot;">&nbsp; {</span></p>
                                  <p class="MsoNormal"
                                    style="text-autospace:none"><span
                                      style="font-size:10.0pt;font-family:&quot;Courier
                                      New&quot;">&nbsp; &nbsp;&nbsp;<span
                                        style="color:blue">return</span>
                                      <span style="color:blue">false</span>;</span></p>
                                  <p class="MsoNormal"
                                    style="text-autospace:none"><span
                                      style="font-size:10.0pt;font-family:&quot;Courier
                                      New&quot;">&nbsp; }</span></p>
                                  <p class="MsoNormal"
                                    style="text-autospace:none"><span
                                      style="font-size:10.0pt;font-family:&quot;Courier
                                      New&quot;">&#8230;</span></p>
                                  <p class="MsoNormal"><span
                                      style="font-size:10.0pt;font-family:&quot;Courier
                                      New&quot;;color:#00b050">// loop
                                      ends</span></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></p>
                                  <p class="MsoNormal"
                                    style="text-autospace:none"><span
                                      style="font-size:10.0pt;font-family:&quot;Courier
                                      New&quot;">}</span></p>
                                  <p class="MsoNormal"
                                    style="text-autospace:none"><span
                                      style="font-size:10.0pt;font-family:&quot;Courier
                                      New&quot;">&nbsp;</span></p>
                                  <p class="MsoNormal">Is there any
                                    better way?</p>
                                  <p class="MsoNormal">Any input will be
                                    greatly appreciated.</p>
                                  <p class="MsoNormal">&nbsp;</p>
                                  <p class="MsoNormal">Thank you all in
                                    advance,</p>
                                  <p class="MsoNormal">&nbsp;</p>
                                  <p class="MsoNormal">Your Mike
                                    Gerenrot</p>
                                  <p class="MsoNormal">Stryker Corp.</p>
                                  <p class="MsoNormal">&nbsp;</p>
                                </div>
                              </div>
                              <p class="MsoNormal"
                                style="margin-bottom:12.0pt">
                                <br>
                                _____________________________________<br>
                                Powered by <a moz-do-not-send="true"
                                  href="http://www.kitware.com"
                                  target="_blank">www.kitware.com</a><br>
                                <br>
                                Visit other Kitware open-source projects
                                at<br>
                                <a moz-do-not-send="true"
                                  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 moz-do-not-send="true"
                                  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 moz-do-not-send="true"
                                  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 moz-do-not-send="true"
                                  href="http://www.itk.org/mailman/listinfo/insight-users"
                                  target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a></p>
                            </div>
                            <p class="MsoNormal"
                              style="margin-bottom:12.0pt"><br>
                              <br clear="all">
                              <br>
                              -- <br>
                              Unpaid intern in BillsBasement at noware
                              dot com</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 moz-do-not-send="true"
            href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
          <br>
          Visit other Kitware open-source projects at<br>
          <a moz-do-not-send="true"
            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 moz-do-not-send="true"
            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 moz-do-not-send="true"
            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 moz-do-not-send="true"
            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>
      <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>
    <div style="bottom: auto; left: 588px; right: auto; top: 119px;
      display: none;" class="translator-theme-default"
      id="translator-floating-panel">
      <div title="Zum &uuml;bersetzen klicken"
        id="translator-floating-panel-button"></div>
    </div>
  </body>
</html>