Libraryless. Click here for Pure Java version (5060L/33K).
static int bwImage_minOfArea(BWImage bw, Rect r) { if (bw == null) ret 0; int w = r.w, h = r.h; int min = 255; for y to h: for x to w: { int v = bw.getInt(r.x+x, r.y+y); min = min(min, v); } ret min; }
Began life as a copy of #1024705
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1026936 |
Snippet name: | bwImage_minOfArea |
Eternal ID of this version: | #1026936/1 |
Text MD5: | 0ac4ae8979bc4856e15adde31edd6b7f |
Transpilation MD5: | 57290ceb14fe82b1497f117e7d5c780b |
Author: | stefan |
Category: | javax / imaging |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-02-03 02:23:14 |
Source code size: | 230 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 248 / 360 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |