Class TransformParams


public class TransformParams
extends java.lang.Object

Wavelet Transformation Demo: Transformation parameter handling and storage class

Field Summary

static String
BABOON
static String
BICUBIC
static String
BICUBIC2
static String
BILINEAR
static int
BLUE
static Vector
BOUND_METHODS
static String
BRAIN
static String
CAMERA
static String
CIRCULAR
static Vector
DECOMP_METHODS
static String
GOLDHILL
static int
GREEN
static String
HOUSE
static HashMap
IMAGES
static String[]
IMAGES_COMBO
static String[]
INTERPOL_COMBO
static HashMap
INTERPOL_METHODS
static String
LENA_COL
static String
LENA_GRAY
static String
LP_ORG
static String
MAX
static String
MIRRORPADDING
static String
NEAREST
static String
NONE
static String
NONSTD
static double
NORM_VAL
static String
PEPPERS
static String[]
QUANTI_COMBO
static HashMap
QUANTI_METHODS
static long
RATE_FAST
static long
RATE_MEDIUM
static long
RATE_SLOW
static int
RED
static String
REVERSAL
static String
STD
static String
WAFER
static String
ZEROPADDING
private long
anaDispRate
private String
boundMethod
private String
decompMethod
private boolean
displayNorm
private Filter
filter
private Interpolation
interpolMethod
private boolean
quantFlag
private Double
quantisation
private int
seperator
private RenderedImage
srcImage
private long
synDispRate
private String
synDisplay

Constructor Summary

TransformParams()
Standard-Constructor

Method Summary

long
getAnaDispRate()
String
getBoundMethod()
Get the current border extension method
String
getDecompMethod()
Get the current decomposition method
boolean
getDisplayNormalization()
Filter
getFilter()
Get the current filter
Interpolation
getInterpolMethod()
boolean
getQuantFlag()
double
getQuantisation()
int
getSeperatorColor()
RenderedImage
getSrcImage()
Get the current source image
long
getSynDispRate()
String
getSynDisplay()
boolean
isSelectionOK()
Check if all needed selections for the image transformation are done
void
setAnaDispRate(long rate)
void
setBoundMethod(String name)
Set the selected border extension method
void
setDecompMethod(String name)
Set the selected decomposition method
void
setDisplayNormalization(boolean norm)
void
setFilter(String name)
Set the selected filter
void
setInterpolation(String name)
void
setQuantFlag(boolean flag)
void
setQuantisation(String name)
void
setSeperatorColor(int value)
void
setSrcImage(String name, URL appletURL)
Set the current source image
void
setSynDispRate(long rate)

Field Details

BABOON

public static final String BABOON

BICUBIC

public static final String BICUBIC

BICUBIC2

public static final String BICUBIC2

BILINEAR

public static final String BILINEAR

BLUE

public static final int BLUE
Field Value:
2

BOUND_METHODS

public static final Vector BOUND_METHODS

BRAIN

public static final String BRAIN

CAMERA

public static final String CAMERA

CIRCULAR

public static final String CIRCULAR

DECOMP_METHODS

public static final Vector DECOMP_METHODS

GOLDHILL

public static final String GOLDHILL

GREEN

public static final int GREEN
Field Value:
1

HOUSE

public static final String HOUSE

IMAGES

public static final HashMap IMAGES

IMAGES_COMBO

public static final String[] IMAGES_COMBO

INTERPOL_COMBO

public static final String[] INTERPOL_COMBO

INTERPOL_METHODS

public static final HashMap INTERPOL_METHODS

LENA_COL

public static final String LENA_COL

LENA_GRAY

public static final String LENA_GRAY

LP_ORG

public static final String LP_ORG

MAX

public static final String MAX

MIRRORPADDING

public static final String MIRRORPADDING

NEAREST

public static final String NEAREST

NONE

public static final String NONE

NONSTD

public static final String NONSTD

NORM_VAL

public static final double NORM_VAL
Field Value:
128.0

PEPPERS

public static final String PEPPERS

QUANTI_COMBO

public static final String[] QUANTI_COMBO

QUANTI_METHODS

public static final HashMap QUANTI_METHODS

RATE_FAST

public static final long RATE_FAST
Field Value:
100L

RATE_MEDIUM

public static final long RATE_MEDIUM
Field Value:
1500L

RATE_SLOW

public static final long RATE_SLOW
Field Value:
3000L

RED

public static final int RED
Field Value:
0

REVERSAL

public static final String REVERSAL

STD

public static final String STD

WAFER

public static final String WAFER

ZEROPADDING

public static final String ZEROPADDING

anaDispRate

private long anaDispRate

boundMethod

private String boundMethod

decompMethod

private String decompMethod

displayNorm

private boolean displayNorm

filter

private Filter filter

interpolMethod

private Interpolation interpolMethod

quantFlag

private boolean quantFlag

quantisation

private Double quantisation

seperator

private int seperator

srcImage

private RenderedImage srcImage

synDispRate

private long synDispRate

synDisplay

private String synDisplay

Constructor Details

TransformParams

public TransformParams()
Standard-Constructor

Method Details

getAnaDispRate

public long getAnaDispRate()

getBoundMethod

public String getBoundMethod()
Get the current border extension method

getDecompMethod

public String getDecompMethod()
Get the current decomposition method

getDisplayNormalization

public boolean getDisplayNormalization()

getFilter

public Filter getFilter()
Get the current filter

getInterpolMethod

public Interpolation getInterpolMethod()

getQuantFlag

public boolean getQuantFlag()

getQuantisation

public double getQuantisation()

getSeperatorColor

public int getSeperatorColor()

getSrcImage

public RenderedImage getSrcImage()
Get the current source image

getSynDispRate

public long getSynDispRate()

getSynDisplay

public String getSynDisplay()

isSelectionOK

public boolean isSelectionOK()
Check if all needed selections for the image transformation are done
Returns:
boolean check value

setAnaDispRate

public void setAnaDispRate(long rate)

setBoundMethod

public void setBoundMethod(String name)
            throws Message
Set the selected border extension method

setDecompMethod

public void setDecompMethod(String name)
            throws Message
Set the selected decomposition method

setDisplayNormalization

public void setDisplayNormalization(boolean norm)

setFilter

public void setFilter(String name)
            throws Message
Set the selected filter

setInterpolation

public void setInterpolation(String name)
            throws Message

setQuantFlag

public void setQuantFlag(boolean flag)

setQuantisation

public void setQuantisation(String name)
            throws Message

setSeperatorColor

public void setSeperatorColor(int value)

setSrcImage

public void setSrcImage(String name,
                        URL appletURL)
            throws Message
Set the current source image

setSynDispRate

public void setSynDispRate(long rate)