Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

9
LINES

< > BotCompany Repo | #1025034 // imageWithProtos_segment

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (4067L/25K).

static ImageWithProtos imageWithProtos_segment(IF1<BufferedImage, L<Rect>> segmenter, BufferedImage img, O... _) {
  if (img == null || segmenter == null) null;
  long time = sysNow();
  ImageWithProtos info = nu(optPar iwpClass(_, ImageWithProtos));
  info.image = img;
  info.segments = map(segmenter.get(img), r -> nuObject(optPar segmentClass(_, BWImageAndRect), r));
  done2_always(time, "Make " + nSegments(info.segments));
  ret info;
}

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: 231 / 336
Version history: 3 change(s)
Referenced in: [show references]