Libraryless. Click here for Pure Java version (7296L/43K).
sclass UpdatableImage extends Meta implements IIntegralImage { RegisteredReference<IIntegralImage> contents = new(this); *() {} *(IIntegralImage contents) { this.contents.set(contents); } *(BufferedImage img) { this(IntegralImage(img)); } public int getWidth() { ret contents->getWidth(); } public int getHeight() { ret contents->getHeight(); } public double getIntegralValue(int x, int y, int channel) { ret contents->getIntegralValue(x, y, channel); } public double getIntegralValue(int x, int y) { ret contents->getIntegralValue(x, y); } public BufferedImage getBufferedImage() { ret contents->getBufferedImage(); } }
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: | 198 / 358 |
Version history: | 11 change(s) |
Referenced in: | [show references] |