Libraryless. Click here for Pure Java version (3829L/22K).
sclass IIVirtualClip extends Meta implements IIntegralImage { RegisteredReference<IIntegralImage> 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); } }
Began life as a copy of #1031958
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx
No comments. add comment
| Snippet ID: | #1031960 |
| Snippet name: | IIVirtualClip |
| Eternal ID of this version: | #1031960/4 |
| Text MD5: | 6fbe03d358e54b54d04230635e79888e |
| Transpilation MD5: | de9a5ada3a8e676945a67f972e018803 |
| Author: | stefan |
| Category: | javax / image recognition |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-08-05 23:33:37 |
| Source code size: | 713 bytes / 24 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 420 / 714 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |