|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectanalysis.PixelPairFeatureAnalyzer
public class PixelPairFeatureAnalyzer
This feature analyzer assumes that the pairs exist in some sort of spatial structure, with the notion of horizontally and vertically adjacent pairs. Thus, specification of that structure's width and height is required.
| Field Summary | |
|---|---|
private java.util.ArrayList<PixelPairFeatures> |
features
|
private java.util.ArrayList<DEPixelPair> |
pairs
|
private int |
pairStructureHeight
|
private int |
pairStructureWidth
|
static double |
w1
|
static double |
w2
|
| Constructor Summary | |
|---|---|
PixelPairFeatureAnalyzer(java.util.ArrayList<DEPixelPair> pairs,
int pairStructureHeight,
int pairStructureWidth)
|
|
| Method Summary | |
|---|---|
private void |
analyzeFeatures(PixelPairFeatures feature)
Sets certain features of the specified PixelPairFeatures object using information from the contained DEPixelPair and its surroundings. |
private int |
getAvg(int row,
int col)
Retrieves the average value of the PixelPair at the specified row / column. |
java.util.ArrayList<PixelPairFeatures> |
getFeatures()
|
private void |
setAvgSquareAverageDiffs(PixelPairFeatures feature)
Computes and sets the avgSquareAdjacentAverageDiffs for the DEPixelPair in question. |
private void |
setWeightedCombination1(PixelPairFeatures feature)
|
private int |
squareDiff(DEPixelPair pair,
int row,
int col)
Specifies one PixelPair by pair value, and the other by row/col value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final double w1
public static final double w2
private java.util.ArrayList<DEPixelPair> pairs
private java.util.ArrayList<PixelPairFeatures> features
private int pairStructureHeight
private int pairStructureWidth
| Constructor Detail |
|---|
public PixelPairFeatureAnalyzer(java.util.ArrayList<DEPixelPair> pairs,
int pairStructureHeight,
int pairStructureWidth)
| Method Detail |
|---|
private void analyzeFeatures(PixelPairFeatures feature)
feature - private void setAvgSquareAverageDiffs(PixelPairFeatures feature)
feature - private void setWeightedCombination1(PixelPairFeatures feature)
private int squareDiff(DEPixelPair pair,
int row,
int col)
pair - row - col -
private int getAvg(int row,
int col)
row - col -
public java.util.ArrayList<PixelPairFeatures> getFeatures()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||