The blo Library
Loading...
Searching...
No Matches
Public Member Functions | Related Functions | List of all members
blo::Harris< T, C > Class Template Reference

Harris interest operator processor. More...

#include <Harris.h>

Public Member Functions

 Harris ()
 Default constructor.
 
 Harris (int width, int height)
 Constructs Harris interest operator processor of specified size work buffers.
 
 Harris (const Harris &rhs)
 Copy constructor.
 
 Harris (Harris &&rhs) noexcept
 Move constructor.
 
virtual ~Harris ()
 Destructor.
 
Harris & operator= (const Harris &rhs)
 Copy assignment operator.
 
Harris & operator= (Harris &&rhs) noexcept
 Move assignment operator.
 
void resize (int width, int height)
 Resizes work buffers.
 
void clear ()
 Resizes work buffers to zero width and zero height.
 
int width () const
 Width of the work buffers.
 
int height () const
 Height of the work buffers.
 
void setWinSize (int winSize)
 Sets size of the feature window.
 
int winSize () const
 Size of the feature window.
 
void setWeight (const T &k)
 Sets the weight of Tr^2.
 
const T weight () const
 The weight of Tr^2.
 
void calcCornerEdge (const T *pSrcIx, int srcIxStep, const T *pSrcIy, int srcIyStep, T *pDst, int dstStep, int dstRoiWidth, int dstRoiHeight)
 Calculates the corner/edge response function of windows within an image.
 

Related Functions

(Note that these are not member functions.)

BLO_EXPIMP_TEMPLATE template class BLO_API Harris< float, 1 >
 
BLO_EXPIMP_TEMPLATE template class BLO_API Harris< float, 3 >
 

Detailed Description

template<typename T, size_t C>
class blo::Harris< T, C >

Harris interest operator processor.

Template Parameters
TData type.
CNumber of channels.

Constructor & Destructor Documentation

◆ Harris() [1/4]

template<typename T , size_t C>
blo::Harris< T, C >::Harris ( )

Default constructor.

◆ Harris() [2/4]

template<typename T , size_t C>
blo::Harris< T, C >::Harris ( int  width,
int  height 
)

Constructs Harris interest operator processor of specified size work buffers.

Parameters
widthWidth of the work buffers in pixels.
heightHeight of the work buffers in pixels.

◆ Harris() [3/4]

template<typename T , size_t C>
blo::Harris< T, C >::Harris ( const Harris< T, C > &  rhs)

Copy constructor.

◆ Harris() [4/4]

template<typename T , size_t C>
blo::Harris< T, C >::Harris ( Harris< T, C > &&  rhs)
noexcept

Move constructor.

◆ ~Harris()

template<typename T , size_t C>
virtual blo::Harris< T, C >::~Harris ( )
virtual

Destructor.

Member Function Documentation

◆ calcCornerEdge()

template<typename T , size_t C>
void blo::Harris< T, C >::calcCornerEdge ( const T *  pSrcIx,
int  srcIxStep,
const T *  pSrcIy,
int  srcIyStep,
T *  pDst,
int  dstStep,
int  dstRoiWidth,
int  dstRoiHeight 
)

Calculates the corner/edge response function of windows within an image.

Note
The input are C channel images, the output is a 1 channel image.
Parameters
pSrcIxPointer to the source image x-derivative.
srcIxStepStep in bytes between the rows in the source image pSrcIx.
pSrcIyPointer to the source image y-derivative.
srcIyStepStep in bytes between the rows in the source image pSrcIy.
pDstPointer to the destination image.
dstStepStep in bytes between the rows in the destination image.
dstRoiWidthWidth of the destination image ROI in pixels.
dstRoiHeightHeight of the destination image ROI in pixels.

◆ clear()

template<typename T , size_t C>
void blo::Harris< T, C >::clear ( )

Resizes work buffers to zero width and zero height.

◆ height()

template<typename T , size_t C>
int blo::Harris< T, C >::height ( ) const

Height of the work buffers.

Returns
Height of the work buffers in pixels.

◆ operator=() [1/2]

template<typename T , size_t C>
Harris & blo::Harris< T, C >::operator= ( const Harris< T, C > &  rhs)

Copy assignment operator.

◆ operator=() [2/2]

template<typename T , size_t C>
Harris & blo::Harris< T, C >::operator= ( Harris< T, C > &&  rhs)
noexcept

Move assignment operator.

◆ resize()

template<typename T , size_t C>
void blo::Harris< T, C >::resize ( int  width,
int  height 
)

Resizes work buffers.

Parameters
widthWidth in pixels to resize work buffers to.
heightHeight in pixels to resize work buffers to.

◆ setWeight()

template<typename T , size_t C>
void blo::Harris< T, C >::setWeight ( const T &  k)

Sets the weight of Tr^2.

Parameters
kThe weight of Tr^2.

◆ setWinSize()

template<typename T , size_t C>
void blo::Harris< T, C >::setWinSize ( int  winSize)

Sets size of the feature window.

Parameters
winSizeSize of the feature window.

◆ weight()

template<typename T , size_t C>
const T blo::Harris< T, C >::weight ( ) const

The weight of Tr^2.

Returns
The weight of Tr^2.

◆ width()

template<typename T , size_t C>
int blo::Harris< T, C >::width ( ) const

Width of the work buffers.

Returns
Width of the work buffers in pixels.

◆ winSize()

template<typename T , size_t C>
int blo::Harris< T, C >::winSize ( ) const

Size of the feature window.

Returns
Size of the feature window.

Friends And Related Function Documentation

◆ Harris< float, 1 >

template<typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API Harris< float, 1 >
related

◆ Harris< float, 3 >

template<typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API Harris< float, 3 >
related

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