STIRA
0.1
|
Computes orthogonal redundant (i.e., non-subsampled) wavelet decomposition / reconstruction This class implements the a-trous algorithm of Mallat. More...
#include <NonSubsampledTransform.h>
Public Member Functions | |
NonSubsampledTransform (WaveletType type=DAUBECHIES_2) | |
constructor More... | |
~NonSubsampledTransform () | |
destructor | |
virtual bool | Decompose (ArrayGrid< double > *pSourceGrid, int nrScales) |
decomposition More... | |
virtual bool | Reconstruct (double threshold=0.0) |
reconstructs the decomposed image More... | |
Public Member Functions inherited from stira::wavelet::Wavelet | |
Wavelet () | |
constructor | |
virtual | ~Wavelet () |
destructor | |
Pyramid< double > * | GetPyramid () |
Gets the pyramid with all the subbands. | |
ArrayGrid< double > * | GetCopyOfReconstructedGrid () |
gets a copy of the grid after wavelket reconstruction Caller gets responsability to delete it after usage | |
int | GetNumberOfOrientations () |
gets the number of orientations | |
int | GetNumberOfScales () |
gets the number of scales | |
Additional Inherited Members | |
Protected Member Functions inherited from stira::wavelet::Wavelet | |
void | Initialize (ArrayGrid< double > *pSourceGrid, int nrScales, int nrOrientations=3, bool createBands=false, bool isSubsampled=true, bool isLowestScaleSubsampled=true) |
Initializes data structures and variables for decomposition. More... | |
Protected Attributes inherited from stira::wavelet::Wavelet | |
int | mNrOrientations |
Number of orientations; default 3 with classical wavelets (LH, HL and HH) | |
int | mNrScales |
Number of scales. | |
Pyramid< double > * | mpPyramid |
data structure for decomposed bands with wavelet coefficients | |
ArrayGrid< double > * | mpDecomposeReconstructGrid |
grid after deompose/reconstruct | |
int | mCurrentScale |
number of the scale being computed | |
WaveletFilterSet | mSet |
the wavelet filter taps | |
ArrayGrid< double > * | mpSourceGrid |
pointer to source data before decomposition | |
Computes orthogonal redundant (i.e., non-subsampled) wavelet decomposition / reconstruction This class implements the a-trous algorithm of Mallat.
stira::wavelet::NonSubsampledTransform::NonSubsampledTransform | ( | WaveletType | type = DAUBECHIES_2 | ) |
constructor
type | type of wavelet to use (see enum in waveletTabs.h) |
References stira::wavelet::WaveletTapGenerator::Generate(), stira::wavelet::WaveletFilterSet::length, stira::wavelet::Wavelet::mNrOrientations, stira::wavelet::Wavelet::mSet, stira::wavelet::WaveletFilterSet::pHighpassForward, stira::wavelet::WaveletFilterSet::pHighpassInvers, stira::wavelet::WaveletFilterSet::pLowpassForward, and stira::wavelet::WaveletFilterSet::pLowpassInvers.
|
virtual |
decomposition
pSourceGrid | grid to be deomposed |
nrScales | nr of scales in the decomposition |
Implements stira::wavelet::Wavelet.
References stira::imagedata::Pyramid< T >::GetLowpassResidual(), stira::wavelet::Wavelet::GetNumberOfScales(), stira::wavelet::Wavelet::Initialize(), stira::wavelet::Wavelet::mNrOrientations, stira::wavelet::Wavelet::mNrScales, and stira::wavelet::Wavelet::mpPyramid.
|
virtual |
reconstructs the decomposed image
threshold | hard threshold for bandpass images, just for demo purposes |
Implements stira::wavelet::Wavelet.
References stira::imagedata::ArrayGrid< T >::Clone(), stira::common::MathUtils::ComputeIntegerPower(), stira::imagedata::ArrayGrid< T >::GetHeight(), stira::imagedata::Pyramid< T >::GetLowpassResidual(), stira::wavelet::Wavelet::GetNumberOfScales(), stira::imagedata::PyramidLevel< T >::GetOrientedBand(), stira::imagedata::Pyramid< T >::GetRecursiveScale(), stira::imagedata::ArrayGrid< T >::GetValue(), stira::imagedata::ArrayGrid< T >::GetWidth(), stira::wavelet::WaveletFilterSet::length, stira::wavelet::Wavelet::mpDecomposeReconstructGrid, stira::wavelet::Wavelet::mpPyramid, stira::wavelet::Wavelet::mSet, stira::wavelet::WaveletFilterSet::pHighpassForward, stira::wavelet::WaveletFilterSet::pHighpassInvers, stira::wavelet::WaveletFilterSet::pLowpassForward, stira::wavelet::WaveletFilterSet::pLowpassInvers, stira::imagedata::Pyramid< T >::SetLowpassResidual(), and stira::imagedata::ArrayGrid< T >::SetValue().