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 doublecalculateForAxis(Dimensions dimensions, Axis axis) Calculates a feature value for a specific axis of the given dimensions.protected doublecalculateFromDimensions(Dimensions dimensions) 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.voidThe axis to perform the calculation on.Methods inherited from class org.anchoranalysis.plugin.image.feature.bean.dimensions.FromDimensionsBase
calculate, inputTypeMethods inherited from class org.anchoranalysis.feature.bean.Feature
assignTo, beforeCalc, calculateCheckInitialized, castAs, createListChildFeatures, describeBean, descriptionLong, duplicateChangeName, getCustomName, getFriendlyName, onInitialization, setCustomName, toStringMethods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitializedMethods 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:FromDimensionsBaseCalculates a feature value from the given dimensions.- Specified by:
calculateFromDimensionsin classFromDimensionsBase<T extends FeatureInputEnergy>- Parameters:
dimensions- theDimensionsto 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- theDimensionsto calculate fromaxis- theAxisto perform the calculation on- Returns:
- the calculated feature value
- Throws:
FeatureCalculationException- if the calculation fails
-
describeParameters
Description copied from class:FeatureA human-readable description of the parameterization of the bean.- Overrides:
describeParametersin 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".
-