Class: SemanticSegmentation
Extends
BaseType
<RawDataOf
<Polygon
>>
Constructors
new SemanticSegmentation()
new SemanticSegmentation(
polygon: {
id: number;
properties: {
brush: {
a: number;
b: number;
g: number;
r: number;
};
category: string;
line: number;
pen: {
a: number;
b: number;
g: number;
r: number;
};
};
type: number;
} & XOR<{
polygon: {
x: number;
y: number;
}[];
}, {
inners: {
x: number;
y: number;
}[][];
outer: {
x: number;
y: number;
}[];
}>,
color: {
a: number;
b: number;
g: number;
r: number;
},
label: string): SemanticSegmentation
Parameters
Parameter | Type |
---|---|
| { |
|
|
|
|
|
|
|
|
|
|
|
|
Returns
Overrides
BaseType<RawDataOf<Polygon>>.constructor
Properties
color
readonly color: Color;
label
readonly label: string;
polygon
readonly polygon: Polygon;
raw
readonly raw: {
id: number;
properties: {
brush: {
a: number;
b: number;
g: number;
r: number;
};
category: string;
line: number;
pen: {
a: number;
b: number;
g: number;
r: number;
};
};
type: number;
} & XOR<{
polygon: {
x: number;
y: number;
}[];
}, {
inners: {
x: number;
y: number;
}[][];
outer: {
x: number;
y: number;
}[];
}>;
Type declaration
id
id: number;
properties
properties: {
brush: {
a: number;
b: number;
g: number;
r: number;
};
category: string;
line: number;
pen: {
a: number;
b: number;
g: number;
r: number;
};
};
properties.brush
brush: {
a: number;
b: number;
g: number;
r: number;
};
properties.brush.a?
optional a: number;
properties.brush.b
b: number;
properties.brush.g
g: number;
properties.brush.r
r: number;
properties.category
category: string;
properties.line
line: number;
properties.pen
pen: {
a: number;
b: number;
g: number;
r: number;
};
properties.pen.a?
optional a: number;
properties.pen.b
b: number;
properties.pen.g
g: number;
properties.pen.r
r: number;