Re: Issues with real-time display in ImageJ

Posted by MRivers on
URL: http://imagej.273.s1.nabble.com/Issues-with-real-time-display-in-ImageJ-tp5022793p5022796.html

>  When displaying monochrome images (ByteProcessor, ShortProcessor, FloatProcessor) the Image/Adjust/Brightness/Contrast works fine. 
> I can set the brightness and contrast or high and low levels and they are “permanent” until I change them again, and all subsequent images are displayed using these values. 
> However when displaying RGB images (ColorProcessor) when I change the brightness and contrast it only applies to the current image, they reset automatically when the next image is displayed. 
> Is there a way to prevent this behavior, or could this be fixed?

I tried adding this line to my code that displays the RGB images, where img is the ImagePlus object.

 img.setDisplayRange(img.getDisplayRangeMin(), img.getDisplayRangeMax(), 7);

However, with this line present as soon as I adjust the brightness and contrast the images stop updating with no error message.

Mark



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