16 #ifndef __IPSDKIMAGEPROCESSING_RULEMATCHVALUETOIMAGESIZE_H__ 17 #define __IPSDKIMAGEPROCESSING_RULEMATCHVALUETOIMAGESIZE_H__ 19 #include <IPSDKImageProcessing/Rule/Image/ImageBinaryMixed/BaseRuleMatchScalarToImageSize.h> 20 #include <IPSDKImageProcessing/Attribute/Image/BaseImageAttribute.h> 28 template <
typename AttributeType>
53 const boost::weak_ptr<const AttributeType>& pValueAttribute);
70 template <
typename AttributeType>
75 const boost::weak_ptr<const AttributeType>& pValueAttribute)
78 _matchImageSizeType = matchImageSizeType;
81 _matchImageSizeScale = matchImageSizeScale;
84 initBase(pImageAttribute, pValueAttribute);
87 template <
typename AttributeType>
92 const AttributeType& valueAttribute =
static_cast<const AttributeType&
>(getAttribute2());
94 return valueAttribute.getValue();
97 template <
typename AttributeType>
102 const AttributeType& valueAttribute =
static_cast<const AttributeType&
>(getAttribute2());
104 return valueAttribute.getObjectName();
113 #endif // __IPSDKIMAGEPROCESSING_RULEMATCHVALUETOIMAGESIZE_H__ eMatchImageSizeScale
enumerate used in comparison between scalar and image size, to determine whether scalar is compared t...
Definition: ImageBinaryMixedRuleTypes.h:59
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
AttributeType ValueAttributeType
Value attribute type.
Definition: RuleMatchValueToImageSize.h:34
boost::weak_ptr< const BaseImageAttribute > ImageAttributeConstWeakPtr
Definition: ImageAttributeTypes.h:38
double ipReal64
Base types definition.
Definition: BaseTypes.h:57
std::string retrieveValueAttributeName() const
method allowing to retrieve value associated to attribute leaf in derived class
Definition: RuleMatchValueToImageSize.h:99
ipReal64 retrieveValue() const
method allowing to retrieve value associated to attribute leaf in derived class
Definition: RuleMatchValueToImageSize.h:89
void init(const eMatchImageSizeType &matchImageSizeType, const eMatchImageSizeScale &matchImageSizeScale, const ImageAttributeConstWeakPtr &pImageAttribute, const boost::weak_ptr< const AttributeType > &pValueAttribute)
initialization of object
Definition: RuleMatchValueToImageSize.h:72
Base class for rules allowing to check that a value is lower than the smallest dimension of an image...
Definition: BaseRuleMatchScalarToImageSize.h:31
eMatchImageSizeType
enumerate describing image comparison on image size rule operation type
Definition: ImageRuleTypes.h:50
Rule class allowing to check that a value is lower than or equals to image size in given dimension(s)...
Definition: RuleMatchValueToImageSize.h:29