![]() |
ICF 3.0.5.47
Technical documentation of ICF Libraries
|
Interface for 2D-convolution filter kernel. More...
#include <IConvolutionKernel2d.h>
Public Types | |
enum | SeparationType { ST_AUTO , ST_HOR_VERT } |
![]() | |
enum | ChangeFlags { CF_ICF_INTERNAL = 0 , CF_ALL_DATA , CF_ANY , CF_DESTROYING , CF_DELEGATED , CF_NO_UNDO } |
Data model change notification flags. More... | |
enum | SupportedOperations { SO_NONE = 0 , SO_OBSERVE = 1 << 0 , SO_COPY = 1 << 1 , SO_CLONE = 1 << 2 , SO_COMPARE = 1 << 3 , SO_RESET = 1 << 4 , SO_CHANGE_LOCK = 1 << 5 } |
Flags for supported operations. More... | |
enum | CompatibilityMode { CM_STRICT , CM_WITHOUT_REFS , CM_WITH_REFS , CM_CONVERT } |
Control how relationship betweeen objects are interpreted. More... | |
Public Member Functions | |
virtual istd::CIndex2d | GetKernelSize () const =0 |
Get size of this kernel. | |
virtual void | SetKernelSize (const istd::CIndex2d &kernelSize, double value=0.0)=0 |
Set size of this kernel. | |
virtual double | GetKernelElement (const istd::CIndex2d &index) const =0 |
Get kernel element value at the given position index . | |
virtual bool | SetKernelElement (const istd::CIndex2d &index, double value)=0 |
Set kernel element value at the given position index . | |
virtual double | GetOffsetValue () const =0 |
Get offset value will be added to convolution result. | |
virtual bool | SetOffsetValue (double offset)=0 |
Set offset value will be added to convolution result. | |
virtual bool | GetCombinedKernel (const IConvolutionKernel2d &kernel, IConvolutionKernel2d &result) const =0 |
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 =0 |
Try separate this kernel into two separated kernels. | |
![]() | |
virtual bool | Serialize (IArchive &archive)=0 |
Load or store state of this object as a archive stream. | |
virtual quint32 | GetMinimalVersion (int versionId) const |
Get minimal needed version to correct storing of this data. | |
![]() | |
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. | |
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. | |
Interface for 2D-convolution filter kernel.
Definition at line 23 of file IConvolutionKernel2d.h.
Enumerator | |
---|---|
ST_AUTO | |
ST_HOR_VERT | Separation to horizontal and vertical kernels. |
Definition at line 26 of file IConvolutionKernel2d.h.
|
pure virtual |
Get some kernel beeing combination of this and some other kernel.
Implemented in iipr::CConvolutionKernel2d.
|
pure virtual |
Get kernel element value at the given position index
.
Implemented in iipr::CConvolutionKernel2d.
|
pure virtual |
Get size of this kernel.
Implemented in iipr::CConvolutionKernel2d.
|
pure virtual |
Get offset value will be added to convolution result.
Implemented in iipr::CConvolutionKernel2d.
|
pure virtual |
Set kernel element value at the given position index
.
The method returns true
, if the value could be set and false
otherwise.
Implemented in iipr::CConvolutionKernel2d.
|
pure virtual |
Set size of this kernel.
It initialize all values to defined value.
Implemented in iipr::CConvolutionKernel2d.
|
pure virtual |
Set offset value will be added to convolution result.
Implemented in iipr::CConvolutionKernel2d.
|
pure virtual |
Try separate this kernel into two separated kernels.
Implemented in iipr::CConvolutionKernel2d.
© Witold Gantzke and Kirill Lepskiy