Libraryless. Click here for Pure Java version (7296L/43K).
1 | sclass UpdatableImage extends Meta implements IIntegralImage { |
2 | RegisteredReference<IIntegralImage> contents = new(this); |
3 | |
4 | *() {} |
5 | *(IIntegralImage contents) { |
6 | this.contents.set(contents); |
7 | } |
8 | |
9 | *(BufferedImage img) { |
10 | this(IntegralImage(img)); |
11 | } |
12 | |
13 | public int getWidth() { ret contents->getWidth(); } |
14 | public int getHeight() { ret contents->getHeight(); } |
15 | |
16 | public double getIntegralValue(int x, int y, int channel) { |
17 | ret contents->getIntegralValue(x, y, channel); |
18 | } |
19 | |
20 | public double getIntegralValue(int x, int y) { |
21 | ret contents->getIntegralValue(x, y); |
22 | } |
23 | |
24 | public BufferedImage getBufferedImage() { |
25 | ret contents->getBufferedImage(); |
26 | } |
27 | } |
Began life as a copy of #1031920
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx
No comments. add comment
Snippet ID: | #1031958 |
Snippet name: | UpdatableImage - IIntegralImage where you can swap parts out while retaining the integral image property |
Eternal ID of this version: | #1031958/12 |
Text MD5: | fc29f679273b0bab8386b661b6dcd2a2 |
Transpilation MD5: | 03992d8f4c08fc3fc8e182085b2fa55d |
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:41:06 |
Source code size: | 712 bytes / 27 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 200 / 362 |
Version history: | 11 change(s) |
Referenced in: | [show references] |