Login  Register

Custom brightness & contrast on a image

Posted by Danae on Oct 10, 2016; 2:39pm
URL: http://imagej.273.s1.nabble.com/Custom-brightness-contrast-on-a-image-tp5017336.html

Good evening everyone.

I'm trying to do a plugin which in one part changes the brightness level and the contrast of an image with the data that the user enters. The plugin (among other things) basically does this:

On imageJ you open an image, then open the plugin and the plugin ask for 2 numbers, one for brightness and another for contrast and when the user presses OK, the image changes automatically to another image with the new brightness and contrast levels.

I know there's a function on ImageJ where you can adjust the contrast and brightness but in my plugin I want to do it without the menu that appears, only with the 2 numbers that I ask. I also know that there's another function called "Enhance contrast" but in that case I can only change the contrast.

Can anyone help me?

Thank you so much :)