Login  Register

Re: thumbnail quality

Posted by Bilal Ahmed-2 on Dec 07, 2005; 5:28pm
URL: http://imagej.273.s1.nabble.com/thumbnail-quality-tp3704288p3704290.html

Hi Wayne,

Thanks for your help.  Since I am using the API only to generate thumbnails,
I wouldn't have access to the plugin.  I did however saw your code at
http://rsb.info.nih.gov/ij/plugins/download/Averaging_Reducer.java.  Is
there a way I can just call the methods to clear the images?  I believe
macros need to be run via the cmd shell, not java source.  Is that the right
assumption?

Thanks,
Bilal

-----Original Message-----
From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of
Rasband Wayne
Sent: Tuesday, December 06, 2005 6:59 PM
To: [hidden email]
Subject: Re: thumbnail quality

> I am using ImageJ Java API to create thumbnails.  It seems like the
> quality gets worse as the image gets smaller.  Is there a way to  
> enhance
> the image quality?

Try the Averaging Reducer plugin at "http://rsb.info.nih.gov/ij/ 
plugins/reducer.html". If you can't use a plugin, try smoothing the  
image, reducing it and then enhancing the contrast. Here is a macro  
that does this:

    run("Duplicate...", "title=Thumbnail");
    run("Gaussian Blur...", "radius=2");
    run("Size...", "width=100 height=100 constrain interpolate");
    run("Enhance Contrast", "saturated=0.1");

-wayne