[prev in list] [next in list] [prev in thread] [next in thread] 

List:       insight-users
Subject:    Re: [Insight-users] BlockMatchingImageFilter with different distance metrics
From:       Fotis Drakopoulos <fotdrak () msn ! com>
Date:       2013-04-24 17:30:33
Message-ID: CAG6AjROhNKB=VqoK6qJZ71LqUkpHE7ujcya6j52_BujeD3Dn2g () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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@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@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@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>
> > >  
> > 
> > 
> 


[Attachment #5 (text/html)]

<div dir="ltr"><span \
style="font-family:arial,sans-serif;font-size:13.333333969116211px">In your case I \
would first create a simple ThreadedGeneratedData Method to debug and verify the \
correctness of the new metric.</span><div \
style="font-family:arial,sans-serif;font-size:13.333333969116211px"> Then if  ITK \
requires a template method I would proceed to the template version.</div></div><div \
class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Apr 24, 2013 at 1:16 PM, \
David Fuentes <span dir="ltr">&lt;<a href="mailto:fuentesdt@gmail.com" \
target="_blank">fuentesdt@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 dir="ltr">thanks for the quick reply fotis,<div>do you \
think this would be worth the time to template on a new metric ? <br> \
</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div \
class="gmail_quote">On Wed, Apr 24, 2013 at 12:12 PM, Fotis Drakopoulos <span \
dir="ltr">&lt;<a href="mailto:fdrakopo@gmail.com" \
target="_blank">fdrakopo@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 dir="ltr">Hello David,<div><br></div><div>The simplest \
and easiest way to do it is to rewrite the<span \
style="font-family:arial,sans-serif;font-size:13.333333969116211px"> </span><span \
style="font-family:arial,sans-serif;font-size:13.333333969116211px">ThreadedGenerateData \
method with the new metric. </span></div>


<div><span style="font-family:arial,sans-serif;font-size:13.333333969116211px">However, \
a more </span><span style="font-size:13.333333969116211px;font-family:arial,sans-serif">sofisticated \
</span>approach would be <span \
style="font-size:13.333333969116211px;font-family:arial,sans-serif">the \
BlockMatchingImageFilter to be templated on the metric.</span></div>


<div><span style="font-family:arial,sans-serif;font-size:13.333333969116211px"><br></span></div><div><span \
style="font-family:arial,sans-serif;font-size:13.333333969116211px">Best \
Regards</span></div><div><span \
style="font-family:arial,sans-serif;font-size:13.333333969116211px">Fotis</span></div>



</div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div>On Wed, Apr \
24, 2013 at 12:52 PM, David Fuentes <span dir="ltr">&lt;<a \
href="mailto:fuentesdt@gmail.com" target="_blank">fuentesdt@gmail.com</a>&gt;</span> \
wrote:<br>


</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex"><div><div><div dir="ltr">Hi,<div><br></div><div>What \
would be the best way to approach running the BlockMatchingImageFilter with different \
similarity metrics such as mean square difference or mutual information ? </div>


<div>
<br></div><div><br></div><div>Should the ThreadedGenerateData method be overwritten \
in a derived class or should the BlockMatchingImageFilter be templated on the metric \
? </div><div><br></div><div> Thanks,</div><div>David</div></div>



</div></div><div><span \
style="font-style:normal;font-size:medium;display:inline;font-weight:normal"> <hr>


NOTE: This message was trained as non-spam.  If this is wrong,
please correct the training as soon as possible.
<br>

<a href="https://www.spamtrap.odu.edu/canit/b.php?i=01JrQQzg4&amp;m=30cc23fd9838&amp;t=20130424&amp;c=s" \
target="_blank">Spam</a><br>

<a href="https://www.spamtrap.odu.edu/canit/b.php?i=01JrQQzg4&amp;m=30cc23fd9838&amp;t=20130424&amp;c=n" \
target="_blank">Not spam</a><br>

<a href="https://www.spamtrap.odu.edu/canit/b.php?i=01JrQQzg4&amp;m=30cc23fd9838&amp;t=20130424&amp;c=f" \
target="_blank">Forget previous vote</a><br></span></div>


</blockquote></div><br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>



_____________________________________
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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic