Class WaveletTransformInt<T extends GrayI<T>>
java.lang.Object
boofcv.abst.transform.wavelet.impl.WaveletTransformInt<T>
- All Implemented Interfaces:
WaveletTransform<T,
GrayS32, WlCoef_I32>
public class WaveletTransformInt<T extends GrayI<T>>
extends Object
implements WaveletTransform<T,GrayS32,WlCoef_I32>
Implementation of WaveletTransform
for GrayI
.
Wavelet transforms are only provided for 32-bit integer images, so if the input image is not 32-bit then it is first copied into a 32-bit image and then transformed. This is all done internally and is transparent to the user.
-
Constructor Summary
ConstructorDescriptionWaveletTransformInt
(WaveletDescription<WlCoef_I32> desc, int numLevels, int minPixelValue, int maxPixelValue, Class<T> inputType) -
Method Summary
Modifier and TypeMethodDescriptionReturns how the borders are handled.Description of the wavelet.int
Number of levels in the wavelet transform.void
Applies the inverse wavelet transform to the specified image.Computes the wavelet transform of the input image.
-
Constructor Details
-
WaveletTransformInt
public WaveletTransformInt(WaveletDescription<WlCoef_I32> desc, int numLevels, int minPixelValue, int maxPixelValue, Class<T> inputType)
-
-
Method Details
-
transform
Description copied from interface:WaveletTransform
Computes the wavelet transform of the input image. If no output/transform image is provided a new image is created and returned.- Specified by:
transform
in interfaceWaveletTransform<T extends GrayI<T>,
GrayS32, WlCoef_I32> - Parameters:
original
- Original unmodified image. Not modified.transformed
- Where the computed transform is stored. If null a new image is created. Modified.- Returns:
- Wavelet transform.
-
invert
Description copied from interface:WaveletTransform
Applies the inverse wavelet transform to the specified image.- Specified by:
invert
in interfaceWaveletTransform<T extends GrayI<T>,
GrayS32, WlCoef_I32> - Parameters:
transformed
- Wavelet transform of the image. Not modified.original
- Reconstructed image from transform. Modified.
-
getLevels
public int getLevels()Description copied from interface:WaveletTransform
Number of levels in the wavelet transform.- Specified by:
getLevels
in interfaceWaveletTransform<T extends GrayI<T>,
GrayS32, WlCoef_I32> - Returns:
- number of levels.
-
getBorderType
Description copied from interface:WaveletTransform
Returns how the borders are handled.- Specified by:
getBorderType
in interfaceWaveletTransform<T extends GrayI<T>,
GrayS32, WlCoef_I32> - Returns:
- Type of border used.
-
getDescription
Description copied from interface:WaveletTransform
Description of the wavelet.- Specified by:
getDescription
in interfaceWaveletTransform<T extends GrayI<T>,
GrayS32, WlCoef_I32> - Returns:
- wavelet description.
-
getOriginalType
- Specified by:
getOriginalType
in interfaceWaveletTransform<T extends GrayI<T>,
GrayS32, WlCoef_I32>
-