[ITK] [ITK-users] Mattes Mutual Information Metric - MultiThread

Johnson, Hans J hans-johnson at uiowa.edu
Wed Apr 23 09:59:35 EDT 2014


I believe this was fixed.

I created a new gerrit-patch to update the documentation:
http://review.source.kitware.com/#/c/15249/

The note about multi-threading not working was placed there in 2002, and
there was a lot of work done to address multithreading since that time.

Multithreading was fixed in 2011 in preparation for
using MI for BRAINSTools testing and for inclusion into
Slicer.  It was fixed in patch set
f542d0c75848ccb8bf35130a896da2fdb1a10d2c,
but the comment was overlooked.


Hans



On 4/23/14, 6:41 AM, "Ivan Setiawan" <ivans at yahoo.co.jp> wrote:

>Dear all,
>
>I have a question regarding multi-threading in
>itk::MattesMutualInformationImageToImageMetric.
>Currently I am using v4.4.0.
>
>The document below has a note that "2. This class in not thread safe due
>the private data structures used to the store the sampled points and the
>marginal and joint pdfs."
>http://www.itk.org/Doxygen44/html/classitk_1_1MattesMutualInformationImage
>ToImageMetric.html
>
>However, I have tried with SetNumberOfThreads(1) and
>SetNumberOfThreads(16) and found that both single- or multi-thread gave
>the same bit-exact result.
>Of course, the one with SetNumberOfThreads(16) processed much faster.
>
>So my question, is it OK to use
>itk::MattesMutualInformationImageToImageMetric with multi-thread even
>though the document says not to?
>
>Thank you and best regards,
>Ivan
>
>_____________________________________
>Powered by www.kitware.com
>
>Visit other Kitware open-source projects at
>http://www.kitware.com/opensource/opensource.html
>
>Kitware offers ITK Training Courses, for more information visit:
>http://www.kitware.com/products/protraining.php
>
>Please keep messages on-topic and check the ITK FAQ at:
>http://www.itk.org/Wiki/ITK_FAQ
>
>Follow this link to subscribe/unsubscribe:
>http://www.itk.org/mailman/listinfo/insight-users



________________________________
Notice: This UI Health Care e-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged.  If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited.  Please reply to the sender that you have received the message in error, then delete it.  Thank you.
________________________________
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users



More information about the Community mailing list