Libraryless. Click here for Pure Java version (13290L/77K).
1 | srecord noeq ScaledBWImageFromBWIntegralImage(IBWIntegralImage img, int w, int h) is ScalingImageOpResult<IBWIntegralImage> { |
2 | BWImage result; |
3 | |
4 | run { |
5 | byte[] pixels = img cast BWIntegralImage |
6 | ? scaledGrayBytesFromBWIntegralImage(img, w, h) |
7 | : scaledGrayBytesFromBWIntegralImage(img, w, h); |
8 | result = new BWImage(w, h, pixels); |
9 | } |
10 | |
11 | public IBWIntegralImage scalingSrcImage() { ret img; } |
12 | } |
Began life as a copy of #1033935
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1034527 |
Snippet name: | ScaledBWImageFromBWIntegralImage - improved meta-aware procedure |
Eternal ID of this version: | #1034527/5 |
Text MD5: | 83cc87ab56fba8b43799035411283e11 |
Transpilation MD5: | 54b396a3d31e6b32ee1432e62780e126 |
Author: | stefan |
Category: | javax / imaging |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-02-17 18:03:03 |
Source code size: | 425 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 155 / 273 |
Version history: | 4 change(s) |
Referenced in: | [show references] |