Class ImageMaker

Implemented Interfaces:
Runnable
Known Direct Subclasses:
NonStdImage, StdImage

public abstract class ImageMaker
extends java.lang.Object
implements Runnable

Wavelet Transformation Demo: Abstract class as a template for analysis or synthesis display

Nested Class Summary

class
ImageMaker.DisplayPositions
Internal Class for storage of transformation dependend display positions

Field Summary

(package private) String
boundaryMethod
(package private) byte[][][]
byteData
(package private) ImageCanvas
canvas
(package private) boolean
dispNorm
private int
displayBands
private int
displayCols
private int
displayRows
(package private) int
endCol
(package private) int
endRow
(package private) RenderedImage
image
(package private) int
lineColor
(package private) int
startCol
(package private) int
startRow

Constructor Summary

ImageMaker(ImageCanvas dest, int bands, int rows, int cols, int lc, boolean norm, String bm)
Constructor - Creates a new byte array for image data storage

Method Summary

(package private) void
copyRowData(double[] in, int level, int band, int row, int col, int start, int end, boolean check, int dataType)
Copy the convoluted row data to the display array
(package private) RenderedImage
createImage(byte[][] data, int disBands, int disRows, int disCols)
Create a rendered image from an 2-dim array of bytes
byte[][][]
getDisplayArray()
Return the byte array
ImageMaker.DisplayPositions
getDisplayPositions()
Returns display positions
RenderedImage
getImage()
Returns the current image
void
initData(Data data)
Init the display array with the original image data
(package private) void
insertSeperator(int band, int row, int col)
Insert a line between the convolution spaces
void
run()
Display the convoluted data
(package private) RenderedImage
scaleImage(RenderedImage src, Interpolation ip)
Scale an image
void
setCanvas(ImageCanvas canvas)
Set the ImageCanvas
(package private) void
setDataColTransform(Data data, int level, int numDispRows, int numDispCols, int dataType, boolean lastLowPass)
Copies the transformed data to a byte array for display (after transformation of columns)
(package private) void
setDataRowTransform(Data data, int level, int numDispRows, int numDispCols, int dataType, boolean lastLowPass)
Copies the transformed data to a byte array for display (after transformation of rows)
void
setImage(int numBands, int numRows, int numCols)
Converts the 3-dim image data to 2-dim and creates a RenderedImage - w/o interpolation
void
setImage(int numBands, int numRows, int numCols, Interpolation ip)
Converts the 3-dim image data to 2-dim and creates a RenderedImage - with interpolation

Field Details

boundaryMethod

(package private)  String boundaryMethod

byteData

(package private)  byte[][][] byteData

canvas

(package private)  ImageCanvas canvas

dispNorm

(package private)  boolean dispNorm

displayBands

private int displayBands

displayCols

private int displayCols

displayRows

private int displayRows

endCol

(package private)  int endCol

endRow

(package private)  int endRow

image

(package private)  RenderedImage image

lineColor

(package private)  int lineColor

startCol

(package private)  int startCol

startRow

(package private)  int startRow

Constructor Details

ImageMaker

(package private)  ImageMaker(ImageCanvas dest,
                              int bands,
                              int rows,
                              int cols,
                              int lc,
                              boolean norm,
                              String bm)
Constructor - Creates a new byte array for image data storage

Method Details

copyRowData

(package private)  void copyRowData(double[] in,
                                    int level,
                                    int band,
                                    int row,
                                    int col,
                                    int start,
                                    int end,
                                    boolean check,
                                    int dataType)
Copy the convoluted row data to the display array
Parameters:
in - The convoluted data input array
band - The display band
row - The display row
col - The display start column
start - The starting position in the input array
end - The ending position in the input array

createImage

(package private)  RenderedImage createImage(byte[][] data,
                                             int disBands,
                                             int disRows,
                                             int disCols)
Create a rendered image from an 2-dim array of bytes

getDisplayArray

public byte[][][] getDisplayArray()
Return the byte array

getDisplayPositions

public ImageMaker.DisplayPositions getDisplayPositions()
Returns display positions

getImage

public RenderedImage getImage()
Returns the current image

initData

public void initData(Data data)
Init the display array with the original image data

insertSeperator

(package private)  void insertSeperator(int band,
                                        int row,
                                        int col)
Insert a line between the convolution spaces

run

public void run()
Display the convoluted data

scaleImage

(package private)  RenderedImage scaleImage(RenderedImage src,
                                            Interpolation ip)
Scale an image

setCanvas

public void setCanvas(ImageCanvas canvas)
Set the ImageCanvas

setDataColTransform

(package private)  void setDataColTransform(Data data,
                                            int level,
                                            int numDispRows,
                                            int numDispCols,
                                            int dataType,
                                            boolean lastLowPass)
Copies the transformed data to a byte array for display (after transformation of columns)

setDataRowTransform

(package private)  void setDataRowTransform(Data data,
                                            int level,
                                            int numDispRows,
                                            int numDispCols,
                                            int dataType,
                                            boolean lastLowPass)
Copies the transformed data to a byte array for display (after transformation of rows)

setImage

public void setImage(int numBands,
                     int numRows,
                     int numCols)
Converts the 3-dim image data to 2-dim and creates a RenderedImage - w/o interpolation

setImage

public void setImage(int numBands,
                     int numRows,
                     int numCols,
                     Interpolation ip)
Converts the 3-dim image data to 2-dim and creates a RenderedImage - with interpolation