@ALDAOperator(genericExecutionMode=ALL, level=STANDARD) public class ImageStatistics extends MTBOperator
MTBImage
.
Up to three image dimensions, i.e. x, y and z, are considered. The measures are common statistical measures. Uniformity and skewness are calculated according to "Gonzalez/Woods, Digital Image Processing using Matlab, chap. 11, page 466"
Modifier and Type | Class and Description |
---|---|
static class |
ImageStatistics.StatValue
Statistical values that could be calculated.
|
Modifier and Type | Field and Description |
---|---|
private ImageStatistics.StatValue |
calcMode |
private MTBImage |
inputImage |
private double |
resultValue |
Constructor and Description |
---|
ImageStatistics()
Default constructor.
|
ImageStatistics(MTBImage inimg,
ImageStatistics.StatValue mode)
Constructor with image argument.
|
Modifier and Type | Method and Description |
---|---|
private MTBImageHistogram |
getNormalizedImageHisto()
Extracts the normalized image histogram with 256 bins.
|
double |
getResultValue()
Get result value;
|
protected void |
operate() |
readResolve
addOperatorExecutionProgressEventListener, addParameter, addParameter, addParameterUnconditioned, fieldContained, fireOperatorExecutionProgressEvent, getALDPortHashAccessKey, getConstructionMode, getDocumentation, getHidingMode, getInactiveParameterNames, getInInoutNames, getInInoutNames, getInNames, getInOutNames, getMissingRequiredInputs, getName, getNumParameters, getOutInoutNames, getOutNames, getParameter, getParameterDescriptor, getParameterDescriptorUnconditioned, getParameterNames, getParameterUnconditioned, getSupplementalNames, getVerbose, getVersion, handleOperatorExecutionProgressEvent, hasInOutParameters, hasParameter, isAnnotatedParameter, isConfigured, print, print, print, printInterface, printInterface, readHistory, reinitializeParameterDescriptors, removeOperatorExecutionProgressEventListener, removeParameter, runOp, runOp, runOp, setConstructionMode, setConstructionMode, setConstructionMode, setHidingMode, setName, setParameter, setParameterUnconditioned, setVerbose, toStringVerbose, unconfiguredItems, validate, validateCustom, validateGeneric, writeHistory, writeHistory, writeHistory
@Parameter(label="Input image", required=true, direction=IN, dataIOOrder=0, mode=STANDARD, description="Input image.") private MTBImage inputImage
@Parameter(label="Value to be calculated.", required=true, direction=IN, dataIOOrder=1, mode=STANDARD, description="Desired statistical value.") private ImageStatistics.StatValue calcMode
@Parameter(label="Result value", direction=OUT, mode=STANDARD, description="Result value.") private double resultValue
public ImageStatistics() throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
public ImageStatistics(MTBImage inimg, ImageStatistics.StatValue mode) throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
inimg
- Image to process.de.unihalle.informatik.Alida.exceptions.ALDOperatorException
public double getResultValue()
protected void operate() throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
operate
in class de.unihalle.informatik.Alida.operator.ALDOperator
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
private MTBImageHistogram getNormalizedImageHisto()
Copyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.