/** Returns an RGB version of this image as a ColorProcessor. */ public ImageProcessor convertToRGB() { TypeConverter tc = new TypeConverter(this, true); return tc.convertToRGB(); }
/** Returns an RGB version of this image as a ColorProcessor. */ public ImageProcessor convertToRGB() { TypeConverter tc = new TypeConverter(this, true); return tc.convertToRGB(); }
ImageProcessor convertType(ImageProcessor ip1,ImageProcessor ip,boolean doScaling){ ImageProcessor result = null; TypeConverter tc = new TypeConverter(ip1,doScaling); if(ip instanceof ByteProcessor) result = tc.convertToByte(); else if(ip instanceof FloatProcessor) result = ip1.convertToFloat(); else if(ip instanceof ColorProcessor) result = tc.convertToRGB(); else if(ip instanceof ShortProcessor) result = tc.convertToShort(); else result = ip1; return result; } void del() {
bDoScaling)).convertToRGB(); final int[] rgb = new int[3]; for (int x = 0; x < montageImageWidth; x++) {