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

Image scale space processor. More...

#include <ImageScaleSpace.h>

Public Member Functions

 ImageScaleSpace ()
 Default constructor.
 
 ImageScaleSpace (int roiWidth, int roiHeight, float tMax)
 Constructs Image scale space processor of specified size work buffers.
 
 ImageScaleSpace (const ImageScaleSpace &rhs)
 Copy constructor.
 
 ImageScaleSpace (ImageScaleSpace &&rhs) noexcept
 Move constructor.
 
virtual ~ImageScaleSpace ()
 Destructor.
 
ImageScaleSpace & operator= (const ImageScaleSpace &rhs)
 Copy assignment operator.
 
ImageScaleSpace & operator= (ImageScaleSpace &&rhs) noexcept
 Move assignment operator.
 
void resize (int roiWidth, int roiHeight, float tMax)
 Resizes work buffers.
 
void clear ()
 Resizes work buffers to zero.
 
const MultiscaleImage< T, C > generateRepresentation (const T *pSrc, int srcStep, int roiWidth, int roiHeight, const float *pSrc_t, int num_t)
 Generates a scale space representation.
 
void generateRepresentation (const T *pSrc, int srcStep, int roiWidth, int roiHeight, const float *pSrc_t, int num_t, MultiscaleImage< T, C > &dst)
 Generates a scale space representation.
 

Related Functions

(Note that these are not member functions.)

BLO_EXPIMP_TEMPLATE template class BLO_API ImageScaleSpace< uint8_t, 1 >
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageScaleSpace< uint8_t, 3 >
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageScaleSpace< uint16_t, 1 >
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageScaleSpace< uint16_t, 3 >
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageScaleSpace< float, 1 >
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageScaleSpace< float, 3 >
 

Detailed Description

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

Image scale space processor.

Template Parameters
TData type.
CNumber of channels.

Constructor & Destructor Documentation

◆ ImageScaleSpace() [1/4]

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

Default constructor.

◆ ImageScaleSpace() [2/4]

template<typename T , size_t C>
blo::ImageScaleSpace< T, C >::ImageScaleSpace ( int  roiWidth,
int  roiHeight,
float  tMax 
)

Constructs Image scale space processor of specified size work buffers.

Note
The scale space parameter t is the variance of the Gaussian filter.
Parameters
roiWidthWidth of the image ROI in pixels to size work buffers to.
roiHeightHeight of the image ROI in pixels to size work buffers to.
tMaxMaximum value of scale space parameter to size work buffers to.

◆ ImageScaleSpace() [3/4]

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

Copy constructor.

◆ ImageScaleSpace() [4/4]

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

Move constructor.

◆ ~ImageScaleSpace()

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

Destructor.

Member Function Documentation

◆ clear()

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

Resizes work buffers to zero.

◆ generateRepresentation() [1/2]

template<typename T , size_t C>
const MultiscaleImage< T, C > blo::ImageScaleSpace< T, C >::generateRepresentation ( const T *  pSrc,
int  srcStep,
int  roiWidth,
int  roiHeight,
const float *  pSrc_t,
int  num_t 
)

Generates a scale space representation.

Note
The scale space parameter t is the variance of the Gaussian filter. Source image details significantly smaller than 2 * sqrt(t) are removed from the image at that scale parameter.
Parameters
pSrcPointer to the source image.
srcStepStep in bytes between the rows in the source image.
roiWidthWidth of the source image ROI and destination scale space images in pixels.
roiHeightHeight of the source image ROI and destination scale space images in pixels.
pSrc_tPointer to the scale space parameters in ascending order.
num_tNumber of scale space parameters.
Returns
The destination scale space representation.

◆ generateRepresentation() [2/2]

template<typename T , size_t C>
void blo::ImageScaleSpace< T, C >::generateRepresentation ( const T *  pSrc,
int  srcStep,
int  roiWidth,
int  roiHeight,
const float *  pSrc_t,
int  num_t,
MultiscaleImage< T, C > &  dst 
)

Generates a scale space representation.

Note
The scale space parameter t is the variance of the Gaussian filter. Source image details significantly smaller than 2 * sqrt(t) are removed from the image at that scale parameter.
Parameters
pSrcPointer to the source image.
srcStepStep in bytes between the rows in the source image.
roiWidthWidth of the source image ROI and destination scale space images in pixels.
roiHeightHeight of the source image ROI and destination scale space images in pixels.
pSrc_tPointer to the scale space parameters in ascending order.
num_tNumber of scale space parameters.
dstThe destination scale space representation.

◆ operator=() [1/2]

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

Copy assignment operator.

◆ operator=() [2/2]

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

Move assignment operator.

◆ resize()

template<typename T , size_t C>
void blo::ImageScaleSpace< T, C >::resize ( int  roiWidth,
int  roiHeight,
float  tMax 
)

Resizes work buffers.

Note
The scale space parameter t is the variance of the Gaussian filter.
Parameters
roiWidthWidth of the image ROI in pixels to resize work buffers to.
roiHeightHeight of the image ROI in pixels to resize work buffers to.
tMaxMaximum value of scale space parameter to resize work buffers to.

Friends And Related Function Documentation

◆ ImageScaleSpace< float, 1 >

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

◆ ImageScaleSpace< float, 3 >

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

◆ ImageScaleSpace< uint16_t, 1 >

template<typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageScaleSpace< uint16_t, 1 >
related

◆ ImageScaleSpace< uint16_t, 3 >

template<typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageScaleSpace< uint16_t, 3 >
related

◆ ImageScaleSpace< uint8_t, 1 >

template<typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageScaleSpace< uint8_t, 1 >
related

◆ ImageScaleSpace< uint8_t, 3 >

template<typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageScaleSpace< uint8_t, 3 >
related

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