Login  Register

Re: Changing amount of sharpen and smooth

Posted by Michael Schmid on Apr 11, 2010; 2:14pm
URL: http://imagej.273.s1.nabble.com/Changing-amount-of-sharpen-and-smooth-tp3688605p3688611.html

Hi Dashko,

probably the easiest would be to set the correct image scale (Analyze>Set
Scale) for both images and then use calibrated units for Gaussian Blur
(e.g., a radius of 1 micrometer for both). Set the pixel aspect ratio the
appropriate value if your pixels are not square, e.g. if you have
1200x1600 pixels but a square area.

For sharpening, it won't be so easy: you could subtract the image after
'Gaussian Blur' with the same radius in calibrated units. The result for
the two images won't be equivalent, however: With 1200 pixels, you will
have more details than with 275 pixels, so you would have to blur the
1600-pxl image first to show the same amount of detail as the 275-pixel
image.

Hope this helps,

Michael
________________________________________________________________________


On Sun, April 11, 2010 14:04, dashko wrote:

> Ok, here is thing:
> I have small image 275x275 pixels and i need sharpen this image. Then i
> have
> same picture, but larger 1600x1200 pixels, and i need apply exactly same
> sharpen (i applied on the small image).
>
> That's a problem because i apply on small image, for example:
>
> int[] kernel = {-1, -1, -1,
> -1, 30-amount, -1,
> -1, -1, -1};
> imp.getProcessor().convolve3x3(kernel);
>
> On larger image i can't use 3x3 kernel, it isn't same sharpen. I should
> use
> (275/3)/(1600/3) = 5 * 3 = 15, so convolve15x15 i guess :)
>
> So is there any option in my case?
>
> --
> View this message in context:
> http://n2.nabble.com/Changing-amount-of-sharpen-and-smooth-tp4884651p4885306.html
> Sent from the ImageJ mailing list archive at Nabble.com.
>