IOLink IOL_v1.8.0_release
|
Hold additionnal info for ImageView data interpretation. More...
#include <iolink/property/ImageProperties.h>
Public Member Functions | |
ImageProperties (const SpatialCalibrationProperty &calibration, const ImageInfoProperty &imageInfo) | |
Build a ImageProperties by directly specifying SpatialCalibration and imageInfo properties. | |
ImageProperties (const ImageProperties &other) | |
ImageProperties & | operator= (const ImageProperties &other) |
ImageProperties (ImageProperties &&other) noexcept | |
ImageProperties & | operator= (ImageProperties &&other) noexcept |
std::string | toString () const |
Return string representation. | |
std::shared_ptr< ImageProperties > | clone () const |
Create a copy of the properties instance. | |
const SpatialCalibrationProperty & | calibration () const |
Return the calibration associated with these properties. | |
const ImageInfoProperty & | imageInfo () const |
Return the image information associated with these properties. | |
SpatialCalibrationProperty & | calibration () |
Return the calibration associated with these properties. | |
ImageInfoProperty & | imageInfo () |
Return the image information associated with these properties. | |
bool | isCompatibleWith (const VectorXu64 &shape, DataType type) const |
Check if the current properties are compatible with given shape and type. | |
bool | operator== (const ImageProperties &other) const |
Equality operator. | |
Static Public Member Functions | |
static std::shared_ptr< ImageProperties > | fromDataType (DataType dataType) |
Create a property set with all values defaulted, according to a data type. | |
static std::shared_ptr< ImageProperties > | fromProperties (const SpatialCalibrationProperty &calibration, const ImageInfoProperty &imageInfo) |
Build a ImageProperties from a set of properties. | |
static std::shared_ptr< ImageProperties > | fromProperties (std::shared_ptr< const ImageProperties > properties, const SpatialCalibrationProperty &calibration) |
Build a ImageProperties by copying properties from another, except the calibration. | |
static std::shared_ptr< ImageProperties > | fromProperties (std::shared_ptr< const ImageProperties > properties, const ImageInfoProperty &imageInfo) |
Build a ImageProperties by copying properties from another, except the Image info. | |
Hold additionnal info for ImageView data interpretation.
iolink::ImageProperties::ImageProperties | ( | const SpatialCalibrationProperty & | calibration, |
const ImageInfoProperty & | imageInfo | ||
) |
Build a ImageProperties by directly specifying SpatialCalibration and imageInfo properties.
calibration | SpatialCalibrationProperty to use to initialize ImageProperties |
imageInfo | ImageInfoProperty to use to initialize ImageProperties |
const SpatialCalibrationProperty & iolink::ImageProperties::calibration | ( | ) | const |
Return the calibration associated with these properties.
This constant variation is provided in order to be called on constant properties.
|
static |
Create a property set with all values defaulted, according to a data type.
dataType | DataType used to build default ImageProperties |
|
static |
Build a ImageProperties from a set of properties.
calibration | SpatialCalibrationProperty to use |
imageInfo | ImageInfoProperty to use |
|
static |
Build a ImageProperties by copying properties from another, except the Image info.
properties | original ImageProperties to modify with ImageInfo properties |
imageInfo | ImageInfoProperty to set into given ImageProperties |
|
static |
Build a ImageProperties by copying properties from another, except the calibration.
properties | original ImageProperties to modify with calibration properties |
calibration | SpatialCalibrationProperty to set into given ImageProperties |
const ImageInfoProperty & iolink::ImageProperties::imageInfo | ( | ) | const |
Return the image information associated with these properties.
This constant variation is provided in order to be called on constant properties.
bool iolink::ImageProperties::isCompatibleWith | ( | const VectorXu64 & | shape, |
DataType | type | ||
) | const |