boofcv.abst.transform.wavelet.impl
Class WaveletTransformInt<T extends GrayI>
- java.lang.Object
-
- boofcv.abst.transform.wavelet.impl.WaveletTransformInt<T>
-
- All Implemented Interfaces:
- WaveletTransform<T,GrayS32,WlCoef_I32>
public class WaveletTransformInt<T extends GrayI> extends java.lang.Object implements WaveletTransform<T,GrayS32,WlCoef_I32>
Implementation of
WaveletTransformforGrayI.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
Constructors Constructor and Description WaveletTransformInt(WaveletDescription<WlCoef_I32> desc, int numLevels, int minPixelValue, int maxPixelValue, java.lang.Class<T> inputType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description BorderTypegetBorderType()Returns how the borders are handled.WaveletDescription<WlCoef_I32>getDescription()Description of the wavelet.intgetLevels()Number of levels in the wavelet transform.java.lang.Class<T>getOriginalType()voidinvert(GrayS32 transformed, T original)Applies the inverse wavelet transform to the specified image.GrayS32transform(T original, GrayS32 transformed)Computes the wavelet transform of the input image.
-
-
-
Constructor Detail
-
WaveletTransformInt
public WaveletTransformInt(WaveletDescription<WlCoef_I32> desc, int numLevels, int minPixelValue, int maxPixelValue, java.lang.Class<T> inputType)
-
-
Method Detail
-
transform
public GrayS32 transform(T original, GrayS32 transformed)
Description copied from interface:WaveletTransformComputes the wavelet transform of the input image. If no output/transform image is provided a new image is created and returned.- Specified by:
transformin interfaceWaveletTransform<T extends GrayI,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
public void invert(GrayS32 transformed, T original)
Description copied from interface:WaveletTransformApplies the inverse wavelet transform to the specified image.- Specified by:
invertin interfaceWaveletTransform<T extends GrayI,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:WaveletTransformNumber of levels in the wavelet transform.- Specified by:
getLevelsin interfaceWaveletTransform<T extends GrayI,GrayS32,WlCoef_I32>- Returns:
- number of levels.
-
getBorderType
public BorderType getBorderType()
Description copied from interface:WaveletTransformReturns how the borders are handled.- Specified by:
getBorderTypein interfaceWaveletTransform<T extends GrayI,GrayS32,WlCoef_I32>- Returns:
- Type of border used.
-
getDescription
public WaveletDescription<WlCoef_I32> getDescription()
Description copied from interface:WaveletTransformDescription of the wavelet.- Specified by:
getDescriptionin interfaceWaveletTransform<T extends GrayI,GrayS32,WlCoef_I32>- Returns:
- wavelet description.
-
getOriginalType
public java.lang.Class<T> getOriginalType()
- Specified by:
getOriginalTypein interfaceWaveletTransform<T extends GrayI,GrayS32,WlCoef_I32>
-
-
DataMelt 3.0 © DataMelt by jWork.ORG