Class TransformLength


public class TransformLength
extends TreeMap

Wavelet Transformation Demo: Determination of convolution samples lengths from a given initial (input) sample length (in all levels - until the maximum decomposition level is reached). Each length is stored in a map, with the convolution level as the key.

Field Summary

private int
borderLength
private String
borderMethod
private HashMap
dispLengths
private int
filterLength
private int
initLen
private int
totalLen

Constructor Summary

TransformLength(int initialColLen, int fLen, String bm, int bLen)
Creates a new TransformLength object with information about the lengths of sampels after convolution

Method Summary

private void
determineDispLengths(int initLen)
private int
determineLengths(int inLen)
Determination of convolution samples lengths from a given initial (input) sample length - in all levels.
int
getDisplayLength(int level)
Returns the width of the (convoluted) image that should be displayed in the current level
private int
getHighestKey()
int
getLength(int level)
private int
getLowestKey()
int
getMaxlevel()
int
getTotalLen()
Returns the cumulated convoluted samples length

Field Details

borderLength

private int borderLength

borderMethod

private String borderMethod

dispLengths

private HashMap dispLengths

filterLength

private int filterLength

initLen

private int initLen

totalLen

private int totalLen

Constructor Details

TransformLength

public TransformLength(int initialColLen,
                       int fLen,
                       String bm,
                       int bLen)
Creates a new TransformLength object with information about the lengths of sampels after convolution
Parameters:
initialColLen - Initial (input) sample length
fLen - Filter length
bm - Border extension method (e.g. Zeropadding, Mirrorpadding,...)
bLen - Length of additional border extension samples

Method Details

determineDispLengths

private void determineDispLengths(int initLen)

determineLengths

private int determineLengths(int inLen)
Determination of convolution samples lengths from a given initial (input) sample length - in all levels.
Parameters:
inLen - Initial sample length
Returns:
Calculated cumulated convoluted samples length

getDisplayLength

public int getDisplayLength(int level)
Returns the width of the (convoluted) image that should be displayed in the current level

getHighestKey

private int getHighestKey()

getLength

public int getLength(int level)

getLowestKey

private int getLowestKey()

getMaxlevel

public int getMaxlevel()

getTotalLen

public int getTotalLen()
Returns the cumulated convoluted samples length
Returns:
Cumulated convoluted samples length