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

Shi-Tomasi interest operator processor. More...

#include <ShiTomasi.h>

Public Member Functions

 ShiTomasi ()
 Default constructor.
 
 ShiTomasi (int width, int height)
 Constructs Shi-Tomasi interest operator processor of specified size work buffers.
 
 ShiTomasi (const ShiTomasi &rhs)
 Copy constructor.
 
 ShiTomasi (ShiTomasi &&rhs) noexcept
 Move constructor.
 
virtual ~ShiTomasi ()
 Destructor.
 
ShiTomasi & operator= (const ShiTomasi &rhs)
 Copy assignment operator.
 
ShiTomasi & operator= (ShiTomasi &&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 calcMinEigenVal (const T *pSrcIx, int srcIxStep, const T *pSrcIy, int srcIyStep, T *pDst, int dstStep, int dstRoiWidth, int dstRoiHeight)
 Calculates the minor eigenvalue of windows within an image.
 

Related Functions

(Note that these are not member functions.)

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

Detailed Description

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

Shi-Tomasi interest operator processor.

Template Parameters
TData type.
CNumber of channels.

Constructor & Destructor Documentation

◆ ShiTomasi() [1/4]

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

Default constructor.

◆ ShiTomasi() [2/4]

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

Constructs Shi-Tomasi interest operator processor of specified size work buffers.

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

◆ ShiTomasi() [3/4]

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

Copy constructor.

◆ ShiTomasi() [4/4]

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

Move constructor.

◆ ~ShiTomasi()

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

Destructor.

Member Function Documentation

◆ calcMinEigenVal()

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

Calculates the minor eigenvalue 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::ShiTomasi< T, C >::clear ( )

Resizes work buffers to zero width and zero height.

◆ height()

template<typename T , size_t C>
int blo::ShiTomasi< 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>
ShiTomasi & blo::ShiTomasi< T, C >::operator= ( const ShiTomasi< T, C > &  rhs)

Copy assignment operator.

◆ operator=() [2/2]

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

Move assignment operator.

◆ resize()

template<typename T , size_t C>
void blo::ShiTomasi< 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.

◆ setWinSize()

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

Sets size of the feature window.

Parameters
winSizeSize of the feature window.

◆ width()

template<typename T , size_t C>
int blo::ShiTomasi< 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::ShiTomasi< T, C >::winSize ( ) const

Size of the feature window.

Returns
Size of the feature window.

Friends And Related Function Documentation

◆ ShiTomasi< float, 1 >

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

◆ ShiTomasi< float, 3 >

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

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