[ITK-users] [ITK] Normalized Cross Correlation returns perfect alignment with images not even overlapping

Francois Budin francois.budin at kitware.com
Tue Apr 11 09:00:16 EDT 2017


Hello Andrew,

Did you try to initialize the registration with [1] for example?
If the images do not overlap at all at the beginning of the registration,
the algorithm might only do what Dżenan said, match black pixels.
Initializing the transform should help.

Hope this helps,
Francois

[1]
https://itk.org/Doxygen/html/classitk_1_1CenteredTransformInitializer.html

On Tue, Apr 11, 2017 at 8:36 AM, Andrew Harris <aharr8 at uwo.ca> wrote:

> In the image mask, the parts we want to include in the calculation are
> bright and the parts that we want to exclude are dark, is that the opposite
> of what it should be?
>
> --
>
> AH
>
>
> ------------------------------------------------------------
> -----------------------------------
>
> *This email and any attachments thereto may contain private,
> confidential, and privileged materials for the sole use of the intended
> recipient. Any reviewing, copying, or distribution of this email (or any
> attachments thereto) by other than the intended recipient is strictly
> prohibited. If you are not the intended recipient, please contact the
> sender immediately and permanently destroy this email and any attachments
> thereto.*
>
> On Thu, Mar 30, 2017 at 7:25 PM, Dženan Zukić <dzenanz at gmail.com> wrote:
>
>> Hi Andrew,
>>
>> your masks might be inverted. If NCC gets all black pixels in both
>> images, the correlation will be perfect.
>>
>> Regards,
>> Dženan
>>
>> On Thu, Mar 30, 2017 at 2:13 PM, Andrew Harris <aharr8 at uwo.ca> wrote:
>>
>>> Hi, I'm hoping someone can guide me toward an explanation of this.  I
>>> run my pipeline on various ultrasound image sets and get an NCC between
>>> 0.65 and 0.8 for good alignments, but on some sets the NCC returns 1.0 when
>>> the images aren't even overlapping.  I have the black areas of the image
>>> masked out, and have even tried cranking up the threshold to be sure the
>>> darker areas aren't being included to no avail.  Any thoughts?
>>>
>>> --
>>>
>>> AH
>>>
>>>
>>> ------------------------------------------------------------
>>> -----------------------------------
>>>
>>> *This email and any attachments thereto may contain private,
>>> confidential, and privileged materials for the sole use of the intended
>>> recipient. Any reviewing, copying, or distribution of this email (or any
>>> attachments thereto) by other than the intended recipient is strictly
>>> prohibited. If you are not the intended recipient, please contact the
>>> sender immediately and permanently destroy this email and any attachments
>>> thereto.*
>>>
>>> _____________________________________
>>> 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://public.kitware.com/mailman/listinfo/insight-users
>>>
>>>
>>
>
> _____________________________________
> 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://public.kitware.com/mailman/listinfo/insight-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/insight-users/attachments/20170411/011f7d0d/attachment.html>


More information about the Insight-users mailing list