52 void initConfigurable();
103 m_oROIHandler.setClipToROI(bClipToROI);
104 prop(
"UnaryOp.clip to ROI").value = bClipToROI ?
"on" :
"off";
105 call_callbacks(
"UnaryOp.clip to ROI",
this);
113 m_oROIHandler.setCheckOnly(bCheckOnly);
114 prop(
"UnaryOp.check only").value = bCheckOnly ?
"on" :
"off";
115 call_callbacks(
"UnaryOp.check only",
this);
132 virtual void setPropertyValue(
const std::string &propertyName,
const utils::Any &value) ;
147 static UnaryOp *fromString(
const std::string &definition) ;
151 static std::string getFromStringSyntax(
const std::string &opSpecifier) ;
154 static std::vector<std::string> listFromStringOps();
157 static void applyFromString(
const std::string &definition,
165 return m_oROIHandler.prepare(ppoDst, eDepth,imgSize,eFormat, nChannels,
roi, timestamp);
170 return m_oROIHandler.prepare(ppoDst, poSrc);
176 return m_oROIHandler.prepare(ppoDst, poSrc, eDepth);
189 #define DYNAMIC_UNARY_OP_CREATION_FUNCTION(NAME) \ 191 UnaryOp *create_##NAME(const std::string &s){ \ const core::ImgBase & operator()(const core::ImgBase &src)
reference based function operator
Definition: UnaryOp.h:93
OpROIHandler m_oROIHandler
Definition: UnaryOp.h:183
utils::MultiThreader * m_poMT
Definition: UnaryOp.h:179
undocument this line if you encounter any issues!
Definition: Any.h:37
bool prepare(core::ImgBase **ppoDst, core::depth eDepth, const utils::Size &imgSize, core::format eFormat, int nChannels, const utils::Rect &roi, utils::Time timestamp=utils::Time::null)
Definition: UnaryOp.h:162
ICL Time class (taken from the Ice lib)
Definition: Time.h:52
ICLQt_API ImgROI roi(ImgQ &r)
creates a ROI-struct from an image
void setCheckOnly(bool bCheckOnly)
sets if the destination image should be adapted to the source, or if it is only checked if it can be ...
Definition: UnaryOp.h:112
Utility class for parallelizing algorithms.
Definition: MultiThreader.h:161
const core::ImgBase * operator()(const core::ImgBase *src)
function operator for the implicit destination apply(src) call
Definition: UnaryOp.h:88
format
determines the color-format, that is associated with the images channels
Definition: Types.h:70
bool getCheckOnly() const
returns the CheckOnly status
Definition: UnaryOp.h:128
void setClipToROI(bool bClipToROI)
sets if the image should be clip to ROI or not
Definition: UnaryOp.h:102
Abstract Base class for Unary Operators.
Definition: UnaryOp.h:51
Size class of the ICL.
Definition: Size.h:61
#define ICL_DEPRECATED
Definition: Macros.h:249
virtual bool prepare(core::ImgBase **ppoDst, const core::ImgBase *poSrc)
check+adapt destination image to properties of given source image
Definition: UnaryOp.h:169
ICLQt_API core::Img< T > filter(const core::Img< T > &image, const std::string &filter)
applies a filter operation on the source image (affinity for float)
depth
determines the pixel type of an image (8Bit-int or 32Bit-float)
Definition: Types.h:60
core::ImgBase * m_buf
Definition: UnaryOp.h:185
Interface for classes that can be configured from configuration-files and GUI-Components.
Definition: Configurable.h:194
bool getClipToROI() const
returns the ClipToROI status
Definition: UnaryOp.h:122
#define ICLFilter_API
Definition: CompatMacros.h:175
virtual bool prepare(core::ImgBase **ppoDst, const core::ImgBase *poSrc, core::depth eDepth)
Definition: UnaryOp.h:175
Rectangle class of the ICL used e.g. for the Images ROI-rect.
Definition: Rect.h:95
static const Time null
Definition: Time.h:59
Simple generic data type implementation that uses a string based data representation.
Definition: Any.h:109
void operator()(const core::ImgBase *src, core::ImgBase **dst)
function operator (alternative for apply(src,dst)
Definition: UnaryOp.h:83
ImgBase is the Image-Interface class that provides save access to underlying Img-template .
Definition: ImgBase.h:131
Utility base class for Image Operators.
Definition: OpROIHandler.h:78