Class NonStdImage

Implemented Interfaces:
Runnable

public class NonStdImage
extends ImageMaker

Wavelet Transformation Demo: Class for display of the Non-Standard decomposition

Nested Class Summary

Nested classes/interfaces inherited from class .ImageMaker

ImageMaker.DisplayPositions

Field Summary

Fields inherited from class .ImageMaker

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

Constructor Summary

NonStdImage(ImageCanvas ic, int bands, int rows, int cols, int lc, boolean norm, String bm)
Constructor for a specialized display of the non-standard transformation

Method Summary

void
setDataColTransform(Data data, int level, int numDispRows, int numDispCols, int dataType, boolean lastLP)
Shorten the transformed samples (here: after column transformation) according to their display layout (eg.
void
setDataRowTransform(Data data, int level, int numDispRows, int numDispCols, int dataType, boolean lastLP)
Shorten the transformed samples (here: after row transformation) according to their display layout (eg.
private void
setStartAndEnd(Data data, int rowPos1, int rowPos2, int numDispRows, int colPos1, int colPos2, int numDispCols)
Determine the start and end positions (for rows and cols) in the convoluted samples array for shortened display.

Methods inherited from class .ImageMaker

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

Constructor Details

NonStdImage

public NonStdImage(ImageCanvas ic,
                   int bands,
                   int rows,
                   int cols,
                   int lc,
                   boolean norm,
                   String bm)
Constructor for a specialized display of the non-standard transformation
Parameters:
ic - Target display ImageCanvas
bands - Number of bands to display
rows - Number of rows to display
cols - Number of columns to display
lc - Transformation display line color
norm - Display normalization flag
bm - Current border extension method

Method Details

setDataColTransform

public void setDataColTransform(Data data,
                                int level,
                                int numDispRows,
                                int numDispCols,
                                int dataType,
                                boolean lastLP)
Shorten the transformed samples (here: after column transformation) according to their display layout (eg. LL, HL, LH, HH,..) and copy them to a byte array for image creation.
Overrides:
setDataColTransform in interface ImageMaker
Parameters:
data - Convoluted samples array
level - Current transformation level
numDispRows - Number of rows to display
numDispCols - Number of columns to display
dataType - Type of convoluted data (lowPass, highPass, both for synthesis,...)
lastLP - Flag: Is currrent low pass the last low pass of the transformation?

setDataRowTransform

public void setDataRowTransform(Data data,
                                int level,
                                int numDispRows,
                                int numDispCols,
                                int dataType,
                                boolean lastLP)
Shorten the transformed samples (here: after row transformation) according to their display layout (eg. LL, HL, LH, HH,..) and copy them to a byte array for image creation.
Overrides:
setDataRowTransform in interface ImageMaker
Parameters:
data - Convoluted samples array
level - Current transformation level
numDispRows - Number of rows to display
numDispCols - Number of columns to display
dataType - Type of convoluted data (lowPass, highPass, both for synthesis,...)
lastLP - Flag: Is currrent low pass the last low pass of the transformation?

setStartAndEnd

private void setStartAndEnd(Data data,
                            int rowPos1,
                            int rowPos2,
                            int numDispRows,
                            int colPos1,
                            int colPos2,
                            int numDispCols)
Determine the start and end positions (for rows and cols) in the convoluted samples array for shortened display. Therefore the initial dimensions of each considered transformation display part (eg. LL, HL, LH,...) is specified. (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)
Parameters:
data - The convoluted samples Data array
rowPos1 - The starting row Position
numDispRows - The row display length of the considered part
colPos1 - The starting column Position
numDispCols - The column display length of the considered part