Wavelet Transformation Demo:
Performs the reconstruction (synthesis) of a wavelet transformed image
borderExtMethod
private String borderExtMethod
boundSize
private int boundSize
canvas
private ImageCanvas canvas
decompMethod
private String decompMethod
dispMethod
private String dispMethod
dispNorm
private boolean dispNorm
filterSize
private int filterSize
interpol
private Interpolation interpol
lineColor
private int lineColor
maxlevel
private int maxlevel
orgNumBands
private int orgNumBands
orgNumCols
private int orgNumCols
orgNumRows
private int orgNumRows
quanThreshold
private double quanThreshold
quantAbs
private int quantAbs
quantAll
private int quantAll
quantFlag
private boolean quantFlag
calculatePSNR
private void calculatePSNR(byte[][][] org,
byte[][][] dec)
checkArrayDimensions
private boolean checkArrayDimensions(Data a,
Data b)
Check matching of array dimensions
convolution
private double[] convolution(double[] approx,
double[] details,
int outCount)
Perform the convolution of the approximation with the lowpass filter
and the details with the highpass filter
and add results for image reconstruction
initSynthesisCanvas
private void initSynthesisCanvas()
Init the synthesis display canvas (with full transformation image from analysis)
initSynthesisCanvas
private void initSynthesisCanvas(NonStdData coeffs)
Init the synthesis display canvas (with last low pass from analysis)
nonStandardDecomposition
private void nonStandardDecomposition(NonStdData coeffs,
int level,
int dispLevel)
throws Message
Perform the synthesis based on the Non-Standard decomposition
quantiseAll
private void quantiseAll(Data in,
Data out,
String decMeth,
boolean maxlevFlag)
quantiseCoeffs
private Data quantiseCoeffs(Data data,
String decMeth,
boolean maxlevFlag)
Perform the quantisation of the image data
quantisePart
private void quantisePart(Data in,
Data out,
String decMeth)
run
public void run()
Start the synthesis
setDecompMethod
private void setDecompMethod(String method)
Sets the selected decomposition method and creates corresponding image display templates
setFilter
private void setFilter(Filter filter)
Creates the needed filters
filter
- The specified filter
showImage
private void showImage(int numBands,
int numRows,
int numCols)
Display the reconstructed image
standardDecomposition
private void standardDecomposition(StdData coeffs,
Data low,
int level,
int dispLevel,
boolean colTransform)
throws Message
Perform the synthesis based on the Standard decomposition
synNotify
public void synNotify()
Continue the synthesis processing
synWait
public void synWait()
Pause the synthesis processing
waitSomeTime
private void waitSomeTime(boolean wait)
Wait some time before processing the next synthesis level