Skip to main content

Class: SemanticSegmentation

Extends

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

ParameterType

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

object

color.a?

number

color.b

number

color.g

number

color.r

number

label

string

Returns

SemanticSegmentation

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;
type
type: number;

Inherited from

BaseType.raw

Methods

toJSON()

toJSON(): {
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;
}[];
}>

Returns

{ 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; }[]; }>

Inherited from

BaseType.toJSON