Class WaveletTransformInt<T extends boofcv.struct.image.GrayI<T>>

  • All Implemented Interfaces:
    WaveletTransform<T,​boofcv.struct.image.GrayS32,​boofcv.struct.wavelet.WlCoef_I32>

    public class WaveletTransformInt<T extends boofcv.struct.image.GrayI<T>>
    extends java.lang.Object
    implements WaveletTransform<T,​boofcv.struct.image.GrayS32,​boofcv.struct.wavelet.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

      Constructors 
      Constructor Description
      WaveletTransformInt​(boofcv.struct.wavelet.WaveletDescription<boofcv.struct.wavelet.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 Description
      boofcv.struct.border.BorderType getBorderType()
      Returns how the borders are handled.
      boofcv.struct.wavelet.WaveletDescription<boofcv.struct.wavelet.WlCoef_I32> getDescription()
      Description of the wavelet.
      int getLevels()
      Number of levels in the wavelet transform.
      java.lang.Class<T> getOriginalType()  
      void invert​(boofcv.struct.image.GrayS32 transformed, T original)
      Applies the inverse wavelet transform to the specified image.
      boofcv.struct.image.GrayS32 transform​(T original, boofcv.struct.image.GrayS32 transformed)
      Computes the wavelet transform of the input image.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WaveletTransformInt

        public WaveletTransformInt​(boofcv.struct.wavelet.WaveletDescription<boofcv.struct.wavelet.WlCoef_I32> desc,
                                   int numLevels,
                                   int minPixelValue,
                                   int maxPixelValue,
                                   java.lang.Class<T> inputType)
    • Method Detail

      • transform

        public boofcv.struct.image.GrayS32 transform​(T original,
                                                     boofcv.struct.image.GrayS32 transformed)
        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 interface WaveletTransform<T extends boofcv.struct.image.GrayI<T>,​boofcv.struct.image.GrayS32,​boofcv.struct.wavelet.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​(boofcv.struct.image.GrayS32 transformed,
                           T original)
        Description copied from interface: WaveletTransform
        Applies the inverse wavelet transform to the specified image.
        Specified by:
        invert in interface WaveletTransform<T extends boofcv.struct.image.GrayI<T>,​boofcv.struct.image.GrayS32,​boofcv.struct.wavelet.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 interface WaveletTransform<T extends boofcv.struct.image.GrayI<T>,​boofcv.struct.image.GrayS32,​boofcv.struct.wavelet.WlCoef_I32>
        Returns:
        number of levels.
      • getBorderType

        public boofcv.struct.border.BorderType getBorderType()
        Description copied from interface: WaveletTransform
        Returns how the borders are handled.
        Specified by:
        getBorderType in interface WaveletTransform<T extends boofcv.struct.image.GrayI<T>,​boofcv.struct.image.GrayS32,​boofcv.struct.wavelet.WlCoef_I32>
        Returns:
        Type of border used.
      • getDescription

        public boofcv.struct.wavelet.WaveletDescription<boofcv.struct.wavelet.WlCoef_I32> getDescription()
        Description copied from interface: WaveletTransform
        Description of the wavelet.
        Specified by:
        getDescription in interface WaveletTransform<T extends boofcv.struct.image.GrayI<T>,​boofcv.struct.image.GrayS32,​boofcv.struct.wavelet.WlCoef_I32>
        Returns:
        wavelet description.
      • getOriginalType

        public java.lang.Class<T> getOriginalType()
        Specified by:
        getOriginalType in interface WaveletTransform<T extends boofcv.struct.image.GrayI<T>,​boofcv.struct.image.GrayS32,​boofcv.struct.wavelet.WlCoef_I32>