|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.cuni.jagrlib.DefaultProperty
cz.cuni.jagrlib.Piece
cz.cuni.jagrlib.DefaultRealFunction
cz.cuni.jagrlib.piece.ImageCompare
public class ImageCompare
Raster image comparison.
Nested Class Summary | |
---|---|
protected static class |
ImageCompare.FilterPrecinct
Implemented filter precincts. |
protected static class |
ImageCompare.MetricType
Implemented metric types. |
Field Summary | |
---|---|
protected static java.lang.String |
CATEGORY
Object category. |
protected int[][] |
filter
Filter matrix (odd size .. 2*iRadius+1). |
static java.lang.String |
FILTER_PRECINCT
|
static java.lang.String |
FILTER_RADIUS
|
protected int |
filterSum
Total sum of filter values. |
protected int |
filterSumHalf
Accelerator (filterSum / 2). |
protected int |
iRadius
Integer radius of the filter support. |
protected ImageCompare.MetricType |
metric
Actual metric type. |
static java.lang.String |
METRIC_TYPE
|
protected int[] |
pixel
Support pixel array (for filterRGB(cz.cuni.jagrlib.iface.RasterGraphics, int, int, int[]) routines). |
protected double[] |
pixeld
Support pixel array (for filterRGB(cz.cuni.jagrlib.iface.RasterGraphics, int, int, int[]) routines). |
protected ImageCompare.FilterPrecinct |
precinct
Actual filter precinct. |
protected boolean |
psychovisual
Psychovisual color-component factors are used? |
static java.lang.String |
PSYCHOVISUAL
|
protected double |
radius
Filter support radius in pixels. |
static RegPiece |
reg
Static registration instance for this class. |
protected static java.lang.String |
TEMPLATE_NAME
Object template identifier. |
Fields inherited from class cz.cuni.jagrlib.DefaultRealFunction |
---|
EPSILON |
Fields inherited from class cz.cuni.jagrlib.Piece |
---|
channels, info, pl, plugs, TEMPLATE_TYPE, userBreak |
Fields inherited from interface cz.cuni.jagrlib.iface.RealFunction |
---|
AMPLITUDE, FREQUENCY, FREQUENCY_X, FREQUENCY_Y, VARIATION |
Fields inherited from interface cz.cuni.jagrlib.iface.Property |
---|
LOGGING, STATISTICS, TEXT_DESCRIPTION |
Constructor Summary | |
---|---|
ImageCompare()
|
Method Summary | |
---|---|
double |
f(double x)
Compute the mapping: int -> double . |
double |
f(int x)
Compute the mapping: int -> double . |
protected void |
filterRGB(RasterGraphics im,
int i,
int j,
double[] pix)
Filters the given image pixel using prepared convolution filter.. |
protected void |
filterRGB(RasterGraphics im,
int i,
int j,
int[] pix)
Filters the given image pixel using prepared convolution filter.. |
java.lang.Object |
get(java.lang.String key)
Gets the given property. |
protected void |
initFilter()
Initialize (prepare) filter operation. |
void |
set(java.lang.String key,
java.lang.Object value)
Sets the given property. |
static int |
setTemplate(Template t,
int ord)
General-purpose registration routine. |
Methods inherited from class cz.cuni.jagrlib.DefaultRealFunction |
---|
df, df, df, df, f, f, f, f, f, f, getDomain, getDomain |
Methods inherited from class cz.cuni.jagrlib.Piece |
---|
className, connect, findPlug, findPlug, getInfo, getInterface, getInterface, getPlug, getReg, init, isCompatible, isCompatible, isConnected, logError, logWarning, myInterface, newInputPlug, newOptOutputPlug, newOutputPlug, newPlug, noTemplates, propBegin, propBounds, propDefault, propEnd, propEnum, propManipulator, propManipulator, setProgressListener, setRegStrings, setTemplateDynamic, stop |
Methods inherited from class cz.cuni.jagrlib.DefaultProperty |
---|
booleanProperty, booleanProperty, colorDoubleProperty, colorProperty, commit, doubleProperty, doubleProperty, doubleProperty, enumProperty, floatProperty, floatProperty, floatProperty, intProperty, intProperty, intProperty, longProperty, longProperty, longProperty, set, stringProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface cz.cuni.jagrlib.iface.Property |
---|
commit |
Field Detail |
---|
protected ImageCompare.FilterPrecinct precinct
protected double radius
protected ImageCompare.MetricType metric
protected boolean psychovisual
protected int iRadius
protected int[][] filter
protected int filterSum
protected int filterSumHalf
protected int[] pixel
filterRGB(cz.cuni.jagrlib.iface.RasterGraphics, int, int, int[])
routines).
protected double[] pixeld
filterRGB(cz.cuni.jagrlib.iface.RasterGraphics, int, int, int[])
routines).
public static final java.lang.String FILTER_PRECINCT
public static final java.lang.String FILTER_RADIUS
public static final java.lang.String METRIC_TYPE
public static final java.lang.String PSYCHOVISUAL
protected static final java.lang.String TEMPLATE_NAME
protected static final java.lang.String CATEGORY
public static final RegPiece reg
Constructor Detail |
---|
public ImageCompare()
Method Detail |
---|
protected void initFilter()
protected void filterRGB(RasterGraphics im, int i, int j, int[] pix)
protected void filterRGB(RasterGraphics im, int i, int j, double[] pix)
public double f(int x)
int -> double
.
f
in interface RealFunction
f
in class DefaultRealFunction
public double f(double x)
int -> double
.
f
in interface RealFunction
f
in class DefaultRealFunction
public void set(java.lang.String key, java.lang.Object value)
set
in interface Property
set
in class DefaultProperty
key
- Key string.value
- The new value.Property.commit()
public java.lang.Object get(java.lang.String key)
get
in interface Property
get
in class DefaultProperty
key
- Key string.
null
.public static int setTemplate(Template t, int ord)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |