Hi Luis-<br><br>"FFT crosscorrelation
if you were looking for a face in a group
photograph"<br><br>Is there any example code available for determining the location of a predefined template pattern image in another image using the aforementioned technique? If not, can you recommend some filters for me to check out myself? Thanks-<br>
<br>-Ryan<br><br><div class="gmail_quote">On Fri, Dec 10, 2010 at 7:12 AM, Luis Ibanez <span dir="ltr"><<a href="mailto:luis.ibanez@kitware.com">luis.ibanez@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Gaetan,<br>
<br>
Thanks for the clarification.<br>
<br>
An example has now been added for the<br>
ValuedRegionalMaximaImageFilter:<br>
<br>
<a href="http://www.itk.org/Wiki/ITK/Examples/ImageProcessing/ValuedRegionalMaximaImageFilter" target="_blank">http://www.itk.org/Wiki/ITK/Examples/ImageProcessing/ValuedRegionalMaximaImageFilter</a><br>
<br>
<br>
<br>
Luis<br>
<br>
<br>
------------------------------------------------<br>
<div><div></div><div class="h5">On Fri, Dec 10, 2010 at 7:49 AM, Gaëtan Lehmann<br>
<<a href="mailto:gaetan.lehmann@jouy.inra.fr">gaetan.lehmann@jouy.inra.fr</a>> wrote:<br>
><br>
> Le 10 déc. 10 à 12:59, Luis Ibanez a écrit :<br>
><br>
>> Hi David,<br>
>><br>
>> Thanks for posting the example.<br>
>><br>
>> I just modified the CreateImage() method<br>
>> to better illustrate what this filter does.<br>
>><br>
>><br>
>> <a href="http://www.itk.org/Wiki/ITK/Examples/ImageProcessing/RegionalMaximaImageFilter" target="_blank">http://www.itk.org/Wiki/ITK/Examples/ImageProcessing/RegionalMaximaImageFilter</a><br>
>><br>
>> It essentially find the local maxima in the<br>
>> input image and mark them in the output<br>
>> image. So, the output image is a binary<br>
>> image that is zero everywhere, except at<br>
>> the pixels that are local intensity maxima<br>
>> in the input image.<br>
>><br>
>> This is the filter that you may want to<br>
>> run on the output of an FFT crosscorrelation<br>
>> if you were looking for a face in a group<br>
>> photograph, or the if you were analyzing<br>
>> the parameter space of an Hough transform.<br>
>><br>
>><br>
>> I'm not sure that this is what Robert was<br>
>> asking for... from his email, it looks like<br>
>> he wanted the output pixel to have the<br>
>> value of the input pixel. On the bright side<br>
>> that probably can be done with a minor<br>
>> retouch of the filter source code.<br>
><br>
> Hi,<br>
><br>
> This is exactly what itk::ValuedRegionalMaximaImageFilter is doing.<br>
> IIRC, itk::RegionalMaximaImageFilter use the output of<br>
> itk::ValuedRegionalMaximaImageFilter to produce its output image.<br>
><br>
> Regards,<br>
><br>
> Gaëtan<br>
><br>
><br>
>><br>
>> but, maybe now that the example is clearer,<br>
>> it would be easier for Robert to give it a try<br>
>> and let us know.<br>
>><br>
>><br>
>> Luis<br>
>><br>
>><br>
>> -----------------------------------------------<br>
>> On Thu, Dec 9, 2010 at 11:25 AM, David Doria <<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>> wrote:<br>
>>><br>
>>> On Thu, Dec 9, 2010 at 11:16 AM, Ryan Smith <<a href="mailto:ryanleesmith@gmail.com">ryanleesmith@gmail.com</a>><br>
>>> wrote:<br>
>>>><br>
>>>> Hi Robert-<br>
>>>><br>
>>>> You might take a look at the itk::RegionalMaximaFilter.<br>
>>>><br>
>>>> Here is a previous response that helped me with a similar task:<br>
>>>><br>
>>>><br>
>>>> <a href="http://public.kitware.com/pipermail/insight-users/2010-September/038088.html" target="_blank">http://public.kitware.com/pipermail/insight-users/2010-September/038088.html</a><br>
>>>><br>
>>>> Cheers-<br>
>>>> -Ryan<br>
>>><br>
>>> (small typo: itk::RegionalMaximaFilter -><br>
>>> itk::RegionalMaximaImageFilter)<br>
>>><br>
>>> I put a shell example here:<br>
>>><br>
>>> <a href="http://www.itk.org/Wiki/ITK/Examples/ImageProcessing/RegionalMaximaImageFilter" target="_blank">http://www.itk.org/Wiki/ITK/Examples/ImageProcessing/RegionalMaximaImageFilter</a><br>
>>><br>
>>> I'm not exactly sure what this filter is supposed to do. If someone<br>
>>> can modify the CreateImage function so that the resulting filtered<br>
>>> image demonstrates the point that would be great.<br>
>>><br>
>>> David<br>
>>> _____________________________________<br>
>>> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>>><br>
>>> Visit other Kitware open-source projects at<br>
>>> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>>><br>
>>> Kitware offers ITK Training Courses, for more information visit:<br>
>>> <a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
>>><br>
>>> Please keep messages on-topic and check the ITK FAQ at:<br>
>>> <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
>>><br>
>>> Follow this link to subscribe/unsubscribe:<br>
>>> <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
>>><br>
>> _____________________________________<br>
>> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>><br>
>> Visit other Kitware open-source projects at<br>
>> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>><br>
>> Kitware offers ITK Training Courses, for more information visit:<br>
>> <a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
>><br>
>> Please keep messages on-topic and check the ITK FAQ at:<br>
>> <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
>><br>
>> Follow this link to subscribe/unsubscribe:<br>
>> <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
><br>
> --<br>
> Gaëtan Lehmann<br>
> Biologie du Développement et de la Reproduction<br>
> INRA de Jouy-en-Josas (France)<br>
> tel: +33 1 34 65 29 66 fax: 01 34 65 29 09<br>
> <a href="http://voxel.jouy.inra.fr" target="_blank">http://voxel.jouy.inra.fr</a> <a href="http://www.itk.org" target="_blank">http://www.itk.org</a><br>
> <a href="http://www.mandriva.org" target="_blank">http://www.mandriva.org</a> <a href="http://www.bepo.fr" target="_blank">http://www.bepo.fr</a><br>
><br>
><br>
</div></div></blockquote></div><br>