Libraryless. Click here for Pure Java version (4491L/26K).
sclass IISingleColor extends Meta implements IIntegralImage { int w, h; int[] color; *() {} *(int *w, int *h, int[] *color) {} public int getWidth() { ret w; } public int getHeight() { ret h; } public double getIntegralValue(int x, int y, int channel) { ret (x+1)*(y+1)*color[channel]; } public BufferedImage getBufferedImage() { ret newBufferedImage(getWidth(), getHeight(), toColor(color)); } }
Began life as a copy of #1031964
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx
No comments. add comment
Snippet ID: | #1032000 |
Snippet name: | IISingleColor - IIntegralImage filled with a single color |
Eternal ID of this version: | #1032000/3 |
Text MD5: | c2887c20835826d7c72a94c3afeff857 |
Transpilation MD5: | 8db2bd2628f9e4527ec1d2d6f92a2a31 |
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-08 15:53:30 |
Source code size: | 453 bytes / 18 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 162 / 302 |
Version history: | 2 change(s) |
Referenced in: | [show references] |