|
The blo Library
|
Image wavelet transform processor. More...
#include <ImageWaveletTransform.h>
Public Member Functions | |
| ImageWaveletTransform () | |
| Default constructor. | |
| ImageWaveletTransform (int width, int height, int kernelLen) | |
| Constructs image wavelet transform processor of specified size work buffers. | |
| ImageWaveletTransform (const ImageWaveletTransform &rhs) | |
| Copy constructor. | |
| ImageWaveletTransform (ImageWaveletTransform &&rhs) noexcept | |
| Move constructor. | |
| virtual | ~ImageWaveletTransform () |
| Destructor. | |
| ImageWaveletTransform & | operator= (const ImageWaveletTransform &rhs) |
| Copy assignment operator. | |
| ImageWaveletTransform & | operator= (ImageWaveletTransform &&rhs) noexcept |
| Move assignment operator. | |
| void | setBorderType (Border border) |
| Sets border type. | |
| Border | borderType () const |
| Retrieves border type. | |
| void | setFilters (const float *pKernelLow, int kernelLowLen, int kernelLowAnchor, const float *pKernelHigh, int kernelHighLen, int kernelHighAnchor, const float *pInverseKernelLow, int inverseKernelLowLen, int inverseKernelLowAnchor, const float *pInverseKernelHigh, int inverseKernelHighLen, int inverseKernelHighAnchor) |
| Sets wavelet transform filters. | |
| void | resize (int roiWidth, int roiHeight, int kernelLen) |
| Resizes work buffers. | |
| void | clear () |
| Resizes work buffers to zero size. | |
| void | transformedSize (int srcRoiWidth, int srcRoiHeight, int &dstRoiWidth, int &dstRoiHeight) |
| Calculates the size of the transformed image. | |
| void | transform (const T *pSrc, int srcStep, int srcRoiWidth, int srcRoiHeight, T *pDstApprox, int dstApproxStep, T *pDstHdetail, int dstHdetailStep, T *pDstVdetail, int dstVdetailStep, T *pDstDdetail, int dstDdetailStep) |
| Wavelet transforms an image. | |
| void | decomposeImage (const T *pSrc, int srcStep, int srcRoiWidth, int srcRoiHeight, int levels, MultiscaleImage< T, C > &dstHdetailPyramid, MultiscaleImage< T, C > &dstVdetailPyramid, MultiscaleImage< T, C > &dstDdetailPyramid, Image< T, C > &dstImage) |
| Decomposes an image to an approximation image and detail image pyramids. | |
| void | inverseTransformedSize (int srcRoiWidth, int srcRoiHeight, int &dstRoiWidth, int &dstRoiHeight) |
| Calculates the size of the inverse transformed image. | |
| void | inverseTransform (const T *pSrcApprox, int srcApproxStep, const T *pSrcHdetail, int srcHdetailStep, const T *pSrcVdetail, int srcVdetailStep, const T *pSrcDdetail, int srcDdetailStep, int srcRoiWidth, int srcRoiHeight, T *pDst, int dstStep) |
| Inverse wavelet transforms an image. | |
| void | reconstructImage (const T *pSrcImage, int srcImageStep, const MultiscaleImage< T, C > &srcHdetailPyramid, const MultiscaleImage< T, C > &srcVdetailPyramid, const MultiscaleImage< T, C > &srcDdetailPyramid, T *pDst, int dstStep, int level=0) |
| Reconstructs an image from an approximation image and detail image pyramids. | |
Related Functions | |
(Note that these are not member functions.) | |
| BLO_EXPIMP_TEMPLATE template class BLO_API | ImageWaveletTransform< float, 1 > |
| BLO_EXPIMP_TEMPLATE template class BLO_API | ImageWaveletTransform< float, 3 > |
Image wavelet transform processor.
| T | Data type. |
| C | Number of channels. |
| blo::ImageWaveletTransform< T, C >::ImageWaveletTransform | ( | ) |
Default constructor.
| blo::ImageWaveletTransform< T, C >::ImageWaveletTransform | ( | int | width, |
| int | height, | ||
| int | kernelLen | ||
| ) |
Constructs image wavelet transform processor of specified size work buffers.
| width | Width of the image ROI in pixels to size work buffers to. |
| height | Height of the image ROI in pixels to size work buffers to. |
| kernelLen | Length of the filter kernel in pixels to resize work buffers to. |
| blo::ImageWaveletTransform< T, C >::ImageWaveletTransform | ( | const ImageWaveletTransform< T, C > & | rhs | ) |
Copy constructor.
|
noexcept |
Move constructor.
|
virtual |
Destructor.
| Border blo::ImageWaveletTransform< T, C >::borderType | ( | ) | const |
Retrieves border type.
| void blo::ImageWaveletTransform< T, C >::clear | ( | ) |
Resizes work buffers to zero size.
| void blo::ImageWaveletTransform< T, C >::decomposeImage | ( | const T * | pSrc, |
| int | srcStep, | ||
| int | srcRoiWidth, | ||
| int | srcRoiHeight, | ||
| int | levels, | ||
| MultiscaleImage< T, C > & | dstHdetailPyramid, | ||
| MultiscaleImage< T, C > & | dstVdetailPyramid, | ||
| MultiscaleImage< T, C > & | dstDdetailPyramid, | ||
| Image< T, C > & | dstImage | ||
| ) |
Decomposes an image to an approximation image and detail image pyramids.
| pSrc | Pointer to the source image. |
| srcStep | Step in bytes between the rows in the source image. |
| srcRoiWidth | Width of the source image ROI in pixels. |
| srcRoiHeight | Height of the source image ROI in pixels. |
| levels | Number of levels to decompose the image. |
| dstHdetailPyramid | The destination horizontal detail image pyramid. |
| dstVdetailPyramid | The destination vertical detail image pyramid. |
| dstDdetailPyramid | The destination diagonal detail image pyramid. |
| dstImage | The destination approximation image corresponding to the last level in the detail image pyramids. |
| void blo::ImageWaveletTransform< T, C >::inverseTransform | ( | const T * | pSrcApprox, |
| int | srcApproxStep, | ||
| const T * | pSrcHdetail, | ||
| int | srcHdetailStep, | ||
| const T * | pSrcVdetail, | ||
| int | srcVdetailStep, | ||
| const T * | pSrcDdetail, | ||
| int | srcDdetailStep, | ||
| int | srcRoiWidth, | ||
| int | srcRoiHeight, | ||
| T * | pDst, | ||
| int | dstStep | ||
| ) |
Inverse wavelet transforms an image.
| pSrcApprox | Pointer to the source approximation image. |
| srcApproxStep | Step in bytes between the rows in the source approximation image. |
| pSrcHdetail | Pointer to the source horizontal detail image. |
| srcHdetailStep | Step in bytes between the rows in the source horizontal detail image. |
| pSrcVdetail | Pointer to the source vertical detail image. |
| srcVdetailStep | Step in bytes between the rows in the source vertical detail image. |
| pSrcDdetail | Pointer to the destination source detail image. |
| srcDdetailStep | Step in bytes between the rows in the source diagonal detail image. |
| srcRoiWidth | Width of the source images ROI in pixels. |
| srcRoiHeight | Height of the source images ROI in pixels. |
| pDst | Pointer to the destination image. |
| dstStep | Step in bytes between the rows in the destination image. |
| void blo::ImageWaveletTransform< T, C >::inverseTransformedSize | ( | int | srcRoiWidth, |
| int | srcRoiHeight, | ||
| int & | dstRoiWidth, | ||
| int & | dstRoiHeight | ||
| ) |
Calculates the size of the inverse transformed image.
| srcRoiWidth | Width of the source image ROI in pixels. |
| srcRoiHeight | Height of the source image ROI in pixels. |
| dstRoiWidth | Width of the inverse transformed image ROI in pixels. |
| dstRoiHeight | Height of the inverse transformed image ROI in pixels. |
| ImageWaveletTransform & blo::ImageWaveletTransform< T, C >::operator= | ( | const ImageWaveletTransform< T, C > & | rhs | ) |
Copy assignment operator.
|
noexcept |
Move assignment operator.
| void blo::ImageWaveletTransform< T, C >::reconstructImage | ( | const T * | pSrcImage, |
| int | srcImageStep, | ||
| const MultiscaleImage< T, C > & | srcHdetailPyramid, | ||
| const MultiscaleImage< T, C > & | srcVdetailPyramid, | ||
| const MultiscaleImage< T, C > & | srcDdetailPyramid, | ||
| T * | pDst, | ||
| int | dstStep, | ||
| int | level = 0 |
||
| ) |
Reconstructs an image from an approximation image and detail image pyramids.
| pSrcImage | Pointer to the source approximation image corresponding to the last level in the detail image pyramids. |
| srcImageStep | Step in bytes between the rows in the source approximation image. |
| srcHdetailPyramid | The source horizontal detail image pyramid. |
| srcVdetailPyramid | The source vertical detail image pyramid. |
| srcDdetailPyramid | The source diagonal detail image pyramid. |
| pDst | Pointer to the destination image. |
| dstStep | Step in bytes between the rows in the destination image. |
| level | Level to reconstruct. |
| void blo::ImageWaveletTransform< T, C >::resize | ( | int | roiWidth, |
| int | roiHeight, | ||
| int | kernelLen | ||
| ) |
Resizes work buffers.
| roiWidth | Width of the image ROI in pixels to resize work buffers to. |
| roiHeight | Height of the image ROI in pixels to resize work buffers to. |
| kernelLen | Length of the filter kernel in pixels to resize work buffers to. |
| void blo::ImageWaveletTransform< T, C >::setBorderType | ( | Border | border | ) |
Sets border type.
| border | Border type. |
| void blo::ImageWaveletTransform< T, C >::setFilters | ( | const float * | pKernelLow, |
| int | kernelLowLen, | ||
| int | kernelLowAnchor, | ||
| const float * | pKernelHigh, | ||
| int | kernelHighLen, | ||
| int | kernelHighAnchor, | ||
| const float * | pInverseKernelLow, | ||
| int | inverseKernelLowLen, | ||
| int | inverseKernelLowAnchor, | ||
| const float * | pInverseKernelHigh, | ||
| int | inverseKernelHighLen, | ||
| int | inverseKernelHighAnchor | ||
| ) |
Sets wavelet transform filters.
| pKernelLow | Pointer to the transform low pass filter kernel values. |
| kernelLowLen | Length of the transform low pass filter kernel in pixels. |
| kernelLowAnchor | Anchor cell specifying the transform low pass filter kernel alignment with respect to the position of the input pixel. |
| pKernelHigh | Pointer to the transform high pass filter kernel values. |
| kernelHighLen | Length of the transform high pass filter kernel in pixels. |
| kernelHighAnchor | Anchor cell specifying the transform high pass filter kernel alignment with respect to the position of the input pixel. |
| pInverseKernelLow | Pointer to the inverse transform low pass filter kernel values. |
| inverseKernelLowLen | Length of the inverse transform low pass filter kernel in pixels. |
| inverseKernelLowAnchor | Anchor cell specifying the inverse transform low pass filter kernel alignment with respect to the position of the input pixel. |
| pInverseKernelHigh | Pointer to the inverse transform high pass filter kernel values. |
| inverseKernelHighLen | Length of the inverse transform high pass filter kernel in pixels. |
| inverseKernelHighAnchor | Anchor cell specifying the inverse transform high pass filter kernel alignment with respect to the position of the input pixel. |
| void blo::ImageWaveletTransform< T, C >::transform | ( | const T * | pSrc, |
| int | srcStep, | ||
| int | srcRoiWidth, | ||
| int | srcRoiHeight, | ||
| T * | pDstApprox, | ||
| int | dstApproxStep, | ||
| T * | pDstHdetail, | ||
| int | dstHdetailStep, | ||
| T * | pDstVdetail, | ||
| int | dstVdetailStep, | ||
| T * | pDstDdetail, | ||
| int | dstDdetailStep | ||
| ) |
Wavelet transforms an image.
| pSrc | Pointer to the source image. |
| srcStep | Step in bytes between the rows in the source image. |
| srcRoiWidth | Width of the source image ROI in pixels. |
| srcRoiHeight | Height of the source image ROI in pixels. |
| pDstApprox | Pointer to the destination approximation image. |
| dstApproxStep | Step in bytes between the rows in the destination approximation image. |
| pDstHdetail | Pointer to the destination horizontal detail image. |
| dstHdetailStep | Step in bytes between the rows in the destination horizontal detail image. |
| pDstVdetail | Pointer to the destination vertical detail image. |
| dstVdetailStep | Step in bytes between the rows in the destination vertical detail image. |
| pDstDdetail | Pointer to the destination diagonal detail image. |
| dstDdetailStep | Step in bytes between the rows in the destination diagonal detail image. |
| void blo::ImageWaveletTransform< T, C >::transformedSize | ( | int | srcRoiWidth, |
| int | srcRoiHeight, | ||
| int & | dstRoiWidth, | ||
| int & | dstRoiHeight | ||
| ) |
Calculates the size of the transformed image.
| srcRoiWidth | Width of the source image ROI in pixels. |
| srcRoiHeight | Height of the source image ROI in pixels. |
| dstRoiWidth | Width of the transformed image ROI in pixels. |
| dstRoiHeight | Height of the transformed image ROI in pixels. |
|
related |
|
related |