Shapes
siapy.entities.shapes
¶
ShapeType
module-attribute
¶
ShapeType = Literal[
_SHAPE_TYPE_RECTANGLE,
_SHAPE_TYPE_POINT,
_SHAPE_TYPE_FREEDRAW,
]
Shape
dataclass
¶
Bases: ABC
Source code in siapy/entities/shapes.py
32 33 34 35 36 37 38 39 40 |
|
from_shape_type
classmethod
¶
Source code in siapy/entities/shapes.py
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
|
convex_hull
abstractmethod
¶
convex_hull()
Source code in siapy/entities/shapes.py
80 81 82 |
|
GeometricShapes
dataclass
¶
GeometricShapes(
image: SpectralImage,
geometric_shapes: list[Shape] | None = None,
)
Source code in siapy/entities/shapes.py
87 88 89 90 91 92 93 |
|
append
¶
append(shape: Shape)
Source code in siapy/entities/shapes.py
122 123 124 |
|
extend
¶
Source code in siapy/entities/shapes.py
126 127 128 |
|
insert
¶
Source code in siapy/entities/shapes.py
130 131 132 |
|
remove
¶
remove(shape: Shape)
Source code in siapy/entities/shapes.py
134 135 136 |
|
pop
¶
Source code in siapy/entities/shapes.py
138 139 |
|
clear
¶
clear()
Source code in siapy/entities/shapes.py
141 142 |
|
index
¶
Source code in siapy/entities/shapes.py
144 145 146 |
|
count
¶
Source code in siapy/entities/shapes.py
148 149 150 |
|
reverse
¶
reverse()
Source code in siapy/entities/shapes.py
152 153 |
|
sort
¶
Source code in siapy/entities/shapes.py
155 156 |
|
Rectangle
¶
Bases: Shape
Source code in siapy/entities/shapes.py
186 187 |
|
from_shape_type
classmethod
¶
Source code in siapy/entities/shapes.py
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
|
convex_hull
¶
convex_hull() -> Pixels
Source code in siapy/entities/shapes.py
189 190 191 192 193 194 195 196 197 198 |
|
Point
¶
Bases: Shape
Source code in siapy/entities/shapes.py
202 203 |
|
from_shape_type
classmethod
¶
Source code in siapy/entities/shapes.py
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
|
FreeDraw
¶
Bases: Shape
Source code in siapy/entities/shapes.py
210 211 |
|
from_shape_type
classmethod
¶
Source code in siapy/entities/shapes.py
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
|
convex_hull
¶
convex_hull() -> Pixels
Source code in siapy/entities/shapes.py
213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 |
|