Login  Register

Fw: Setting brightness and contrast not working on RGB JPEG images and Dicom Images

Posted by Prashant-2-3 on Jan 16, 2009; 4:56am
URL: http://imagej.273.s1.nabble.com/Fw-Setting-brightness-and-contrast-not-working-on-RGB-JPEG-images-and-Dicom-Images-tp3694049.html

Hi Everyone,

    I am using imagej for opening Dicom and JPEG images.
    I successfully setting brightness and contrast for black and white images
    But when it comes on RGB images it is not working properly.

    Is there any different methods for RGB images.

   I saw the following function is calling after setting brightness and contrast in class  ij.plugin.frame.ContrastAdjuster
 when images are RGB
 
/** Restore image outside non-rectangular roi. */

void doMasking(ImagePlus imp, ImageProcessor ip)

{

ImageProcessor mask = imp.getMask();

if (mask != null)

ip.reset(mask);

}

 Please help me.



--------------------------------------------------------------------

Prashant Chandrakar