Images
siapy.entities.images
¶
GeometricShapes
dataclass
¶
GeometricShapes(image: SpectralImage, geometric_shapes: list[Shape] | None = None)
PARAMETER | DESCRIPTION |
---|---|
image |
TYPE:
|
geometric_shapes |
|
Source code in siapy/entities/images.py
29 30 31 32 33 34 35 |
|
append
¶
append(shape: Shape)
PARAMETER | DESCRIPTION |
---|---|
shape |
TYPE:
|
Source code in siapy/entities/images.py
67 68 69 |
|
extend
¶
insert
¶
remove
¶
remove(shape: Shape)
PARAMETER | DESCRIPTION |
---|---|
shape |
TYPE:
|
Source code in siapy/entities/images.py
79 80 81 |
|
pop
¶
PARAMETER | DESCRIPTION |
---|---|
index |
TYPE:
|
Source code in siapy/entities/images.py
83 84 |
|
clear
¶
clear()
Source code in siapy/entities/images.py
86 87 |
|
index
¶
count
¶
PARAMETER | DESCRIPTION |
---|---|
shape |
TYPE:
|
Source code in siapy/entities/images.py
93 94 95 |
|
reverse
¶
reverse()
Source code in siapy/entities/images.py
97 98 |
|
sort
¶
SpectralImage
dataclass
¶
SpectralImage(sp_file: SpectralType, geometric_shapes: list[Shape] | None = None)
PARAMETER | DESCRIPTION |
---|---|
sp_file |
TYPE:
|
geometric_shapes |
|
Source code in siapy/entities/images.py
135 136 137 138 139 |
|
envi_open
classmethod
¶
envi_open(*, header_path: str | Path, image_path: str | Path | None = None) -> SpectralImage
PARAMETER | DESCRIPTION |
---|---|
header_path |
|
image_path |
|
Source code in siapy/entities/images.py
158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 |
|
to_display
¶
to_display(equalize: bool = True) -> Image
PARAMETER | DESCRIPTION |
---|---|
equalize |
TYPE:
|
Source code in siapy/entities/images.py
228 229 230 231 232 233 234 235 236 237 238 |
|
to_numpy
¶
to_numpy(nan_value: float | None = None) -> ndarray
PARAMETER | DESCRIPTION |
---|---|
nan_value |
TYPE:
|
Source code in siapy/entities/images.py
240 241 242 243 244 |
|
to_signatures
¶
to_signatures(pixels: Pixels) -> Signatures
PARAMETER | DESCRIPTION |
---|---|
pixels |
TYPE:
|
Source code in siapy/entities/images.py
246 247 248 249 |
|
to_subarray
¶
to_subarray(pixels: Pixels) -> ndarray
PARAMETER | DESCRIPTION |
---|---|
pixels |
TYPE:
|
Source code in siapy/entities/images.py
251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 |
|
mean
¶
PARAMETER | DESCRIPTION |
---|---|
axis |
TYPE:
|
Source code in siapy/entities/images.py
268 269 270 271 272 |
|