<font size="2"><font face="verdana,sans-serif">Algorithmically it is similar. Median sorts the values in the neighborhood and takes the middle one, this one creates a histogram of values in the neighborhood and takes the highest peak.</font></font><div>
<font size="2"><font face="verdana,sans-serif"><br></font></font></div><div><font size="2"><font face="verdana,sans-serif">However the effect is different: oil painting filter creates patches of homogeneous intensity whose size is proportional to image content and neighborhood size.<br>
</font></font><br><div class="gmail_quote">2011/6/6 Bill Lorensen <span dir="ltr"><<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
That algorithm looks similar to a median filter...<br>
<br>
2011/6/6 Dženan Zukić <<a href="mailto:dzenanz@gmail.com">dzenanz@gmail.com</a>>:<br>
<div><div></div><div class="h5">> Thanks for the insight.<br>
> However I was already using anisotropic diffusion, and I was bothered by<br>
> blurring in certain situations, and that is why I wanted to try<br>
> oil-painting.<br>
> Since it is not present yet, I will implement it. The algorithm seems pretty<br>
> simple.<br>
> Is there any interest to make it available as an image filter for ITK, and<br>
> should I be developing it for v3.20 or v4alpha?<br>
> Regards,<br>
> Dženan<br>
> 2011/6/5 Luis Ibanez <<a href="mailto:luis.ibanez@kitware.com">luis.ibanez@kitware.com</a>><br>
>><br>
>> Hi<br>
>><br>
>> Yes, the filter<br>
>><br>
>> itkVectorGradientAnisotropicDiffusionImageFilter<br>
>><br>
>> <a href="http://www.itk.org/Doxygen/html/classitk_1_1VectorGradientAnisotropicDiffusionImageFilter.html" target="_blank">http://www.itk.org/Doxygen/html/classitk_1_1VectorGradientAnisotropicDiffusionImageFilter.html</a><br>
>><br>
>> will do the equivalent.<br>
>><br>
>> See the example:<br>
>><br>
>> ITK/Examples/Filtering/<br>
>> RGBGradientAnisotropicDiffusionImageFilter.cxx<br>
>><br>
>><br>
>> Try running it as:<br>
>><br>
>> RGBGradientAnisotropicDiffusionImageFilter \<br>
>> lena.jpg itk_oil_lena.png 50 0.12<br>
>><br>
>><br>
>> If you want more "oilification"<br>
>> then increase the number of iterations.<br>
>><br>
>><br>
>> Luis<br>
>><br>
>><br>
>> ------------------------------------------<br>
>> 2011/6/3 Dženan Zukić <<a href="mailto:dzenanz@gmail.com">dzenanz@gmail.com</a>>:<br>
>> > Hi all,<br>
>> > is there something like an oil painting filter in ITK?<br>
>> > Regards,<br>
>> > Dženan<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>
><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>
</div></div></blockquote></div><br></div>