149 void clearLUT(
icl8u value=0);
152 void setSegmentationShifts(
icl8u c0shift,
icl8u c1shift,
icl8u c2shift);
173 void lutEntry(
core::format fmt,
int a,
int b,
int c,
int rA,
int rB,
int rC,
icl8u value) ;
176 void load(
const std::string &filename);
179 void save(
const std::string &filename);
193 const std::vector<core::Color> &getClassMeanColors();
198 const icl8u *getLUT()
const;
206 void getLUTDims(
int &w,
int &h,
int &t)
const;
ICLQt_API void save(const core::ImgBase &image, const std::string &filename)
write an image to HD
undocument this line if you encounter any issues!
Definition: Any.h:37
Ipp8u icl8u
8Bit unsigned integer type for the ICL
Definition: BasicTypes.h:64
core::Img8u m_segPreview
internal buffer for providing a preview of the current segmentation
Definition: ColorSegmentationOp.h:121
const icl8u * getSegmentationShifts() const
returns the pointer to the 3 internally used segmentation shifts
Definition: ColorSegmentationOp.h:158
ICLQt_API core::Img< T > load(const std::string &filename)
load an image file read file (affinity for floats)
Class for fast LUT-based color segmentation.
Definition: ColorSegmentationOp.h:112
core::Img8u m_outputBuffer
internal buffer holding the output image
Definition: ColorSegmentationOp.h:120
core::Img8u m_lastDst
last used destination image
Definition: ColorSegmentationOp.h:122
core::format m_segFormat
format, that is used for internal segmentation
Definition: ColorSegmentationOp.h:115
core::format getSegmentationFormat() const
returns the current internally used segmentation format
Definition: ColorSegmentationOp.h:161
format
determines the color-format, that is associated with the images channels
Definition: Types.h:70
core::Img8u m_inputBuffer
internal image in depth8u and segmentation format
Definition: ColorSegmentationOp.h:119
Abstract Base class for Unary Operators.
Definition: UnaryOp.h:51
LUT3D * m_lut
color classification lookup table
Definition: ColorSegmentationOp.h:124
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)
#define ICLFilter_API
Definition: CompatMacros.h:175
virtual void apply(const core::ImgBase *operand1, core::ImgBase **dst)=0
pure virtual apply function, that must be implemented in all derived classes
ImgBase is the Image-Interface class that provides save access to underlying Img-template .
Definition: ImgBase.h:131