static BWImage bwAutoContrastAllRects(BWImage bw, L<Rect> rects, float def) { int w = bw.getWidth(), h = bw.getHeight(); BWImage bw2 = new BWImage(bw); for (Rect r : rects) { BWImage c = bwAutoContrast(bw.clip(r), def); copyBWImage(c, 0, 0, bw2, r.x, r.y, r.w, r.h); } ret bw2; }
Began life as a copy of #1015507
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1015508 |
| Snippet name: | bwAutoContrastAllRects |
| Eternal ID of this version: | #1015508/3 |
| Text MD5: | 39487bfe600f6413db9e9c7feced9d6c |
| Author: | stefan |
| Category: | javax / imaging |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-05-15 04:29:40 |
| Source code size: | 305 bytes / 9 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 606 / 639 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |