public class ConnCompProperties
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
int |
compSize |
int |
maxX |
int |
maxY |
double |
meanX |
double |
meanY |
int |
minX |
int |
minY |
java.util.ArrayList<java.awt.Point> |
pixelCoordinates |
| Constructor and Description |
|---|
ConnCompProperties(int nPixels,
double Xmean,
double Ymean,
int Xmin,
int Ymin,
int Xmax,
int Ymax,
java.util.ArrayList<java.awt.Point> pixCoordinates)
Class constructor.
|
public int compSize
public double meanX
public double meanY
public int minX
public int minY
public int maxX
public int maxY
public java.util.ArrayList<java.awt.Point> pixelCoordinates
public ConnCompProperties(int nPixels,
double Xmean,
double Ymean,
int Xmin,
int Ymin,
int Xmax,
int Ymax,
java.util.ArrayList<java.awt.Point> pixCoordinates)
nPixels - the size of the CC in pixels (equal to the area)Xmean - the x coordinate of the geometrical centroid of the CC (mean value of all x coordinates)Ymean - the y coordinate of the geometrical centroid of the CC (mean value of all y coordinates)Xmin - the minimum x coordinateYmin - the minimum y coordinateXmax - the maximum x coordinateYmax - the maximum y coordinatepixCoordinates - a list of all the coordinate pairs (x,y)