|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.unihalle.informatik.Alida.operator.ALDOperator
de.unihalle.informatik.MiToBo.core.operator.MTBOperator
de.unihalle.informatik.MiToBo.segmentation.basics.CalcSegmentationStatistics
@ALDAOperator(genericExecutionMode=ALL) public class CalcSegmentationStatistics
Operator for doing statistical calculations on segmentations of images.
The segmentations and input images processed by this operator can have either 2 or 3 dimensions. In addition, multiple channels are supported. In case of time series images being handed over to this operator only the image for the first point in time is processed.
Note: It is assumed that the given segmentation covers at least the domain of the input image. There are no checks performed if this is really true!
Nested Class Summary | |
---|---|
static class |
CalcSegmentationStatistics.CalcTargets
Statistical numbers provided by this class. |
Nested classes/interfaces inherited from class de.unihalle.informatik.Alida.operator.ALDOperator |
---|
de.unihalle.informatik.Alida.operator.ALDOperator.HidingMode |
Field Summary |
---|
Fields inherited from class de.unihalle.informatik.Alida.operator.ALDOperator |
---|
completeDAG, name, operatorExecutionEventlistenerList, portHashAccess, verbose, versionProvider |
Constructor Summary | |
---|---|
CalcSegmentationStatistics()
Default constructor without arguments. |
|
CalcSegmentationStatistics(MTBImage im)
Default constructor. |
|
CalcSegmentationStatistics(MTBImage im,
MTBSegmentationInterface seg)
Default constructor. |
|
CalcSegmentationStatistics(MTBImage im,
MTBSegmentationInterface seg,
Vector<CalcSegmentationStatistics.CalcTargets> targets)
Default constructor. |
Method Summary | |
---|---|
double[] |
getRegionMeans()
Get average intensity array indexed with class labels for first channel. |
double[][] |
getRegionMeansAllChannels()
Get average intensity array indexed with class labels for all channels. |
int[] |
getRegionSizes()
Get array of region areas indexed with class labels for first channel. |
double[] |
getRegionVars()
Get intensity variance array indexed with class labels for first channel. |
double[][] |
getRegionVarsAllChannels()
Get intensity variance array indexed with class labels for all channels. |
protected void |
operate()
|
void |
setInputImage(MTBImage img)
Set the input image. |
void |
setSegmentation(MTBSegmentationInterface seg)
Specifiy image segmentation. |
void |
setTargets(Vector<CalcSegmentationStatistics.CalcTargets> targets)
Specify targets to calculate. |
Methods inherited from class de.unihalle.informatik.MiToBo.core.operator.MTBOperator |
---|
readResolve |
Methods inherited from class de.unihalle.informatik.Alida.operator.ALDOperator |
---|
addOperatorExecutionProgressEventListener, fieldContained, fireOperatorExecutionProgressEvent, getALDPortHashAccessKey, getConstructionMode, getHidingMode, getInInoutNames, getInInoutNames, getInNames, getInOutNames, getMissingRequiredInputs, getName, getNumParameters, getOutInoutNames, getOutNames, getParameter, getParameterDescriptor, getParameterNames, getSupplementalNames, getVerbose, getVersion, handleOperatorExecutionProgressEvent, isConfigured, print, print, print, printInterface, printInterface, readHistory, reinitializeParameterDescriptors, removeOperatorExecutionProgressEventListener, runOp, runOp, runOp, setConstructionMode, setHidingMode, setName, setParameter, setVerbose, toStringVerbose, unconfiguredItems, validate, validateCustom, validateGeneric, writeHistory, writeHistory, writeHistory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CalcSegmentationStatistics() throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
Note, there are parameters that need to be set prior to executing the operator. Don't call runOp() before doing that!
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
public CalcSegmentationStatistics(MTBImage im) throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
im
- Image to work on.
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
public CalcSegmentationStatistics(MTBImage im, MTBSegmentationInterface seg) throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
im
- Image to work on.seg
- Segmentation.
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
public CalcSegmentationStatistics(MTBImage im, MTBSegmentationInterface seg, Vector<CalcSegmentationStatistics.CalcTargets> targets) throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
im
- Image to work on.seg
- Image segmentation.targets
- List of statistical numbers to calculate per region.
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
Method Detail |
---|
public void setInputImage(MTBImage img)
img
- Image to process.public void setSegmentation(MTBSegmentationInterface seg)
public void setTargets(Vector<CalcSegmentationStatistics.CalcTargets> targets)
public int[] getRegionSizes()
public double[] getRegionMeans()
public double[][] getRegionMeansAllChannels()
The first dimension of the array covers the channel.
public double[] getRegionVars()
The first dimension of the array covers the channel.
public double[][] getRegionVarsAllChannels()
The first dimension of the array covers the channel.
protected void operate()
operate
in class de.unihalle.informatik.Alida.operator.ALDOperator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |