<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Now I'm confused. What is the difference between the two?<br>
    <br>
    The comment at the top of 
    itkJointHistogramMutualInformationImageToImageMetricv4.h indicates
    that this is the Mattes et al method. However, the reference
    predates the Mattes paper by three years. (By the way the class name
    is wrong in the comment so it doesn't show up in the doxygen
    document. I have edited the comment.)<br>
    <br>
    /** \class JointHistogramMutualInformationImageToImageMetric<br>
     * \brief Computes the mutual information between two images to be<br>
     * registered using the method of Mattes et al.<br>
     *<br>
     * References:<br>
     * [1] "Optimization of Mutual Information for MultiResolution Image<br>
     *      Registration"<br>
     *      P. Thevenaz and M. Unser<br>
     *      IEEE Transactions in Image Processing, 9(12) December 2000.<br>
     *<br>
     * \ingroup ITKMetricsv4<br>
     */<br>
    <br>
    So, does this class implement the referenced paper?<br>
    <br>
    Is the v4 Mattes class thread safe?<br>
    <br>
    <br>
    Thanks,<br>
    <br>
    Tim<br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 13-03-13 10:10 AM, brian avants
      wrote:<br>
    </div>
    <blockquote
cite="mid:CABWzF4V4gANpYHZP_63vTW_KPovv7p+ttHAZqHGqx5X2aj00nA@mail.gmail.com"
      type="cite">
      <div dir="ltr"><a moz-do-not-send="true"
          href="http://www.itk.org/Doxygen43/html/search.php?query=mattes">http://www.itk.org/Doxygen43/html/search.php?query=mattes</a><br>
        <div><br>
        </div>
        <div style="">gives you</div>
        <div style=""><br>
        </div>
        <div style=""><a moz-do-not-send="true"
href="http://www.itk.org/Doxygen43/html/classitk_1_1MattesMutualInformationImageToImageMetricv4.html">http://www.itk.org/Doxygen43/html/classitk_1_1MattesMutualInformationImageToImageMetricv4.html</a><br>
        </div>
      </div>
      <div class="gmail_extra"><br clear="all">
        <div>
          <div><br>
          </div>
          brian<br>
          <div><br>
          </div>
          <div><br>
          </div>
        </div>
        <br>
        <br>
        <div class="gmail_quote">On Wed, Mar 13, 2013 at 9:37 AM, Tim
          Allman <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:dr.tim.allman@gmail.com" target="_blank">dr.tim.allman@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">
            <div text="#000000" bgcolor="#FFFFFF"> My apologies for not
              reading the documentation. <span><span> :-[ </span></span><br>
              <br>
              However, the v4 version,
              JointHistogramMutualInformationImageToImageMetricv4, truly
              is undocumented. What is its thread safety?<br>
              <br>
              Thanks,<br>
              Tim
              <div>
                <div class="h5"><br>
                  <br>
                  <div>On 13-03-12 05:33 PM, Christopher Mullins wrote:<br>
                  </div>
                  <blockquote type="cite">
                    <div dir="ltr"><span
                        style="font-size:14px;font-family:Geneva,Arial,Helvetica,sans-serif"><i>"This

                          class in not thread safe due the private data
                          structures used to the store the sampled
                          points and the marginal and joint pdfs." [1]</i></span><br>
                      <div><span
                          style="font-size:14px;font-family:Geneva,Arial,Helvetica,sans-serif"><i><br>
                          </i></span></div>
                      <div><span
                          style="font-size:14px;font-family:Geneva,Arial,Helvetica,sans-serif"><i>[1] </i></span><a
                          moz-do-not-send="true"
href="http://www.itk.org/Doxygen314/html/classitk_1_1MattesMutualInformationImageToImageMetric.html"
                          target="_blank">http://www.itk.org/Doxygen314/html/classitk_1_1MattesMutualInformationImageToImageMetric.html</a></div>
                    </div>
                    <div class="gmail_extra"><br>
                      <br>
                      <div class="gmail_quote">On Tue, Mar 12, 2013 at
                        4:50 PM, Rick Frank <span dir="ltr">&lt;<a
                            moz-do-not-send="true"
                            href="mailto:rfrank@dominionsw.com"
                            target="_blank">rfrank@dominionsw.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 dir="auto">
                            <div>What is the reason it is not thread
                              safe?<br>
                              <br>
                              Rick Frank</div>
                            <div>
                              <div>
                                <div><br>
                                  On Mar 12, 2013, at 2:10 PM, "Tim
                                  Allman" &lt;<a moz-do-not-send="true"
href="mailto:dr.tim.allman@gmail.com" target="_blank">dr.tim.allman@gmail.com</a>&gt;

                                  wrote:<br>
                                  <br>
                                </div>
                                <blockquote type="cite">
                                  <div> I have been living with mutual
                                    information day and night for  a
                                    while. You can get more information
                                    about Normalised MI in D. Rueckert
                                    et al. IEEE Trans. Med. Imag., 18
                                    712 (1999) and Mattes MI in Mattes
                                    et al IEEE Trans. Med. Imag., 22
                                    120-128 (2003) and references
                                    contained therein.<br>
                                    <br>
                                    If you understand the methods in the
                                    papers, the ITK classes start to
                                    make sense in spite of the poor
                                    documentation. It is undocumented
                                    but true that Mattes MI is not
                                    thread safe so you must set the
                                    number of threads it uses to 1. I
                                    don't know about the other.<br>
                                    <br>
                                    Tim<br>
                                    <br>
                                    <div>On 13-03-12 01:26 PM, Pedro
                                      Morais wrote:<br>
                                    </div>
                                    <blockquote type="cite">Good
                                      afternoon,
                                      <div><br>
                                      </div>
                                      <div>I'm working with Mattes
                                        Mutual Information to register a
                                        MRI sequence.</div>
                                      <div>Someone can send me some
                                        information about Mattes Mutual
                                        Information implementation,
                                        there are a lot of parameters
                                        but I think that the
                                        documentation is not enough.</div>
                                      <div>I don't understand what is
                                        the difference between the
                                        Normalized Mutual Information
                                        and Mattes Mutual Information. I
                                        need to decide between the two
                                        methods, but I need to know the
                                        advantagens of each technique.</div>
                                      <div><br>
                                      </div>
                                      <div>Thanks for the help.</div>
                                      <div>
                                        <div>-- </div>
                                        <div>Kind Regards,</div>
                                        <div><br>
                                        </div>
                                        Pedro Morais </div>
                                      <br>
                                      <fieldset></fieldset>
                                      <br>
                                      <pre>_____________________________________
Powered by <a moz-do-not-send="true" href="http://www.kitware.com" target="_blank">www.kitware.com</a>

Visit other Kitware open-source projects at
<a moz-do-not-send="true" href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a>

Kitware offers ITK Training Courses, for more information visit:
<a moz-do-not-send="true" href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a>

Please keep messages on-topic and check the ITK FAQ at:
<a moz-do-not-send="true" href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a>

Follow this link to subscribe/unsubscribe:
<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>
</pre>
                                    </blockquote>
                                    <br>
                                    <pre cols="72">-- 
Tim Allman, Ph.D.
35 Margaret Street,
Guelph Ontario N1E 5R6
Canada
</pre>
                                  </div>
                                </blockquote>
                              </div>
                            </div>
                            <blockquote type="cite">
                              <div>&lt;dr_tim_allman.vcf&gt;</div>
                            </blockquote>
                            <div>
                              <blockquote type="cite">
                                <div><span>_____________________________________</span><br>
                                  <span>Powered by <a
                                      moz-do-not-send="true"
                                      href="http://www.kitware.com"
                                      target="_blank">www.kitware.com</a></span><br>
                                  <span></span><br>
                                  <span>Visit other Kitware open-source
                                    projects at</span><br>
                                  <span><a moz-do-not-send="true"
                                      href="http://www.kitware.com/opensource/opensource.html"
                                      target="_blank">http://www.kitware.com/opensource/opensource.html</a></span><br>
                                  <span></span><br>
                                  <span>Kitware offers ITK Training
                                    Courses, for more information visit:</span><br>
                                  <span><a moz-do-not-send="true"
                                      href="http://www.kitware.com/products/protraining.php"
                                      target="_blank">http://www.kitware.com/products/protraining.php</a></span><br>
                                  <span></span><br>
                                  <span>Please keep messages on-topic
                                    and check the ITK FAQ at:</span><br>
                                  <span><a moz-do-not-send="true"
                                      href="http://www.itk.org/Wiki/ITK_FAQ"
                                      target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a></span><br>
                                  <span></span><br>
                                  <span>Follow this link to
                                    subscribe/unsubscribe:</span><br>
                                  <span><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></span><br>
                                </div>
                              </blockquote>
                            </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 clear="all">
                      <div><br>
                      </div>
                      -- <br>
                      Christopher Mullins
                      <div>R&amp;D Engineer</div>
                      <div>Kitware Inc.,</div>
                      <div><a moz-do-not-send="true"
                          href="tel:919.869.8871" value="+19198698871"
                          target="_blank">919.869.8871</a></div>
                    </div>
                  </blockquote>
                  <br>
                  <pre cols="72">-- 
Tim Allman, Ph.D.
35 Margaret Street,
Guelph Ontario N1E 5R6
Canada
</pre>
                </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>
      </div>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Tim Allman, Ph.D.
35 Margaret Street,
Guelph Ontario N1E 5R6
Canada
</pre>
  </body>
</html>