Libraryless. Click here for Pure Java version (4067L/25K).
1 | static ImageWithProtos imageWithProtos_segment(IF1<BufferedImage, L<Rect>> segmenter, BufferedImage img, O... _) { |
2 | if (img == null || segmenter == null) null; |
3 | long time = sysNow(); |
4 | ImageWithProtos info = nu(optPar iwpClass(_, ImageWithProtos)); |
5 | info.image = img; |
6 | info.segments = map(segmenter.get(img), r -> nuObject(optPar segmentClass(_, BWImageAndRect), r)); |
7 | done2_always(time, "Make " + nSegments(info.segments)); |
8 | ret info; |
9 | } |
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1025034 |
Snippet name: | imageWithProtos_segment |
Eternal ID of this version: | #1025034/4 |
Text MD5: | 0c224b6119de28f81f8228fff30a5721 |
Transpilation MD5: | 9c5510fa6dc45eb779af1b13bfffea65 |
Author: | stefan |
Category: | javax / visual bots |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-09-01 19:20:09 |
Source code size: | 451 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 232 / 337 |
Version history: | 3 change(s) |
Referenced in: | [show references] |