File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
src/main/java/ai/nets/samj/annotation Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 22
22
import java .awt .Polygon ;
23
23
import java .util .Arrays ;
24
24
import java .util .List ;
25
+ import java .util .Objects ;
26
+ import java .util .UUID ;
25
27
26
28
import net .imglib2 .RandomAccessibleInterval ;
27
29
import net .imglib2 .img .array .ArrayImgs ;
@@ -37,6 +39,10 @@ public class Mask {
37
39
38
40
private final Polygon contour ;
39
41
42
+ private String name ;
43
+
44
+ private final String uuid = UUID .randomUUID ().toString ();
45
+
40
46
// TODO private final long[] rleEncoding;
41
47
public long [] rleEncoding ;
42
48
@@ -49,6 +55,19 @@ public static Mask build(Polygon contour, long[] rleEncoding) {
49
55
return new Mask (contour , rleEncoding );
50
56
}
51
57
58
+ public String getName () {
59
+ return name ;
60
+ }
61
+
62
+ public void setName (String name ) {
63
+ Objects .requireNonNull (name , "argument 'name' cannot be null" );
64
+ this .name = name ;
65
+ }
66
+
67
+ public String getUUID () {
68
+ return uuid ;
69
+ }
70
+
52
71
public Polygon getContour () {
53
72
return this .contour ;
54
73
}
You can’t perform that action at this time.
0 commit comments