1 | static BWImage bwAutoContrastAllRects(BWImage bw, L<Rect> rects, float def) { |
2 | int w = bw.getWidth(), h = bw.getHeight(); |
3 | BWImage bw2 = new BWImage(bw); |
4 | for (Rect r : rects) { |
5 | BWImage c = bwAutoContrast(bw.clip(r), def); |
6 | copyBWImage(c, 0, 0, bw2, r.x, r.y, r.w, r.h); |
7 | } |
8 | ret bw2; |
9 | } |
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: | 390 / 421 |
Version history: | 2 change(s) |
Referenced in: | [show references] |