<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">&lt;<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>&gt;</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ć &lt;<a href="mailto:dzenanz@gmail.com">dzenanz@gmail.com</a>&gt;:<br>
<div><div></div><div class="h5">&gt; Thanks for the insight.<br>
&gt; However I was already using anisotropic diffusion, and I was bothered by<br>
&gt; blurring in certain situations, and that is why I wanted to try<br>
&gt; oil-painting.<br>
&gt; Since it is not present yet, I will implement it. The algorithm seems pretty<br>
&gt; simple.<br>
&gt; Is there any interest to make it available as an image filter for ITK, and<br>
&gt; should I be developing it for v3.20 or v4alpha?<br>
&gt; Regards,<br>
&gt; Dženan<br>
&gt; 2011/6/5 Luis Ibanez &lt;<a href="mailto:luis.ibanez@kitware.com">luis.ibanez@kitware.com</a>&gt;<br>
&gt;&gt;<br>
&gt;&gt; Hi<br>
&gt;&gt;<br>
&gt;&gt; Yes, the filter<br>
&gt;&gt;<br>
&gt;&gt; itkVectorGradientAnisotropicDiffusionImageFilter<br>
&gt;&gt;<br>
&gt;&gt; <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>


&gt;&gt;<br>
&gt;&gt; will do the equivalent.<br>
&gt;&gt;<br>
&gt;&gt; See the example:<br>
&gt;&gt;<br>
&gt;&gt; ITK/Examples/Filtering/<br>
&gt;&gt;   RGBGradientAnisotropicDiffusionImageFilter.cxx<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Try running it as:<br>
&gt;&gt;<br>
&gt;&gt; RGBGradientAnisotropicDiffusionImageFilter  \<br>
&gt;&gt;   lena.jpg    itk_oil_lena.png    50    0.12<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; If you want more &quot;oilification&quot;<br>
&gt;&gt; then increase the number of iterations.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;     Luis<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; ------------------------------------------<br>
&gt;&gt; 2011/6/3 Dženan Zukić &lt;<a href="mailto:dzenanz@gmail.com">dzenanz@gmail.com</a>&gt;:<br>
&gt;&gt; &gt; Hi all,<br>
&gt;&gt; &gt; is there something like an oil painting filter in ITK?<br>
&gt;&gt; &gt; Regards,<br>
&gt;&gt; &gt; Dženan<br>
&gt;&gt; &gt; _____________________________________<br>
&gt;&gt; &gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Visit other Kitware open-source projects at<br>
&gt;&gt; &gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Kitware offers ITK Training Courses, for more information visit:<br>
&gt;&gt; &gt; <a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Please keep messages on-topic and check the ITK FAQ at:<br>
&gt;&gt; &gt; <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Follow this link to subscribe/unsubscribe:<br>
&gt;&gt; &gt; <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;<br>
&gt;<br>
&gt; _____________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Kitware offers ITK Training Courses, for more information visit:<br>
&gt; <a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the ITK FAQ at:<br>
&gt; <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
&gt;<br>
&gt;<br>
</div></div></blockquote></div><br></div>