Libraryless. Click here for Pure Java version (4961L/29K).
1 | persistable sclass SemanticImage<A> extends Var<A> implements MakesBufferedImage { |
2 | IIntegralImage image; |
3 | |
4 | *(IIntegralImage *image, A value) { |
5 | super(value); |
6 | } |
7 | *(A value, IIntegralImage *image) { |
8 | super(value); |
9 | } |
10 | |
11 | public int getWidth() { ret image.getWidth(); } |
12 | public int getHeight() { ret image.getHeight(); } |
13 | public BufferedImage getBufferedImage() { ret image.getBufferedImage(); } |
14 | |
15 | IIntegralImage image aka img aka getImage() { ret image; } |
16 | } |
Began life as a copy of #1031348
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx
No comments. add comment
Snippet ID: | #1032465 |
Snippet name: | SemanticImage - integral image plus semantic object of user-defined type (call get() to get) |
Eternal ID of this version: | #1032465/6 |
Text MD5: | 8d9c7289ad29b20b34876f32a583e16a |
Transpilation MD5: | b8afd7b2dabf7a9acc2ac1952bce1da2 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-09-08 04:13:56 |
Source code size: | 491 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 150 / 284 |
Version history: | 5 change(s) |
Referenced in: | [show references] |