public class IqmOpStatistics extends AbstractOperator
isCancelable, name, parentTask, pcs, type
Constructor and Description |
---|
IqmOpStatistics() |
Modifier and Type | Method and Description |
---|---|
private TableModel |
addModelColumns(TableModel model,
int binary,
int order1,
int order2)
Adds the column names to the table model
|
private double[][] |
calcMinMax(javax.media.jai.PlanarImage pi,
boolean backgroundIsIncluded,
javax.media.jai.Histogram histo)
Calculate min and max values for each band of an image.
|
private void |
calculateBinaryFeatures(Vector dataRow,
int b,
javax.media.jai.Histogram histo,
boolean backgroundIsIncluded)
Calculates the binary features
|
private void |
calculateCommonFeatures(Vector dataRow,
int b,
String fileName,
String imgName,
String strBack,
int width,
int height)
Add Features that are always used
|
private void |
calculateFirstOrderFeatures(Vector dataRow,
int b,
double[][] minMax,
javax.media.jai.Histogram histo,
double imgTypeGreyMax,
int back,
javax.media.jai.PlanarImage pi)
Calculates the first order features
|
private void |
calculateSecondOrderFeatures(Vector dataRow,
int b,
CoocurrenceMatrix coocurrenceMatrix,
String strDir,
int dist,
int range)
Calculate second order features
|
private javax.media.jai.Histogram |
createHistogram(javax.media.jai.PlanarImage pi,
boolean backgroundIsIncluded,
double typeGreyMax)
Create image histogram
|
private TableModel |
createModel(String imgName)
Initializes the table model and adds the necessary columns
|
String |
getName() |
OperatorType |
getType() |
private javax.media.jai.PlanarImage |
rescaleImage(javax.media.jai.PlanarImage pi,
double greyMatrixMax,
double imgTypeGreyMax)
Reduce image gray values
|
IResult |
run(IWorkPackage wp) |
addProgressListener, fireProgressChanged, getParentTask, getPcs, getProgressListeners, initializeOperator, isCancelable, isCancelled, setCancelable, setParentTask
public IResult run(IWorkPackage wp)
run
in interface IOperator
run
in class AbstractOperator
private TableModel createModel(String imgName)
private void calculateCommonFeatures(Vector dataRow, int b, String fileName, String imgName, String strBack, int width, int height)
dataRow
- b
- fileName
- imgName
- strBack
- width
- height
- private javax.media.jai.PlanarImage rescaleImage(javax.media.jai.PlanarImage pi, double greyMatrixMax, double imgTypeGreyMax)
pi
- greyMatrixMax
- imgTypeGreyMax
- private void calculateBinaryFeatures(Vector dataRow, int b, javax.media.jai.Histogram histo, boolean backgroundIsIncluded)
dataRow
- b
- histo
- backgroundIsIncluded
- private void calculateFirstOrderFeatures(Vector dataRow, int b, double[][] minMax, javax.media.jai.Histogram histo, double imgTypeGreyMax, int back, javax.media.jai.PlanarImage pi)
dataRow
- b
- minMax
- histo
- imgTypeGreyMax
- back
- pi
- private void calculateSecondOrderFeatures(Vector dataRow, int b, CoocurrenceMatrix coocurrenceMatrix, String strDir, int dist, int range)
dataRow
- b
- coocurrenceMatrix
- strDir
- dist
- range
- private TableModel addModelColumns(TableModel model, int binary, int order1, int order2)
model
- private double[][] calcMinMax(javax.media.jai.PlanarImage pi, boolean backgroundIsIncluded, javax.media.jai.Histogram histo)
pi
- backgroundIsIncluded
- histo
- private javax.media.jai.Histogram createHistogram(javax.media.jai.PlanarImage pi, boolean backgroundIsIncluded, double typeGreyMax)
pi
- backgroundIsIncluded
- typeGreyMax
- public String getName()
getName
in interface IOperator
getName
in class AbstractOperator
public OperatorType getType()
getType
in interface IOperator
getType
in class AbstractOperator
Copyright © 2009–2016 Helmut Ahammer, Philipp Kainz. All rights reserved.