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

Image resize processor. More...

#include <ImageResize.h>

Public Member Functions

 ImageResize ()
 Default constructor.
 
 ImageResize (int srcRoiWidth, int srcRoiHeight, int dstRoiWidth, int dstRoiHeight)
 Constructs image resize processor of specified size work buffers.
 
 ImageResize (const ImageResize &rhs)
 Copy constructor.
 
 ImageResize (ImageResize &&rhs) noexcept
 Move constructor.
 
virtual ~ImageResize ()
 Destructor.
 
ImageResize & operator= (const ImageResize &rhs)
 Copy assignment operator.
 
ImageResize & operator= (ImageResize &&rhs) noexcept
 Move assignment operator.
 
void resize (int srcRoiWidth, int srcRoiHeight, int dstRoiWidth, int dstRoiHeight)
 Resizes work buffers.
 
void clear ()
 Resizes work buffers to zero width and zero height.
 
void resizeImage (const T *pSrc, int srcStep, int srcRoiWidth, int srcRoiHeight, T *pDst, int dstStep, int dstRoiWidth, int dstRoiHeight)
 Resize an image.
 

Related Functions

(Note that these are not member functions.)

BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize
 
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize
 

Detailed Description

template<Interpolation I, typename T, size_t C>
class blo::ImageResize< I, T, C >

Image resize processor.

Template Parameters
IInterpolation method.
TData type.
CNumber of channels.

Constructor & Destructor Documentation

◆ ImageResize() [1/4]

template<Interpolation I, typename T , size_t C>
blo::ImageResize< I, T, C >::ImageResize ( )

Default constructor.

◆ ImageResize() [2/4]

template<Interpolation I, typename T , size_t C>
blo::ImageResize< I, T, C >::ImageResize ( int  srcRoiWidth,
int  srcRoiHeight,
int  dstRoiWidth,
int  dstRoiHeight 
)

Constructs image resize processor of specified size work buffers.

Parameters
srcRoiWidthWidth of the source image ROI in pixels to resize work buffers to.
srcRoiHeightHeight of the source image ROI in pixels to resize work buffers to.
dstRoiWidthWidth of the destination image ROI in pixels to resize work buffers to.
dstRoiHeightHeight of the destination image ROI in pixels to resize work buffers to.

◆ ImageResize() [3/4]

template<Interpolation I, typename T , size_t C>
blo::ImageResize< I, T, C >::ImageResize ( const ImageResize< I, T, C > &  rhs)

Copy constructor.

◆ ImageResize() [4/4]

template<Interpolation I, typename T , size_t C>
blo::ImageResize< I, T, C >::ImageResize ( ImageResize< I, T, C > &&  rhs)
noexcept

Move constructor.

◆ ~ImageResize()

template<Interpolation I, typename T , size_t C>
virtual blo::ImageResize< I, T, C >::~ImageResize ( )
virtual

Destructor.

Member Function Documentation

◆ clear()

template<Interpolation I, typename T , size_t C>
void blo::ImageResize< I, T, C >::clear ( )

Resizes work buffers to zero width and zero height.

◆ operator=() [1/2]

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

Copy assignment operator.

◆ operator=() [2/2]

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

Move assignment operator.

◆ resize()

template<Interpolation I, typename T , size_t C>
void blo::ImageResize< I, T, C >::resize ( int  srcRoiWidth,
int  srcRoiHeight,
int  dstRoiWidth,
int  dstRoiHeight 
)

Resizes work buffers.

Parameters
srcRoiWidthWidth of the source image ROI in pixels to resize work buffers to.
srcRoiHeightHeight of the source image ROI in pixels to resize work buffers to.
dstRoiWidthWidth of the destination image ROI in pixels to resize work buffers to.
dstRoiHeightHeight of the destination image ROI in pixels to resize work buffers to.

◆ resizeImage()

template<Interpolation I, typename T , size_t C>
void blo::ImageResize< I, T, C >::resizeImage ( const T *  pSrc,
int  srcStep,
int  srcRoiWidth,
int  srcRoiHeight,
T *  pDst,
int  dstStep,
int  dstRoiWidth,
int  dstRoiHeight 
)

Resize an image.

Parameters
pSrcPointer to the source image.
srcStepStep in bytes between the rows in the source image.
srcRoiWidthWidth of the source image ROI in pixels.
srcRoiHeightHeight of the source image ROI in pixels.
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.

Friends And Related Function Documentation

◆ ImageResize() [1/50]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize< Interpolation::nearestNeighbor, uint8_t, 1 >
related

◆ ImageResize() [2/50]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize< Interpolation::nearestNeighbor, uint8_t, 3 >
related

◆ ImageResize() [3/50]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize< Interpolation::nearestNeighbor, uint8_t, 4 >
related

◆ ImageResize() [4/50]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize< Interpolation::nearestNeighbor, uint16_t, 1 >
related

◆ ImageResize() [5/50]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize< Interpolation::nearestNeighbor, uint16_t, 3 >
related

◆ ImageResize() [6/50]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize< Interpolation::nearestNeighbor, uint16_t, 4 >
related

◆ ImageResize() [7/50]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize< Interpolation::nearestNeighbor, float, 1 >
related

◆ ImageResize() [8/50]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize< Interpolation::nearestNeighbor, float, 3 >
related

◆ ImageResize() [9/50]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize< Interpolation::nearestNeighbor, float, 4 >
related

◆ ImageResize() [10/50]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize< Interpolation::supersampling, uint8_t, 1 >
related

◆ ImageResize() [11/50]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize< Interpolation::supersampling, uint8_t, 3 >
related

◆ ImageResize() [12/50]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize< Interpolation::supersampling, uint8_t, 4 >
related

◆ ImageResize() [13/50]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize< Interpolation::supersampling, uint16_t, 1 >
related

◆ ImageResize() [14/50]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize< Interpolation::supersampling, uint16_t, 3 >
related

◆ ImageResize() [15/50]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize< Interpolation::supersampling, uint16_t, 4 >
related

◆ ImageResize() [16/50]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize< Interpolation::supersampling, float, 1 >
related

◆ ImageResize() [17/50]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize< Interpolation::supersampling, float, 3 >
related

◆ ImageResize() [18/50]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize< Interpolation::supersampling, float, 4 >
related

◆ ImageResize() [19/50]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize< Interpolation::linear, uint8_t, 1 >
related

◆ ImageResize() [20/50]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize< Interpolation::linear, uint8_t, 3 >
related

◆ ImageResize() [21/50]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize< Interpolation::linear, uint8_t, 4 >
related

◆ ImageResize() [22/50]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize< Interpolation::linear, uint16_t, 1 >
related

◆ ImageResize() [23/50]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize< Interpolation::linear, uint16_t, 3 >
related

◆ ImageResize() [24/50]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize< Interpolation::linear, uint16_t, 4 >
related

◆ ImageResize() [25/50]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize< Interpolation::linear, float, 1 >
related

◆ ImageResize() [26/50]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize< Interpolation::linear, float, 3 >
related

◆ ImageResize() [27/50]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize< Interpolation::linear, float, 4 >
related

◆ ImageResize() [28/50]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize< Interpolation::linear, double, 1 >
related

◆ ImageResize() [29/50]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize< Interpolation::linear, double, 3 >
related

◆ ImageResize() [30/50]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize< Interpolation::linear, double, 4 >
related

◆ ImageResize() [31/50]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize< Interpolation::cubic, uint8_t, 1 >
related

◆ ImageResize() [32/50]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize< Interpolation::cubic, uint8_t, 3 >
related

◆ ImageResize() [33/50]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize< Interpolation::cubic, uint8_t, 4 >
related

◆ ImageResize() [34/50]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize< Interpolation::cubic, uint16_t, 1 >
related

◆ ImageResize() [35/50]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize< Interpolation::cubic, uint16_t, 3 >
related

◆ ImageResize() [36/50]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize< Interpolation::cubic, uint16_t, 4 >
related

◆ ImageResize() [37/50]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize< Interpolation::cubic, float, 1 >
related

◆ ImageResize() [38/50]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize< Interpolation::cubic, float, 3 >
related

◆ ImageResize() [39/50]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize< Interpolation::cubic, float, 4 >
related

◆ ImageResize() [40/50]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize< Interpolation::cubic, double, 1 >
related

◆ ImageResize() [41/50]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize< Interpolation::lanczos, uint8_t, 1 >
related

◆ ImageResize() [42/50]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize< Interpolation::lanczos, uint8_t, 3 >
related

◆ ImageResize() [43/50]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize< Interpolation::lanczos, uint8_t, 4 >
related

◆ ImageResize() [44/50]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize< Interpolation::lanczos, uint16_t, 1 >
related

◆ ImageResize() [45/50]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize< Interpolation::lanczos, uint16_t, 3 >
related

◆ ImageResize() [46/50]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize< Interpolation::lanczos, uint16_t, 4 >
related

◆ ImageResize() [47/50]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize< Interpolation::lanczos, float, 1 >
related

◆ ImageResize() [48/50]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize< Interpolation::lanczos, float, 3 >
related

◆ ImageResize() [49/50]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize< Interpolation::lanczos, float, 4 >
related

◆ ImageResize() [50/50]

template<Interpolation I, typename T , size_t C>
BLO_EXPIMP_TEMPLATE template class BLO_API ImageResize< Interpolation::lanczos, double, 1 >
related

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