[Insight-users] Passing an image to NormalizedCorrelationImageFilter::SetTemplate

Bill Lorensen bill.lorensen at gmail.com
Wed Oct 20 23:31:40 EDT 2010


Did you look at this test?
http://itk.org/gitweb?p=ITK.git;a=blob;f=Testing/Code/BasicFilters/itkNormalizedCorrelationImageFilterTest.cxx;h=f5f9ee272e81000fb3b8777e1d2182f3af739df7;hb=HEAD

On Wed, Oct 20, 2010 at 7:33 PM, David Doria <daviddoria at gmail.com> wrote:
> I am trying to extract a region of an image and use it as the template in
> the correlation to demonstrate the filter:
> http://www.vtk.org/Wiki/ITK/Examples/Images/NormalizedCorrelationImageFilter
> The problem is that the NormalizedCorrelationImageFilter::SetTemplate seems
> to expect something other than an image (a neighborhood? or an operator?).
> How would I convert the patch of the image that I have extracted into this
> format to pass it as the template?
> Also, if I want correlate over the whole image, I do not need to set a mask
> at all, right? If this is correct, should the MaskType template parameter be
> optional?
> Thanks,
>
> David
>
> _____________________________________
> 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.html
>
> 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 Insight-users mailing list