164 void toInt(
bool force=
false);
167 inline int getDim()
const {
return size.getDim(); }
179 inline bool isFloat()
const {
return !!fdata; }
197 inline bool isNull()
const {
return isnull; }
fixedType getFixedType() const
returns the kernels fixed type (necessary for IPP-optimization)
Definition: ConvolutionKernel.h:200
Definition: ConvolutionKernel.h:127
undocument this line if you encounter any issues!
Definition: Any.h:37
utils::Size size
associated size
Definition: ConvolutionKernel.h:206
bool isFloat() const
returns whether this kernel has float data
Definition: ConvolutionKernel.h:179
float * fdata
float data pointer
Definition: ConvolutionKernel.h:207
int * idata
int data pointer
Definition: ConvolutionKernel.h:208
bool owned
is data owned
Definition: ConvolutionKernel.h:211
int factor
scaling factor for integer kernels
Definition: ConvolutionKernel.h:209
int getHeight() const
returns the kernels height
Definition: ConvolutionKernel.h:176
int getFactor() const
returns the kernels scaling factor (only used if its an integer kernel)
Definition: ConvolutionKernel.h:194
float * getFloatData()
returns the kernels float data pointer (which may be 0)
Definition: ConvolutionKernel.h:185
int getWidth() const
returns the kernels width
Definition: ConvolutionKernel.h:173
ICLQt_API ImgROI data(ImgQ &r)
creates full ROI ROI-struct
int getDim() const
returns kernels width * height
Definition: ConvolutionKernel.h:167
const float * getFloatData() const
returns the kernels float data pointer (const) (which may be 0)
Definition: ConvolutionKernel.h:182
Utility struct for managing convolution kernel data.
Definition: ConvolutionKernel.h:47
fixedType
this enum contains several predefined convolution kernel types
Definition: ConvolutionKernel.h:118
Size class of the ICL.
Definition: Size.h:61
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)
bool isnull
is already initialized
Definition: ConvolutionKernel.h:210
#define ICLFilter_API
Definition: CompatMacros.h:175
const utils::Size & getSize() const
returns the kernels size
Definition: ConvolutionKernel.h:170
bool isNull() const
return whether idata or fdata is not null
Definition: ConvolutionKernel.h:197
fixedType ft
fixed type set
Definition: ConvolutionKernel.h:212
int * getIntData()
returns the kernels int data pointer (which may be 0)
Definition: ConvolutionKernel.h:191
const int * getIntData() const
returns the kernels int data pointer (const) (which may be 0)
Definition: ConvolutionKernel.h:188