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()
Gets the unique name of the
IOperator by returning the
"GlobalName" element from the resources[][] of the
associated IOperatorDescriptor. |
OperatorType |
getType()
Gets the type of the operator listed in an enumeration.
|
private javax.media.jai.PlanarImage |
rescaleImage(javax.media.jai.PlanarImage pi,
double greyMatrixMax,
double imgTypeGreyMax)
Reduce image gray values
|
IResult |
run(IWorkPackage wp)
This method contains the entire logic (algorithm) of the operator.
|
addProgressListener, fireProgressChanged, getParentTask, getPcs, getProgressListeners, initializeOperator, isCancelable, isCancelled, setCancelable, setParentTaskpublic IResult run(IWorkPackage wp)
IOperatorIOperator does not declare any class members, since the execution
of this code must be thread-safe.run in interface IOperatorrun in class AbstractOperatorwp - the parameters and sourcesIResult containing all processed dataprivate 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()
IOperatorIOperator by returning the
"GlobalName" element from the resources[][] of the
associated IOperatorDescriptor.getName in interface IOperatorgetName in class AbstractOperatorpublic OperatorType getType()
IOperatorgetType in interface IOperatorgetType in class AbstractOperatorOperatorTypeCopyright © 2009–2017 Helmut Ahammer, Philipp Kainz. All rights reserved.