sclass IISingleColor extends Meta implements IIntegralImage { int w, h; int[] color; *() {} *(int *w, int *h, int[] *color) {} public int getWidth() { ret w; } public int getHeight() { ret h; } public double getIntegralValue(int x, int y, int channel) { ret (x+1)*(y+1)*color[channel]; } public BufferedImage getBufferedImage() { ret newBufferedImage(getWidth(), getHeight(), toColor(color)); } }