![]() |
TurboWavelets.Net
Compact C# Implementation for very fast and flexible wavelet transformations
|
Implements the two dimensional haar wavelet transformation for arbitrary sizes. More...
Public Member Functions | |
HaarWavelet2D (int width, int height) | |
A fast implementation of a two-dimensional haar transformation for arbitary lenghts (works for all sizes, not just power of 2) The implementation takes advantage of multiple CPU cores. | |
HaarWavelet2D (int width, int height, int minSize) | |
A fast implementation of a two-dimensional haar transformation for arbitary lenghts (works for all sizes, not just power of 2) The implementation takes advantage of multiple CPU cores. | |
Protected Member Functions | |
override void | TransformRow (float[,] src, float[,] dst, int y, int length) |
Performs a single horizontal transformation (transformation of a single row) | |
override void | TransformCol (float[,] src, float[,] dst, int x, int length) |
Performs a single vertical transformation (transformation of a single column) | |
override void | InvTransformRow (float[,] src, float[,] dst, int y, int length) |
Performs a single inverse horizontal transformation (transformation of a single row) | |
override void | InvTransformCol (float[,] src, float[,] dst, int x, int length) |
Performs a single inverse vertical transformation (transformation of a single column) | |
Protected Attributes | |
const int | AllowedMinSize = 2 |
The allowed minimum transformation (limitation of the algorithmn implementation) </supmmary> | |
const float | Scale = 2.0f |
scale factor | |
const float | InvScale = 0.5f |
inverse scale factor | |
const float | Mean = 0.5f |
factor for the mean of two values | |
const float | InvMean = 2.0f |
inverse factor for the mean of two values |
Implements the two dimensional haar wavelet transformation for arbitrary sizes.
Definition at line 34 of file HaarWavelet2D.cs.
TurboWavelets.HaarWavelet2D.HaarWavelet2D | ( | int | width, |
int | height | ||
) |
A fast implementation of a two-dimensional haar transformation for arbitary lenghts (works for all sizes, not just power of 2) The implementation takes advantage of multiple CPU cores.
width | The width of the transformation |
height | The width of the transformation |
Definition at line 64 of file HaarWavelet2D.cs.
TurboWavelets.HaarWavelet2D.HaarWavelet2D | ( | int | width, |
int | height, | ||
int | minSize | ||
) |
A fast implementation of a two-dimensional haar transformation for arbitary lenghts (works for all sizes, not just power of 2) The implementation takes advantage of multiple CPU cores.
width | The width of the transformation |
height | The width of the transformation |
minSize | Minimum width/height up to the transformation should be applied |
Definition at line 77 of file HaarWavelet2D.cs.
override void TurboWavelets.HaarWavelet2D.InvTransformCol | ( | float | src[,], |
float | dst[,], | ||
int | x, | ||
int | length | ||
) | [protected, virtual] |
Performs a single inverse vertical transformation (transformation of a single column)
src | 2d float array on which should be used as source for the transformation |
dst | 2d float array on which should be used as destination for the transformation |
x | index of the row which should be transformed |
length | number of entries to transform |
Reimplemented from TurboWavelets.Wavelet2D.
Definition at line 159 of file HaarWavelet2D.cs.
override void TurboWavelets.HaarWavelet2D.InvTransformRow | ( | float | src[,], |
float | dst[,], | ||
int | y, | ||
int | length | ||
) | [protected, virtual] |
Performs a single inverse horizontal transformation (transformation of a single row)
src | 2d float array on which should be used as source for the transformation |
dst | 2d float array on which should be used as destination for the transformation |
y | index of the row which should be transformed |
length | number of entries to transform |
Reimplemented from TurboWavelets.Wavelet2D.
Definition at line 135 of file HaarWavelet2D.cs.
override void TurboWavelets.HaarWavelet2D.TransformCol | ( | float | src[,], |
float | dst[,], | ||
int | x, | ||
int | length | ||
) | [protected, virtual] |
Performs a single vertical transformation (transformation of a single column)
src | 2d float array on which should be used as source for the transformation |
dst | 2d float array on which should be used as destination for the transformation |
x | index of the row which should be transformed |
length | number of entries to transform |
Reimplemented from TurboWavelets.Wavelet2D.
Definition at line 109 of file HaarWavelet2D.cs.
override void TurboWavelets.HaarWavelet2D.TransformRow | ( | float | src[,], |
float | dst[,], | ||
int | y, | ||
int | length | ||
) | [protected, virtual] |
Performs a single horizontal transformation (transformation of a single row)
src | 2d float array on which should be used as source for the transformation |
dst | 2d float array on which should be used as destination for the transformation |
y | index of the row which should be transformed |
length | number of entries to transform |
Reimplemented from TurboWavelets.Wavelet2D.
Definition at line 83 of file HaarWavelet2D.cs.
const float TurboWavelets.HaarWavelet2D.InvMean = 2.0f [protected] |
inverse factor for the mean of two values
Definition at line 55 of file HaarWavelet2D.cs.
const float TurboWavelets.HaarWavelet2D.InvScale = 0.5f [protected] |
inverse scale factor
Definition at line 47 of file HaarWavelet2D.cs.
const float TurboWavelets.HaarWavelet2D.Mean = 0.5f [protected] |
factor for the mean of two values
Definition at line 51 of file HaarWavelet2D.cs.
const float TurboWavelets.HaarWavelet2D.Scale = 2.0f [protected] |
scale factor
Definition at line 43 of file HaarWavelet2D.cs.