[Insight-users] BlockMatchingImageFilter with different distance metrics

Fotis Drakopoulos fotdrak at msn.com
Wed Apr 24 13:30:33 EDT 2013


In your case I would first create a simple ThreadedGeneratedData Method to
debug and verify the correctness of the new metric.
Then if  ITK requires a template method I would proceed to the
template version.


On Wed, Apr 24, 2013 at 1:16 PM, David Fuentes <fuentesdt at gmail.com> wrote:

> thanks for the quick reply fotis,
> do you think this would be worth the time to template on a new metric ?
>
>
> On Wed, Apr 24, 2013 at 12:12 PM, Fotis Drakopoulos <fdrakopo at gmail.com>wrote:
>
>> Hello David,
>>
>> The simplest and easiest way to do it is to rewrite the ThreadedGenerateData
>> method with the new metric.
>> However, a more sofisticated approach would be the
>> BlockMatchingImageFilter to be templated on the metric.
>>
>> Best Regards
>> Fotis
>>
>>
>> On Wed, Apr 24, 2013 at 12:52 PM, David Fuentes <fuentesdt at gmail.com>wrote:
>>
>>> Hi,
>>>
>>> What would be the best way to approach running the
>>> BlockMatchingImageFilter with different similarity metrics such as mean
>>> square difference or mutual information ?
>>>
>>>
>>> Should the ThreadedGenerateData method be overwritten in a derived class
>>> or should the BlockMatchingImageFilter be templated on the metric ?
>>>
>>> Thanks,
>>> David
>>>  ------------------------------
>>> NOTE: This message was trained as non-spam. If this is wrong, please
>>> correct the training as soon as possible.
>>> Spam<https://www.spamtrap.odu.edu/canit/b.php?i=01JrQQzg4&m=30cc23fd9838&t=20130424&c=s>
>>> Not spam<https://www.spamtrap.odu.edu/canit/b.php?i=01JrQQzg4&m=30cc23fd9838&t=20130424&c=n>
>>> Forget previous vote<https://www.spamtrap.odu.edu/canit/b.php?i=01JrQQzg4&m=30cc23fd9838&t=20130424&c=f>
>>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20130424/09aec0d6/attachment.htm>


More information about the Insight-users mailing list