Transpiled version (14740L) is out of date.
// keeps a set of "masks" (remembered shapes) with labels // simple version without hashes or trees // A is the user object associated with each mask (aka a "label") sclass G22SimpleMasksHolder<A> { record noeq Mask(Image2B image, A label) { Image2B image() { ret image; } } gettable new L<Mask> masks; void addRegion(IImageRegion region, A label) { masks.add(new Mask(regionToMaskImage(region), label)); ghost_cache = null; certainty_cache = null; labels.add(label); } !include early #1035854 // Masks holder Include }
Began life as a copy of #1035842
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): elmgxqgtpvxh, mqqgnosmbjvj, wnsclhtenguj
No comments. add comment
| Snippet ID: | #1035849 |
| Snippet name: | G22SimpleMasksHolder - use G22HashedMasks instead |
| Eternal ID of this version: | #1035849/5 |
| Text MD5: | 0788428374fcd8dc6982896e51ba4c74 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-08-23 17:33:06 |
| Source code size: | 574 bytes / 19 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 417 / 500 |
| Version history: | 4 change(s) |
| Referenced in: | [show references] |