Login  Register

Re: How to auto adjust images in imageJ?

Posted by Mohamed Tleis on Nov 04, 2011; 10:30am
URL: http://imagej.273.s1.nabble.com/How-to-auto-adjust-images-in-imageJ-tp3682642p3682647.html

Thank you Danny,

I just began developing in imageJ, and I only was able to open an image
through Opener.open(); But I am not succeeding in linking the opened image
with an image processor, I tried the following code:
[code]
ImagePlus imPlus = new ImagePlus();
ImageProcessor ip = imPlus.getChannelProcessor();
[/code]

In order to check, I printed the imPlus.height and it was zero.
So I understand that the function getChannelProcessor doen't get the opened
image.

Any help or tutorials about this topics?

Best Regards,


On Fri, Nov 4, 2011 at 10:45 AM, Danny Misiak <[hidden email]> wrote:

> Hello,
>
> you can use the ImageProcessor's method resetMinAndMax() .
>
> After calling this method, the image is auto adjustetd like the
> Image/Adjust in the ImageJ GUI.
>
>
> Best regards.
>