class CoocurrenceMatrix extends Object
Modifier and Type | Field and Description |
---|---|
private boolean |
backgroundIsIncluded |
private float[][][] |
coMatrix |
private float[] |
count |
private int |
dir |
private int |
dist |
private int |
height |
private boolean |
normalize |
private int |
numBands |
private int |
numGreyLevels |
private javax.media.jai.PlanarImage |
pi |
private boolean |
symmetric |
private int |
width |
Constructor and Description |
---|
CoocurrenceMatrix(javax.media.jai.PlanarImage pi,
int dist,
int numGreyLevels,
boolean backgroundIsIncluded,
int numBands,
int dir) |
Modifier and Type | Method and Description |
---|---|
private void |
calcCoMatValue(Raster ri,
int b,
int grayLevel_i,
Point p)
Helper method for calculating a specific value
|
void |
calculateMatrix()
Performs the actual matrix calculation
|
float[][][] |
getCoMatrix() |
private void |
normalizeMatrix()
Normalizes the matrix
|
private boolean |
pointIsInImage(Point p)
Determines whether a point lies within an image
|
private final javax.media.jai.PlanarImage pi
private final int dist
private final int numGreyLevels
private final boolean backgroundIsIncluded
private final int numBands
private final int dir
private boolean normalize
private float[] count
private int width
private int height
private float[][][] coMatrix
private boolean symmetric
public CoocurrenceMatrix(javax.media.jai.PlanarImage pi, int dist, int numGreyLevels, boolean backgroundIsIncluded, int numBands, int dir)
public void calculateMatrix()
private void calcCoMatValue(Raster ri, int b, int grayLevel_i, Point p)
ri
- b
- grayLevel_i
- p
- private boolean pointIsInImage(Point p)
p
- private void normalizeMatrix()
public float[][][] getCoMatrix()
Copyright © 2009–2016 Helmut Ahammer, Philipp Kainz. All rights reserved.