Transpiled version (14740L) is out of date.
1 | // keeps a set of "masks" (remembered shapes) with labels |
2 | // simple version without hashes or trees |
3 | // A is the user object associated with each mask (aka a "label") |
4 | sclass G22SimpleMasksHolder<A> { |
5 | record noeq Mask(Image2B image, A label) { |
6 | Image2B image() { ret image; } |
7 | } |
8 | |
9 | gettable new L<Mask> masks; |
10 | |
11 | void addRegion(IImageRegion region, A label) { |
12 | masks.add(new Mask(regionToMaskImage(region), label)); |
13 | ghost_cache = null; |
14 | certainty_cache = null; |
15 | labels.add(label); |
16 | } |
17 | |
18 | !include early #1035854 // Masks holder Include |
19 | } |
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: | 193 / 242 |
Version history: | 4 change(s) |
Referenced in: | [show references] |