public class UtilWavelet
extends java.lang.Object
| Constructor and Description |
|---|
UtilWavelet() |
| Modifier and Type | Method and Description |
|---|---|
static void |
adjustForDisplay(ImageSingleBand transform,
int numLevels,
double valueRange)
Adjusts the values inside a wavelet transform to make it easier to view.
|
static int |
borderForwardLower(WlCoef desc)
Returns the lower border for a forward wavelet transform.
|
static int |
borderForwardUpper(WlCoef desc,
int dataLength)
Returns the upper border (offset from image edge) for a forward wavelet transform.
|
static int |
borderInverseLower(WlBorderCoef<?> desc,
BorderIndex1D border)
Returns the lower border for an inverse wavelet transform.
|
static int |
borderInverseUpper(WlBorderCoef<?> desc,
BorderIndex1D border,
int dataLength)
Returns the upper border (offset from image edge) for an inverse wavelet transform.
|
static int |
checkInverseLower(WlCoef coef,
int index,
BorderIndex1D border,
int current) |
static int |
checkInverseUpper(WlCoef coef,
int index,
BorderIndex1D border,
int current) |
static void |
checkShape(ImageSingleBand original,
ImageSingleBand transformed)
The original image can have an even or odd number of width/height.
|
static void |
checkShape(WlCoef desc,
ImageSingleBand original,
ImageSingleBand transformed,
int level) |
static int |
computeDiv(int level)
Returns the number that the output image needs to be divisible by.
|
static double |
computeEnergy(float[] array)
Compute the energy of the specified array.
|
static double |
computeEnergy(int[] array,
int denominator)
Compute the energy of the specified array.
|
static int |
computeScale(int level) |
static BorderType |
convertToType(BorderIndex1D b) |
static int |
round(int top,
int div2,
int divisor)
Specialized rounding for use with integer wavelet transform.
|
static double |
sumCoefficients(float[] array) |
static int |
sumCoefficients(int[] array) |
static ImageDimension |
transformDimension(ImageBase orig,
int level)
Returns dimension which is required for the transformed image in a multilevel
wavelet transform.
|
static ImageDimension |
transformDimension(int width,
int height,
int level) |
public static void checkShape(ImageSingleBand original, ImageSingleBand transformed)
original - Original input image.transformed - Image which has been transformed.public static void checkShape(WlCoef desc, ImageSingleBand original, ImageSingleBand transformed, int level)
public static int computeScale(int level)
public static int computeDiv(int level)
public static ImageDimension transformDimension(ImageBase orig, int level)
public static ImageDimension transformDimension(int width, int height, int level)
public static double computeEnergy(float[] array)
Compute the energy of the specified array.
E = sum( i=1..N , a[i]*a[i] )
public static double computeEnergy(int[] array,
int denominator)
Compute the energy of the specified array.
E = sum( i=1..N , a[i]*a[i] ) / (N*d*d)
public static double sumCoefficients(float[] array)
public static int sumCoefficients(int[] array)
public static int borderForwardLower(WlCoef desc)
public static int borderForwardUpper(WlCoef desc, int dataLength)
public static int borderInverseLower(WlBorderCoef<?> desc, BorderIndex1D border)
public static int checkInverseLower(WlCoef coef, int index, BorderIndex1D border, int current)
public static int borderInverseUpper(WlBorderCoef<?> desc, BorderIndex1D border, int dataLength)
public static int checkInverseUpper(WlCoef coef, int index, BorderIndex1D border, int current)
public static int round(int top,
int div2,
int divisor)
top - Top part of the equation.div2 - The divisor divided by two.divisor - The divisor.public static BorderType convertToType(BorderIndex1D b)
public static void adjustForDisplay(ImageSingleBand transform, int numLevels, double valueRange)
transform - numLevels - Number of levels in the transform