public class IqmOpNexelScan extends AbstractOperator
| Modifier and Type | Field and Description |
|---|---|
private double |
typeGrayMax |
isCancelable, name, parentTask, pcs, type| Constructor and Description |
|---|
IqmOpNexelScan() |
| Modifier and Type | Method and Description |
|---|---|
private javax.media.jai.PlanarImage |
addBorder(javax.media.jai.PlanarImage pi,
int kernelSize,
int borderMethod,
double[] borderValue)
Adds a border to the PlanarImage.
|
private double |
calcAlikeness(double[] kernel,
double greyTolerance)
calculates Alikeness for kernel-array.
|
private double |
calcEnergy(double[] kernel)
calculates statistic energy for kernel-array.
|
private double |
calcEntropy(double[] kernel)
calculates statistic entropy for kernel-array.
|
private double |
calcKurtosis(double[] kernel)
calculates statistic Kurtosis for kernel-array.
|
private double |
calcMean(double[] kernel)
Calculates statistic mean for kernel-array.
|
private double |
calcMom3(double[] kernel)
Calculates statistic moment3 for kernel-array.
|
private double |
calcMom4(double[] kernel)
Calculates statistic moment4 for kernel-array.
|
private double |
calcRange(double[] kernel)
Calculates statistic range for kernel-array.
|
private double |
calcSkewness(double[] kernel)
calculates statistic Skewness for kernel-array.
|
private double |
calcStandardDeviation(double[] kernel)
Calculates statistic standard deviation for kernel-array.
|
private double |
calcVariance(double[] kernel)
Calculates statistic variance for kernel-array.
|
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.
|
IResult |
run(IWorkPackage wp)
This method contains the entire logic (algorithm) of the operator.
|
private void |
scanImage(WritableRaster wr,
javax.media.jai.PlanarImage piWithBorder,
int kernelSize,
int method,
int greyTolerance)
Calculates different parameters based on arrays.
|
private void |
scanImageWithROI(WritableRaster wr,
javax.media.jai.PlanarImage piWithBorder,
int kernelSize,
int method)
Calculates different parameters based on JAI API.
|
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 datapublic 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 AbstractOperatorOperatorTypeprivate javax.media.jai.PlanarImage addBorder(javax.media.jai.PlanarImage pi,
int kernelSize,
int borderMethod,
double[] borderValue)
pi - kernelSize - borderMethod - borderValue - private void scanImageWithROI(WritableRaster wr, javax.media.jai.PlanarImage piWithBorder, int kernelSize, int method)
wr - piWithBorder - kernelSize - statMethod - private double calcRange(double[] kernel)
kernel - private double calcMean(double[] kernel)
kernel - private double calcStandardDeviation(double[] kernel)
kernel - private double calcVariance(double[] kernel)
kernel - private double calcMom3(double[] kernel)
kernel - private double calcMom4(double[] kernel)
kernel - private double calcEnergy(double[] kernel)
kernel - private double calcEntropy(double[] kernel)
kernel - private double calcSkewness(double[] kernel)
kernel - private double calcKurtosis(double[] kernel)
kernel - private double calcAlikeness(double[] kernel,
double greyTolerance)
kernel - greyTolerance - private void scanImage(WritableRaster wr, javax.media.jai.PlanarImage piWithBorder, int kernelSize, int method, int greyTolerance)
wr - piWithBorder - kernelSize - statMethod - method - greyTolerance - Copyright © 2009–2017 Helmut Ahammer, Philipp Kainz. All rights reserved.