Class ForSpecificAxis<T extends org.anchoranalysis.feature.input.FeatureInputEnergy>
Object
org.anchoranalysis.bean.AnchorBean<B>
org.anchoranalysis.bean.initializable.InitializableBean<org.anchoranalysis.feature.bean.Feature<T>,org.anchoranalysis.feature.initialization.FeatureInitialization>
org.anchoranalysis.feature.bean.Feature<T>
org.anchoranalysis.plugin.image.feature.bean.dimensions.FromDimensionsBase<T>
org.anchoranalysis.plugin.image.feature.bean.dimensions.ForSpecificAxis<T>
- Type Parameters:
T- feature-input-type
- Direct Known Subclasses:
Extent,VoxelPhysicalSize
public abstract class ForSpecificAxis<T extends org.anchoranalysis.feature.input.FeatureInputEnergy> extends FromDimensionsBase<T>
Dimensions-calculation for one specific axis only.
-
Constructor Summary
Constructors Constructor Description ForSpecificAxis() -
Method Summary
Modifier and Type Method Description protected abstract doublecalculateForAxis(org.anchoranalysis.image.core.dimensions.Dimensions dimensions, org.anchoranalysis.spatial.axis.Axis axis)Calculates a feature value for a specific axis of the given dimensions.protected doublecalculateFromDimensions(org.anchoranalysis.image.core.dimensions.Dimensions dim)Calculates a feature value from the given dimensions.StringdescribeParameters()StringgetAxis()The axis to perform the calculation on.voidsetAxis(String axis)The 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, isInitialized
-
Constructor Details
-
ForSpecificAxis
public ForSpecificAxis()
-
-
Method Details
-
calculateFromDimensions
protected double calculateFromDimensions(org.anchoranalysis.image.core.dimensions.Dimensions dim) throws org.anchoranalysis.feature.calculate.FeatureCalculationExceptionDescription copied from class:FromDimensionsBaseCalculates a feature value from the given dimensions.- Specified by:
calculateFromDimensionsin classFromDimensionsBase<T extends org.anchoranalysis.feature.input.FeatureInputEnergy>- Parameters:
dim- theDimensionsto calculate from- Returns:
- the calculated feature value
- Throws:
org.anchoranalysis.feature.calculate.FeatureCalculationException- if the calculation fails
-
calculateForAxis
protected abstract double calculateForAxis(org.anchoranalysis.image.core.dimensions.Dimensions dimensions, org.anchoranalysis.spatial.axis.Axis axis) throws org.anchoranalysis.feature.calculate.FeatureCalculationExceptionCalculates 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:
org.anchoranalysis.feature.calculate.FeatureCalculationException- if the calculation fails
-
describeParameters
- Overrides:
describeParametersin classorg.anchoranalysis.feature.bean.Feature<T extends org.anchoranalysis.feature.input.FeatureInputEnergy>
-
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".
-