brightness/contrast plugins

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

brightness/contrast plugins

Kenneth Sloan-2
I’m working with images which have wildly varying amounts of black background forming a frame.  There may well be some large “out of image” white areas - but I think the major problem is a black frame.

I have attempted to use  “Adjust brightness/contrast” - but haven’t found the right settings (or perhaps the right settings don’t exist).  Before I write my own - can someone tell me how to IGNORE the black frame?

The problem is that the presence of the black frame prevents “adjust brightness/contrast” from finding the black level in the image proper.  In that case, the adjusted image is much too bright.

The easiest fix I can think of is to pick a threshold and create a mask which would prevent the masked pixels from being included in the histogram used to do the brightness/contrast adjustment.  All the masked pixels would, of course, be mapped to 0 in the transformed image - that’s just fine.

So…can this be done using existing plugins? Or, should I just write my own Java code.  That’s not really a problem, but I’d prefer to use standard-issue ImageJ commands wherever possible.

--
Kenneth Sloan
[hidden email] <mailto:[hidden email]>
Vision is the art of seeing what is invisible to others.





--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html