197 ::pow((
float) (v2-m_aiRef[1]),2) +
198 ::pow((
float) (v3-m_aiRef[2]),2) ) /
199 ::sqrt(3.0) < m_iThresh ? T(255) : T(0);
235 void setPlugin(
Plugin *p);
ICLQt_API ImgQ sqrt(const ImgQ &image)
calls sqrt( each pixel)
Plugin(int ref1, int ref2, int ref3, int thresh)
Constructor.
Definition: LUTOp3Channel.h:172
undocument this line if you encounter any issues!
Definition: Any.h:37
Class interface for un-copyable classes.
Definition: Uncopyable.h:64
Ipp8u icl8u
8Bit unsigned integer type for the ICL
Definition: BasicTypes.h:64
Internal plugin class for the LUTOp3Channel.
Definition: LUTOp3Channel.h:162
core::Img< T > m_oLUT
Image that holds the lut data.
Definition: LUTOp3Channel.h:247
virtual ~Plugin()
Destructor.
Definition: LUTOp3Channel.h:179
Plugin * m_poPlugin
Current plugin pointer.
Definition: LUTOp3Channel.h:250
Abstract Base class for Unary Operators.
Definition: UnaryOp.h:51
virtual T transform(int v1, int v2, int v3)
Transformation function.
Definition: LUTOp3Channel.h:195
int m_iThresh
euclidean distance threshold
Definition: LUTOp3Channel.h:207
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)
ICLQt_API ImgQ thresh(const ImgQ &image, float threshold)
performs an image binarisation for each channel with given threshold
#define ICLFilter_API
Definition: CompatMacros.h:175
Plugin * removePlugin()
removes the internal plugin so it is not deleted with the LUTOp
Definition: LUTOp3Channel.h:238
virtual void apply(const core::ImgBase *operand1, core::ImgBase **dst)=0
pure virtual apply function, that must be implemented in all derived classes
Plugin()
Empty constructor.
Definition: LUTOp3Channel.h:165
ImgBase is the Image-Interface class that provides save access to underlying Img-template .
Definition: ImgBase.h:131
class for applying table look-up transformation to 3-channel integer-valued images
Definition: LUTOp3Channel.h:154
icl8u m_ucShift
channel range increment (...)
Definition: LUTOp3Channel.h:253