paralleldomain.model.geometry.point_2d¶
- class Point2DBaseGeometry(x, y)¶
Represents a 2D Point.
- Parameters:
- x¶
coordinate along x-axis in image pixels
- y¶
coordinate along y-axis in image pixels
- class_id¶
Class ID of the point. Can be used to lookup more details in
ClassMap
.
- instance_id¶
Instance ID of annotated object. Can be used to cross-reference with other instance annotation types, e.g.,
InstanceSegmentation2D
orInstanceSegmentation3D
. If unknown defaults to -1.
- attributes¶
Dictionary of arbitrary object attributes.
- to_numpy()¶
Returns the coordinates as a numpy array with shape (1 x 2).