![]() |
ICF 3.0.5.47
Technical documentation of ICF Libraries
|
Implementation of a general 2D convolution kernel. More...
#include <CConvolutionKernel2d.h>
Public Member Functions | |
CConvolutionKernel2d () | |
CConvolutionKernel2d (const CConvolutionKernel2d &kernel) | |
CConvolutionKernel2d (const imath::ISampledFunction2d &function2d) | |
CConvolutionKernel2d (const istd::CIndex2d &kernelSize, double value=0) | |
double | GetKernelDistance (const IConvolutionKernel2d &kernel) const |
virtual istd::CIndex2d | GetKernelSize () const |
Get size of this kernel. | |
virtual void | SetKernelSize (const istd::CIndex2d &kernelSize, double value=0.0) |
Set size of this kernel. | |
virtual double | GetKernelElement (const istd::CIndex2d &index) const |
Get kernel element value at the given position index . | |
virtual bool | SetKernelElement (const istd::CIndex2d &index, double value) |
Set kernel element value at the given position index . | |
virtual double | GetOffsetValue () const |
Get offset value will be added to convolution result. | |
virtual bool | SetOffsetValue (double offset) |
Set offset value will be added to convolution result. | |
virtual bool | GetCombinedKernel (const IConvolutionKernel2d &kernel, IConvolutionKernel2d &result) const |
Get some kernel beeing combination of this and some other kernel. | |
virtual bool | TrySeparateKernels (IConvolutionKernel2d &result1, IConvolutionKernel2d &result2, int separationType=ST_AUTO, double tolerance=I_BIG_EPSILON) const |
Try separate this kernel into two separated kernels. | |
virtual bool | Serialize (iser::IArchive &archive) |
Load or store state of this object as a archive stream. | |
![]() | |
CSampledFunction2d () | |
CSampledFunction2d (const CSampledFunction2d &function2d) | |
CSampledFunction2d (const imath::ISampledFunction2d &function2d) | |
CSampledFunction2d (const istd::CIndex2d &size, double defaultValue=0) | |
void | Reset () |
bool | CreateGrid2d (const istd::CIndex2d &size, double defaultValue=0) |
istd::CIndex2d | GetGridSize2d () const |
double | GetSampleValue (const istd::CIndex2d &index) const |
void | SetSampleValue (const istd::CIndex2d &index, double value) |
virtual bool | CreateFunction (double *dataPtr, const ArgumentType &sizes) |
Create function from input data. | |
virtual int | GetTotalSamplesCount () const |
Get number of samples stored in this container. | |
virtual int | GetGridSize (int dimensionIndex) const |
Get number of samples for specified dimension. | |
virtual istd::CRange | GetLogicalRange (int dimensionIndex) const |
Get logical grid position range for specified dimension. | |
virtual istd::CRange | GetResultValueRange (int dimensionIndex, int resultDimension=-1) const |
Get range of result value for the given axis. | |
virtual bool | GetValueAt (const ArgumentType &argument, ResultType &result) const |
virtual ResultType | GetValueAt (const ArgumentType &argument) const |
![]() | |
virtual int | GetArgumentDimensionality () const |
Get the number of argument components. | |
virtual int | GetResultDimensionality () const |
Get the number of result components. | |
![]() | |
virtual bool | GetValueAt (const istd::TIndex< ArgumentDimensions > &argument, TVector< ResultDimensions > &result) const=0 |
Get function value for specified argument value. | |
virtual TVector< ResultDimensions > | GetValueAt (const istd::TIndex< ArgumentDimensions > &argument) const=0 |
Get function value for specified argument value. | |
![]() | |
virtual int | GetSupportedOperations () const |
Get set of flags for supported operations. | |
virtual bool | CopyFrom (const IChangeable &object, CompatibilityMode mode=CM_WITHOUT_REFS) |
Copy this object from another one. | |
virtual bool | IsEqual (const IChangeable &object) const |
Compare this object with another object. | |
virtual std::unique_ptr< IChangeable > | CloneMe (CompatibilityMode mode=CM_WITHOUT_REFS) const |
Make a copy of this object. | |
virtual bool | ResetData (CompatibilityMode mode=CM_WITHOUT_REFS) |
Reset data to its default state. | |
virtual QMutex * | GetChangesLock () const |
Get mutex beeing locked during changes, if available. | |
virtual void | BeginChanges (const ChangeSet &changeSet) |
Starts the change transaction. | |
virtual void | EndChanges (const ChangeSet &changeSet) |
Ends the change transaction. | |
virtual void | BeginChangeGroup (const ChangeSet &changeSet) |
Starts group of changes. | |
virtual void | EndChangeGroup (const ChangeSet &changeSet) |
Ends group of changes. | |
![]() | |
![]() | |
virtual quint32 | GetMinimalVersion (int versionId) const |
Get minimal needed version to correct storing of this data. | |
Additional Inherited Members | |
![]() | |
static const ChangeSet & | GetNoChanges () |
Get empty set of changes. | |
static const ChangeSet & | GetAnyChange () |
Get anonymous change set. | |
static const ChangeSet & | GetAllChanges () |
Get anonymous change set. | |
static const ChangeSet & | GetDelegatedChanges () |
Get delegated change set. | |
![]() | |
virtual void | OnBeginChanges () |
Callback function for begin change event. | |
virtual void | OnEndChanges (const ChangeSet &changeSet) |
Callback function for end change event. | |
Implementation of a general 2D convolution kernel.
Internally the kernel is represented by an array of filter weights and offset positions for fast access to the corresponding bitmap values.
Definition at line 24 of file CConvolutionKernel2d.h.
Definition at line 29 of file CConvolutionKernel2d.h.
iipr::CConvolutionKernel2d::CConvolutionKernel2d | ( | ) |
iipr::CConvolutionKernel2d::CConvolutionKernel2d | ( | const CConvolutionKernel2d & | kernel | ) |
|
explicit |
|
explicit |
|
virtual |
Get some kernel beeing combination of this and some other kernel.
Implements iipr::IConvolutionKernel2d.
double iipr::CConvolutionKernel2d::GetKernelDistance | ( | const IConvolutionKernel2d & | kernel | ) | const |
|
virtual |
Get kernel element value at the given position index
.
Implements iipr::IConvolutionKernel2d.
|
virtual |
Get size of this kernel.
Implements iipr::IConvolutionKernel2d.
|
virtual |
Get offset value will be added to convolution result.
Implements iipr::IConvolutionKernel2d.
|
virtual |
Load or store state of this object as a archive stream.
Type of operation is depending on archive type.
Implements iser::ISerializable.
|
virtual |
Set kernel element value at the given position index
.
The method returns true
, if the value could be set and false
otherwise.
Implements iipr::IConvolutionKernel2d.
|
virtual |
Set size of this kernel.
It initialize all values to defined value.
Implements iipr::IConvolutionKernel2d.
|
virtual |
Set offset value will be added to convolution result.
Implements iipr::IConvolutionKernel2d.
|
virtual |
Try separate this kernel into two separated kernels.
Implements iipr::IConvolutionKernel2d.
© Witold Gantzke and Kirill Lepskiy