ErrorCodes.IMAGE_NOT_RGBIMAGE,
imageInput.toString(),
null,
null);
}
RgbImage rgbInput = (RgbImage) imageInput;
int [] rgbData = rgbInput.getData();
Gray8Image grayOutput = new Gray8Image(
rgbInput.getWidth(),
rgbInput.getHeight());
byte [] grayData = grayOutput.getData();
for (int i=0; i<rgbInput.getHeight()*rgbInput.getWidth(); i++) {
int nR = RgbVal.getR(rgbData[i]);
int nG = RgbVal.getG(rgbData[i]);
int nB = RgbVal.getB(rgbData[i]);
int nMinVal = Integer.MAX_VALUE;
for (int j=0; j<this.nRgbVecs.length; j++) {