Class WaveletTransformOps
- java.lang.Object
-
- boofcv.alg.transform.wavelet.WaveletTransformOps
-
public class WaveletTransformOps extends java.lang.ObjectFunctional interface for applying general purpose wavelet and inverse wavelet transforms.
A single level wavelet transform breaks the image up into four regions:
Each region has M/2,N/2 rows and columns. Region 'a' is the scaling image, 'h' and 'v' are a combination of scaling and wavelet, and 'd' is a combination of horizontal and vertical wavelets. When a multiple level transform is performed then the input to the next level is the 'a' from the previous level.a h v d DO NOT MODIFY: This class was automatically generated by
boofcv.alg.transform.wavelet.GenerateWaveletTransformOps
-
-
Constructor Summary
Constructors Constructor and Description WaveletTransformOps()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static voidinverse1(WaveletDescription<WlCoef_F32> desc, GrayF32 input, GrayF32 output, GrayF32 storage, float minValue, float maxValue)Performs a single level inverse wavelet transform.static voidinverse1(WaveletDescription<WlCoef_I32> desc, GrayS32 input, GrayS32 output, GrayS32 storage, int minValue, int maxValue)Performs a single level inverse wavelet transform.static voidinverseN(WaveletDescription<WlCoef_F32> desc, GrayF32 input, GrayF32 output, GrayF32 storage, int numLevels, float minValue, float maxValue)Performs a level N inverse fast wavelet transform (FWT).static voidinverseN(WaveletDescription<WlCoef_I32> desc, GrayS32 input, GrayS32 output, GrayS32 storage, int numLevels, int minValue, int maxValue)Performs a level N inverse fast wavelet transform (FWT).static voidtransform1(WaveletDescription<WlCoef_F32> desc, GrayF32 input, GrayF32 output, GrayF32 storage)Performs a single level wavelet transform.static voidtransform1(WaveletDescription<WlCoef_I32> desc, GrayS32 input, GrayS32 output, GrayS32 storage)Performs a single level wavelet transform.static voidtransformN(WaveletDescription<WlCoef_F32> desc, GrayF32 input, GrayF32 output, GrayF32 storage, int numLevels)Performs a level N wavelet transform using the fast wavelet transform (FWT).static voidtransformN(WaveletDescription<WlCoef_I32> desc, GrayS32 input, GrayS32 output, GrayS32 storage, int numLevels)Performs a level N wavelet transform using the fast wavelet transform (FWT).
-
-
-
Method Detail
-
transform1
public static void transform1(WaveletDescription<WlCoef_F32> desc, GrayF32 input, GrayF32 output, GrayF32 storage)
Performs a single level wavelet transform.
- Parameters:
desc- Description of the wavelet.input- Input image. Not modified.output- Where the wavelet transform is written to. Modified.storage- Optional storage image. Should be the same size as output image. If null then an image is declared internally.
-
transformN
public static void transformN(WaveletDescription<WlCoef_F32> desc, GrayF32 input, GrayF32 output, GrayF32 storage, int numLevels)
Performs a level N wavelet transform using the fast wavelet transform (FWT).
To save memory the input image is used to store intermediate results and is modified.
- Parameters:
desc- Description of the wavelet.input- Input image and is used as internal workspace. Modified.output- Where the multilevel wavelet transform is written to. Modified.storage- Optional storage image. Should be the same size as output image. If null then an image is declared internally.numLevels- Number of levels which should be computed in the transform.
-
inverse1
public static void inverse1(WaveletDescription<WlCoef_F32> desc, GrayF32 input, GrayF32 output, GrayF32 storage, float minValue, float maxValue)
Performs a single level inverse wavelet transform. Do not pass in a whole image which has been transformed by a multilevel transform. Just the relevant sub-image.
- Parameters:
desc- Description of the inverse wavelet.input- Input wavelet transform. Not modified.output- Reconstruction of original image. Modified.storage- Optional storage image. Should be the same size as the input image. If null then an image is declared internally.minValue- Minimum allowed pixel valuemaxValue- Maximum allowed pixel value
-
inverseN
public static void inverseN(WaveletDescription<WlCoef_F32> desc, GrayF32 input, GrayF32 output, GrayF32 storage, int numLevels, float minValue, float maxValue)
Performs a level N inverse fast wavelet transform (FWT).
To save memory the input image is used to store intermediate results and is modified.
- Parameters:
desc- Description of the inverse wavelet.input- Input wavelet transform and is used as internal workspace. Modified.output- Reconstruction of original image. Modified.storage- Optional storage image. Should be the same size as the input image. If null then an image is declared internally.numLevels- Number of levels in the transform.minValue- Minimum allowed pixel valuemaxValue- Maximum allowed pixel value
-
transform1
public static void transform1(WaveletDescription<WlCoef_I32> desc, GrayS32 input, GrayS32 output, GrayS32 storage)
Performs a single level wavelet transform.
- Parameters:
desc- Description of the wavelet.input- Input image. Not modified.output- Where the wavelet transform is written to. Modified.storage- Optional storage image. Should be the same size as output image. If null then an image is declared internally.
-
transformN
public static void transformN(WaveletDescription<WlCoef_I32> desc, GrayS32 input, GrayS32 output, GrayS32 storage, int numLevels)
Performs a level N wavelet transform using the fast wavelet transform (FWT).
To save memory the input image is used to store intermediate results and is modified.
- Parameters:
desc- Description of the wavelet.input- Input image and is used as internal workspace. Modified.output- Where the multilevel wavelet transform is written to. Modified.storage- Optional storage image. Should be the same size as output image. If null then an image is declared internally.numLevels- Number of levels which should be computed in the transform.
-
inverse1
public static void inverse1(WaveletDescription<WlCoef_I32> desc, GrayS32 input, GrayS32 output, GrayS32 storage, int minValue, int maxValue)
Performs a single level inverse wavelet transform. Do not pass in a whole image which has been transformed by a multilevel transform. Just the relevant sub-image.
- Parameters:
desc- Description of the inverse wavelet.input- Input wavelet transform. Not modified.output- Reconstruction of original image. Modified.storage- Optional storage image. Should be the same size as the input image. If null then an image is declared internally.minValue- Minimum allowed pixel valuemaxValue- Maximum allowed pixel value
-
inverseN
public static void inverseN(WaveletDescription<WlCoef_I32> desc, GrayS32 input, GrayS32 output, GrayS32 storage, int numLevels, int minValue, int maxValue)
Performs a level N inverse fast wavelet transform (FWT).
To save memory the input image is used to store intermediate results and is modified.
- Parameters:
desc- Description of the inverse wavelet.input- Input wavelet transform and is used as internal workspace. Modified.output- Reconstruction of original image. Modified.storage- Optional storage image. Should be the same size as the input image. If null then an image is declared internally.numLevels- Number of levels in the transform.minValue- Minimum allowed pixel valuemaxValue- Maximum allowed pixel value
-
-
DataMelt 3.0 © DataMelt by jWork.ORG