Public Types | Public Member Functions | List of all members
iipr::IConvolutionKernel2d Class Referenceabstract

Interface for 2D-convolution filter kernel. More...

#include <IConvolutionKernel2d.h>

Inheritance diagram for iipr::IConvolutionKernel2d:
iser::ISerializable istd::IChangeable istd::IPolymorphic iipr::CConvolutionKernel2d iipr::CConvolutionKernel2dComp

Public Types

enum  SeparationType { ST_AUTO, ST_HOR_VERT }
 

Public Member Functions

virtual istd::CIndex2d GetKernelSize () const =0
 Get size of this kernel. More...
 
virtual void SetKernelSize (const istd::CIndex2d &kernelSize, double value=0.0)=0
 Set size of this kernel. More...
 
virtual double GetKernelElement (const istd::CIndex2d &index) const =0
 Get kernel element value at the given position index. More...
 
virtual bool SetKernelElement (const istd::CIndex2d &index, double value)=0
 Set kernel element value at the given position index. More...
 
virtual double GetOffsetValue () const =0
 Get offset value will be added to convolution result. More...
 
virtual bool SetOffsetValue (double offset)=0
 Set offset value will be added to convolution result. More...
 
virtual bool GetCombinedKernel (const IConvolutionKernel2d &kernel, IConvolutionKernel2d &result) const =0
 Get some kernel beeing combination of this and some other kernel. More...
 
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. More...
 

Detailed Description

Interface for 2D-convolution filter kernel.

Definition at line 18 of file IConvolutionKernel2d.h.

Member Enumeration Documentation

Enumerator
ST_AUTO 
ST_HOR_VERT 

Separation to horizontal and vertical kernels.

Definition at line 21 of file IConvolutionKernel2d.h.

Member Function Documentation

virtual bool iipr::IConvolutionKernel2d::GetCombinedKernel ( const IConvolutionKernel2d kernel,
IConvolutionKernel2d result 
) const
pure virtual

Get some kernel beeing combination of this and some other kernel.

Implemented in iipr::CConvolutionKernel2d.

virtual double iipr::IConvolutionKernel2d::GetKernelElement ( const istd::CIndex2d index) const
pure virtual

Get kernel element value at the given position index.

Implemented in iipr::CConvolutionKernel2d.

virtual istd::CIndex2d iipr::IConvolutionKernel2d::GetKernelSize ( ) const
pure virtual

Get size of this kernel.

Implemented in iipr::CConvolutionKernel2d.

virtual double iipr::IConvolutionKernel2d::GetOffsetValue ( ) const
pure virtual

Get offset value will be added to convolution result.

Implemented in iipr::CConvolutionKernel2d.

virtual bool iipr::IConvolutionKernel2d::SetKernelElement ( const istd::CIndex2d index,
double  value 
)
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.

virtual void iipr::IConvolutionKernel2d::SetKernelSize ( const istd::CIndex2d kernelSize,
double  value = 0.0 
)
pure virtual

Set size of this kernel.

It initialize all values to defined value.

Implemented in iipr::CConvolutionKernel2d.

virtual bool iipr::IConvolutionKernel2d::SetOffsetValue ( double  offset)
pure virtual

Set offset value will be added to convolution result.

Implemented in iipr::CConvolutionKernel2d.

virtual bool iipr::IConvolutionKernel2d::TrySeparateKernels ( IConvolutionKernel2d result1,
IConvolutionKernel2d result2,
int  separationType = ST_AUTO,
double  tolerance = I_BIG_EPSILON 
) const
pure virtual

Try separate this kernel into two separated kernels.

Implemented in iipr::CConvolutionKernel2d.


The documentation for this class was generated from the following file:

© 2007-2017 Witold Gantzke and Kirill Lepskiy