Class StdImage

Implemented Interfaces:
Runnable

public class StdImage
extends ImageMaker

Wavelet Transformation Demo: Class for display of the Standard decomposition

Nested Class Summary

Nested classes/interfaces inherited from class .ImageMaker

ImageMaker.DisplayPositions

Field Summary

private ImageMaker.DisplayPositions
dispPos
private boolean
startEmptyList

Fields inherited from class .ImageMaker

boundaryMethod, byteData, canvas, dispNorm, displayBands, displayCols, displayRows, endCol, endRow, image, lineColor, startCol, startRow

Constructor Summary

StdImage(ImageCanvas dest, int bands, int rows, int cols, ImageMaker.DisplayPositions dispPos, int lc, boolean norm, String bm)
Constructor for a Standard-Decomposition image
StdImage(ImageCanvas dest, int bands, int rows, int cols, int lc, boolean norm, String bm)
Constructor for a Standard-Decomposition image

Method Summary

ImageMaker.DisplayPositions
getDisplayPositions()
Return the display positions for each level (only needed in case of standard-decomposition)
void
setDataColTransform(Data data, int level, int numDispRows, int numDispCols, int dataType, boolean lastLP)
Calculate positions and copy the column-transformed data to the display array
void
setDataRowTransform(Data data, int level, int numDispRows, int numDispCols, int dataType, boolean lastLP)
Calculate positions and copy the row-transformed data to the display array
private void
setStartCol(Data data, int numDispCols, int dataType)
In case of border extension ZERO- and MIRRORPADDING, the length of the samples after convolution is greater than the length of the samples before convolution.
private void
setStartRow(Data data, int numDispRows, int dataType)
In case of border extension ZERO- and MIRRORPADDING, the length of the samples after convolution is greater than the length of the samples before convolution.

Methods inherited from class .ImageMaker

copyRowData, createImage, getDisplayArray, getDisplayPositions, getImage, initData, insertSeperator, run, scaleImage, setCanvas, setDataColTransform, setDataRowTransform, setImage, setImage

Field Details

dispPos

private ImageMaker.DisplayPositions dispPos

startEmptyList

private boolean startEmptyList

Constructor Details

StdImage

public StdImage(ImageCanvas dest,
                int bands,
                int rows,
                int cols,
                ImageMaker.DisplayPositions dispPos,
                int lc,
                boolean norm,
                String bm)
Constructor for a Standard-Decomposition image

StdImage

public StdImage(ImageCanvas dest,
                int bands,
                int rows,
                int cols,
                int lc,
                boolean norm,
                String bm)
Constructor for a Standard-Decomposition image

Method Details

getDisplayPositions

public ImageMaker.DisplayPositions getDisplayPositions()
Return the display positions for each level (only needed in case of standard-decomposition)
Overrides:
getDisplayPositions in interface ImageMaker

setDataColTransform

public void setDataColTransform(Data data,
                                int level,
                                int numDispRows,
                                int numDispCols,
                                int dataType,
                                boolean lastLP)
Calculate positions and copy the column-transformed data to the display array
Overrides:
setDataColTransform in interface ImageMaker

setDataRowTransform

public void setDataRowTransform(Data data,
                                int level,
                                int numDispRows,
                                int numDispCols,
                                int dataType,
                                boolean lastLP)
Calculate positions and copy the row-transformed data to the display array
Overrides:
setDataRowTransform in interface ImageMaker

setStartCol

private void setStartCol(Data data,
                         int numDispCols,
                         int dataType)
In case of border extension ZERO- and MIRRORPADDING, the length of the samples after convolution is greater than the length of the samples before convolution. So shorten the amount of columns (-> horizontal direction) here again for display.

setStartRow

private void setStartRow(Data data,
                         int numDispRows,
                         int dataType)
In case of border extension ZERO- and MIRRORPADDING, the length of the samples after convolution is greater than the length of the samples before convolution. So shorten the amount of rows (-> vertical direction) here again for display.