public abstract class ImageMomentsBase extends FeatureSingleObject
If there are too few voxels, then a constant value is returned.
Constructor and Description |
---|
ImageMomentsBase() |
Modifier and Type | Method and Description |
---|---|
double |
calculate(FeatureCalculationInput<FeatureInputSingleObject> input)
Calculates a value for some input.
|
protected abstract double |
calculateFromAllMoments(ImageMoments moments) |
protected abstract String |
errorMessageIfTooFewPixels() |
double |
getValueIfTooFewVoxels()
A value to return if there are too few voxels (less than
MIN_NUM_VOXELS to calculate
moments |
boolean |
isSuppressZ()
If true co-voariance is suprpessed in z-dimension
|
void |
setSuppressZ(boolean suppressZ)
If true co-voariance is suprpessed in z-dimension
|
void |
setValueIfTooFewVoxels(double valueIfTooFewVoxels)
A value to return if there are too few voxels (less than
MIN_NUM_VOXELS to calculate
moments |
inputType
assignTo, beforeCalc, calculateCheckInitialized, castAs, createListChildFeatures, describeBean, describeParameters, descriptionLong, duplicateChangeName, getCustomName, getFriendlyName, onInitialization, setCustomName, toString
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized
checkMisconfigured, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise
public double calculate(FeatureCalculationInput<FeatureInputSingleObject> input) throws FeatureCalculationException
Feature
calculate
in class Feature<FeatureInputSingleObject>
input
- the input to the calculation.FeatureCalculationException
- if the calculation cannot successfully complete.protected abstract double calculateFromAllMoments(ImageMoments moments) throws FeatureCalculationException
FeatureCalculationException
protected abstract String errorMessageIfTooFewPixels() throws FeatureCalculationException
FeatureCalculationException
public boolean isSuppressZ()
public void setSuppressZ(boolean suppressZ)
public double getValueIfTooFewVoxels()
MIN_NUM_VOXELS
to calculate
moments
A warning message is also written to the log.
public void setValueIfTooFewVoxels(double valueIfTooFewVoxels)
MIN_NUM_VOXELS
to calculate
moments
A warning message is also written to the log.
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.