Login  Register

Re: Changing amount of sharpen and smooth

Posted by Gabriel Landini on Apr 11, 2010; 10:23am
URL: http://imagej.273.s1.nabble.com/Changing-amount-of-sharpen-and-smooth-tp3688605p3688606.html

On Sunday 11 April 2010, you wrote:
> Is there any function to change amount of sharpen? For example
> imp.getProcessor().sharpen(3.24)?

Not in the way you are trying to do it. Look at the source of ImageProcessor.
The method sharpen is a hard-wired 3x3 convolution kernel.

You will have to make your own kernel to sharpen more, or use a different
method (for instance the Process>Filters>Unsharp_Mask, command which supports
a radius and a weighting).

For smooth use the Gaussian blurring or the Mean filters which both support a
kernel radius.

G.