bitmaps
Class PixelPairFeatures

java.lang.Object
  extended by bitmaps.PixelPairFeatures

public class PixelPairFeatures
extends java.lang.Object

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.

Author:
Jonathan L Dautrich Jr.

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

avgSquareAdjacentAverageDiffs

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. Adjacency includes diagonal adjacency. TODO: For now, we're only considering the pairs of pairs including the primary/center pair. TODO: Has morphed into more of a variance from the collective mean of the averages now.


absDistOfAvgFromCenter

private double absDistOfAvgFromCenter
The absolute value of the difference from this pair's average value to the middle of the average values (127.5).


weightedCombination1

private double weightedCombination1
Weighted combination of the avgSquareAdjacentAverageDiffs and absDistOfAvgFromCenter.


row

private int row

col

private int col

pair

private DEPixelPair pair
Constructor Detail

PixelPairFeatures

public PixelPairFeatures(DEPixelPair pair)

PixelPairFeatures

public PixelPairFeatures(DEPixelPair pair,
                         int row,
                         int col)
Includes specification of the row and column denoting the pair's location in some structure.

Parameters:
pair -
row -
col -
Method Detail

getAvgSquareAdjacentAverageDiffs

public double getAvgSquareAdjacentAverageDiffs()

setAvgSquareAdjacentAverageDiffs

public void setAvgSquareAdjacentAverageDiffs(double sumSquareAdjacentAverageDiffs)

getAbsDistOfAvgFromCenter

public double getAbsDistOfAvgFromCenter()

getPixelPair

public DEPixelPair getPixelPair()

getRow

public int getRow()

getCol

public int getCol()

getWeightedCombination1

public double getWeightedCombination1()

setWeightedCombination1

public void setWeightedCombination1(double weightedCombination1)