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

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

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

Prashant-2-3
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