Libraryless. Click here for Pure Java version (3829L/22K).
1 | sclass IIVirtualClip extends Meta implements IIntegralImage { |
2 | RegisteredReference<IIntegralImage> fullImage = new(this); |
3 | int x1, y1, w, h; |
4 | |
5 | *() {} |
6 | *(IIntegralImage fullImage, int *x1, int *y1, int *w, int *h) { |
7 | this.fullImage.set(fullImage); |
8 | } |
9 | |
10 | public int getWidth() { ret w; } |
11 | public int getHeight() { ret h; } |
12 | |
13 | public double getIntegralValue(int x, int y, int channel) { |
14 | ret fullImage->getIntegralValue(x+x1, y+y1, channel); |
15 | } |
16 | |
17 | public double getIntegralValue(int x, int y) { |
18 | ret fullImage->getIntegralValue(x+x1, y+y1); |
19 | } |
20 | |
21 | public BufferedImage getBufferedImage() { |
22 | ret clipBufferedImage(fullImage->getBufferedImage(), x1, y1, w, h); |
23 | } |
24 | } |
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: | 184 / 443 |
Version history: | 3 change(s) |
Referenced in: | [show references] |