sclass IIVirtualClip extends Meta implements IIntegralImage { RegisteredReference fullImage = new(this); int x1, y1, w, h; *() {} *(IIntegralImage fullImage, int *x1, int *y1, int *w, int *h) { this.fullImage.set(fullImage); } public int getWidth() { ret w; } public int getHeight() { ret h; } public double getIntegralValue(int x, int y, int channel) { ret fullImage->getIntegralValue(x+x1, y+y1, channel); } public double getIntegralValue(int x, int y) { ret fullImage->getIntegralValue(x+x1, y+y1); } public BufferedImage getBufferedImage() { ret clipBufferedImage(fullImage->getBufferedImage(), x1, y1, w, h); } }