public class ConnCompProperties
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
int |
bboxHeight |
double |
bboxRatio |
int |
bboxWidth |
int |
maxX |
int |
maxY |
double |
meanX |
double |
meanY |
int |
minX |
int |
minY |
java.util.ArrayList<java.awt.Point> |
pixelCoordinates |
int |
size |
double |
x_1 |
double |
y_1 |
| Constructor and Description |
|---|
ConnCompProperties()
Class constructor, empty object with information to be filled.
|
ConnCompProperties(java.util.ArrayList<java.awt.Point> pixCoordinates)
Class constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
calculateAllProperties() |
void |
calculateBoundingBox()
Calculates the bounding box of the connected component and stores its corners in the @minX, @minY, @maxX, @maxY properties.
|
void |
calculateMoments_0()
Calculate the zero order moments of the connected component (the geometrical centroid - mean values of x,y coordinates)
|
void |
calculateMoments_1(double[] image,
int width)
Calculate the first order moments of the connected component with respect to an intensity image.
|
public int size
public double meanX
public double meanY
public double x_1
public double y_1
public int minX
public int minY
public int maxX
public int maxY
public int bboxWidth
public int bboxHeight
public double bboxRatio
public java.util.ArrayList<java.awt.Point> pixelCoordinates
public ConnCompProperties()
public ConnCompProperties(java.util.ArrayList<java.awt.Point> pixCoordinates)
pixCoordinates - a list of all the coordinate pairs (x,y)public void calculateMoments_0()
public void calculateMoments_1(double[] image,
int width)
image - the intensity image from where the connected component has been extractedpublic void calculateBoundingBox()
public void calculateAllProperties()