This Property is used to represent the image properties in world space.
- origin: the position of the image in space.
- spacing: the size of samples along each axis.
- orientation: the direction cosines among each axis.
- unit: the unit of the three axes defined by the precedent attributes.
The units are described by a string following a basic convention:
Abridged units names, "cm" for centimeters or "in" for inches for example.
If there is no commonly used abridged unit, just use the unit name.
No punctuation at the end, unless it is part of the abridged notation.
If the dimension has no unit, it is described by the empty string.
Some examples:
- "µm" for micrometers
- "ft" for foot
- "mi" for a mile
- "Å" for angstrom
- "min" for minute
| iolink.iolink.SpatialCalibrationProperty.__init__ |
( |
|
self, |
|
|
* |
args |
|
) |
| |
*Overload 1:*
Initialize the property with default values.
- origin: {0.0, 0.0, 0.0}
- spacing: {1.0, 1.0, 1.0}
- orientation: {1.0, 1.0, 1.0}
- unit: ""
|
*Overload 2:*
Initialize the property with only a custom origin.
:type origin: :py:class:`Vector3d`
:param origin: origin the origin of the calibration
|
*Overload 3:*
Initialize a calibration property with an origin and a spacing.
:type origin: :py:class:`Vector3d`
:param origin: The origin position of the ImageView.
:type spacing: :py:class:`Vector3d`
:param spacing: The size of each element of the raster grid.
|
*Overload 4:*
Initialize a calibration without a specific unit.
:type origin: :py:class:`Vector3d`
:param origin: The origin position of the ImageView.
:type spacing: :py:class:`Vector3d`
:param spacing: The size of each element of the raster grid.
:type direction: :py:class:`SpatialDirections`
:param direction: The directions for each axes.
|
*Overload 5:*
Initialize a calibration property.
:type origin: :py:class:`Vector3d`
:param origin: The origin position of the ImageView.
:type spacing: :py:class:`Vector3d`
:param spacing: The size of each element of the raster grid.
:type direction: :py:class:`SpatialDirections`
:param direction: The directions for each axes.
:type unit: string
:param unit: The unit of the axes.
|
*Overload 6:*
Copy constructor.
:type other: :py:class:`SpatialCalibrationProperty`
:param other: The calibration to copy
|
*Overload 7:*
Move constructor.
:type other: :py:class:`SpatialCalibrationProperty`
:param other: The calibration to copy