/** Converts the current image from RGB to CIE L*a*b* and stores the results * in the same RGB image R=L*, G=a*, B=b*. Values are therfore offset and rescaled. */ public static void RGBtoLab() { ImagePlus imp = IJ.getImage(); if (imp.getBitDepth()==24) imp.setProcessor(RGBtoLab(imp.getProcessor())); }
/** Converts the current image from RGB to CIE L*a*b* and stores the results * in the same RGB image R=L*, G=a*, B=b*. Values are therfore offset and rescaled. */ public static void RGBtoLab() { ImagePlus imp = IJ.getImage(); if (imp.getBitDepth()==24) imp.setProcessor(RGBtoLab(imp.getProcessor())); }