settable WidthAndHeight maskSize; //new MultiSet<A> labels; // default mask size { maskSize(g22defaultMaskSideLength()); } selfType maskSize(int size) { ret maskSize(widthAndHeight(size)); } Image2B regionToMaskImage(IImageRegion region) { ret g22standardRegionToMaskImage(region, maskSize()); } public L<Image2B> maskImages() { ret map(masks(), mask -> mask.image()); } BufferedImage masksSquare() { ret mergeBufferedImagesAsSquare(allToBufferedImage(maskImages())); } PatchworkImage<Mask> masksPatchworkSquare() { ret patchworkImagesAsSquare(map(masks(), mask -> pair(toBufferedImage(mask.image()), mask))); } toString { ret renderVars(shortClassName(this), +maskSize, masks := n2(masks())); } simplyCached public G22GhostImage ghost() { ret new G22GhostImage(maskImages()); } simplyCached public double certainty() { ret ghost().certainty(); }
Began life as a copy of #1035850
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): mqqgnosmbjvj, wnsclhtenguj
No comments. add comment
Snippet ID: | #1035854 |
Snippet name: | Masks holder Include |
Eternal ID of this version: | #1035854/17 |
Text MD5: | aa9e0bda2acca668d0756ef403158630 |
Author: | stefan |
Category: | javax |
Type: | JavaX (incomplete) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-09-05 01:04:02 |
Source code size: | 979 bytes / 37 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 156 / 273 |
Version history: | 16 change(s) |
Referenced in: | [show references] |