IOLink
IOL_v1.6.1_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. More... | |
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. More... | |
const ImageInfoProperty & | imageInfo () const |
Return the image information associated with these properties. More... | |
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. More... | |
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. More... | |
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 |
Build a ImageProperties from a set of properties.
Shortcut for:
std::make_shared<ImageProperties>(calibration, imageInfo )
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 |