Class ForSpecificAxis<T extends FeatureInputEnergy>
Object
AnchorBean<Feature<T>>
InitializableBean<Feature<T>,FeatureInitialization>
Feature<T>
FromDimensionsBase<T>
ForSpecificAxis<T>
- Type Parameters:
T
- feature-input-type
- Direct Known Subclasses:
Extent
,VoxelPhysicalSize
Dimensions-calculation for one specific axis only.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract double
calculateForAxis
(Dimensions dimensions, Axis axis) Calculates a feature value for a specific axis of the given dimensions.protected double
Calculates a feature value from the given dimensions.A human-readable description of the parameterization of the bean.getAxis()
The axis to perform the calculation on.void
The axis to perform the calculation on.Methods inherited from class org.anchoranalysis.plugin.image.feature.bean.dimensions.FromDimensionsBase
calculate, inputType
Methods inherited from class org.anchoranalysis.feature.bean.Feature
assignTo, beforeCalc, calculateCheckInitialized, castAs, createListChildFeatures, describeBean, descriptionLong, duplicateChangeName, getCustomName, getFriendlyName, onInitialization, setCustomName, toString
Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized
Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise
-
Constructor Details
-
ForSpecificAxis
public ForSpecificAxis()
-
-
Method Details
-
calculateFromDimensions
Description copied from class:FromDimensionsBase
Calculates a feature value from the given dimensions.- Specified by:
calculateFromDimensions
in classFromDimensionsBase<T extends FeatureInputEnergy>
- Parameters:
dim
- theDimensions
to calculate from- Returns:
- the calculated feature value
- Throws:
FeatureCalculationException
- if the calculation fails
-
calculateForAxis
protected abstract double calculateForAxis(Dimensions dimensions, Axis axis) throws FeatureCalculationException Calculates a feature value for a specific axis of the given dimensions.- Parameters:
dimensions
- theDimensions
to calculate fromaxis
- theAxis
to perform the calculation on- Returns:
- the calculated feature value
- Throws:
FeatureCalculationException
- if the calculation fails
-
describeParameters
Description copied from class:Feature
A human-readable description of the parameterization of the bean.- Overrides:
describeParameters
in classFeature<T extends FeatureInputEnergy>
- Returns:
- the description.
-
getAxis
The axis to perform the calculation on. Valid values are "x", "y", or "z". -
setAxis
The axis to perform the calculation on. Valid values are "x", "y", or "z".
-