Libraryless. Click here for Pure Java version (8816L/50K).
1 | srecord noeq ScaledBufferedImageFromIntegralImage(IIntegralImage img, int w, int h) is ScalingImageOpResult<IIntegralImage> { |
2 | BufferedImage result; |
3 | |
4 | run { |
5 | int[] pixels = img cast IntegralImage |
6 | ? scaledPixelsFromIntegralImage(img, w, h) |
7 | : scaledPixelsFromIntegralImage(img, w, h); |
8 | result = bufferedImage(w, h, pixels); |
9 | } |
10 | |
11 | public IIntegralImage scalingSrcImage() { ret img; } |
12 | } |
Began life as a copy of #1034527
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1034884 |
Snippet name: | ScaledBufferedImageFromIntegralImage - improved meta-aware procedure |
Eternal ID of this version: | #1034884/4 |
Text MD5: | bb6a9ab7f7901e4d60861945e1b10d02 |
Transpilation MD5: | 4194c0d5ced892d4ab5513a3ea0bbfae |
Author: | stefan |
Category: | javax / imaging |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-03-13 01:18:42 |
Source code size: | 418 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 138 / 226 |
Version history: | 3 change(s) |
Referenced in: | [show references] |