|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbitmaps.PixelPairFeatures
public class PixelPairFeatures
Maintains a set of feature values (e.g. distance of average from 128) corresponding to a given pixel pair, in addition to retaining a pointer to the pixel pair itself. While some such features are dependent only on the pair itself, others depend on surrounding pairs, and as such must be set explicitly.
| Field Summary | |
|---|---|
private double |
absDistOfAvgFromCenter
The absolute value of the difference from this pair's average value to the middle of the average values (127.5). |
private double |
avgSquareAdjacentAverageDiffs
The average of the square of the differences in the averages of each pair of adjacent pixel pairs in the 9-pair block surrounding and including this pair. |
private int |
col
|
private DEPixelPair |
pair
|
private int |
row
|
private double |
weightedCombination1
Weighted combination of the avgSquareAdjacentAverageDiffs and absDistOfAvgFromCenter. |
| Constructor Summary | |
|---|---|
PixelPairFeatures(DEPixelPair pair)
|
|
PixelPairFeatures(DEPixelPair pair,
int row,
int col)
Includes specification of the row and column denoting the pair's location in some structure. |
|
| Method Summary | |
|---|---|
double |
getAbsDistOfAvgFromCenter()
|
double |
getAvgSquareAdjacentAverageDiffs()
|
int |
getCol()
|
DEPixelPair |
getPixelPair()
|
int |
getRow()
|
double |
getWeightedCombination1()
|
void |
setAvgSquareAdjacentAverageDiffs(double sumSquareAdjacentAverageDiffs)
|
void |
setWeightedCombination1(double weightedCombination1)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private double avgSquareAdjacentAverageDiffs
private double absDistOfAvgFromCenter
private double weightedCombination1
private int row
private int col
private DEPixelPair pair
| Constructor Detail |
|---|
public PixelPairFeatures(DEPixelPair pair)
public PixelPairFeatures(DEPixelPair pair,
int row,
int col)
pair - row - col - | Method Detail |
|---|
public double getAvgSquareAdjacentAverageDiffs()
public void setAvgSquareAdjacentAverageDiffs(double sumSquareAdjacentAverageDiffs)
public double getAbsDistOfAvgFromCenter()
public DEPixelPair getPixelPair()
public int getRow()
public int getCol()
public double getWeightedCombination1()
public void setWeightedCombination1(double weightedCombination1)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||