Class VoxelPhysicalSize<T extends FeatureInputEnergy>
Object
AnchorBean<Feature<T>>
InitializableBean<Feature<T>,FeatureInitialization>
Feature<T>
FromDimensionsBase<T>
ForSpecificAxis<T>
VoxelPhysicalSize<T>
- Type Parameters:
T
- feature-input-type
The physical size of a pixel in a specific dimension.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected double
calculateForAxis
(Dimensions dimensions, Axis axis) Calculates a feature value for a specific axis of the given dimensions.boolean
Whether to throw an exception (if true) if image-resolution is missing, or returnDouble.Nan
(if false).void
setAcceptMissingResolution
(boolean acceptMissingResolution) Whether to throw an exception (if true) if image-resolution is missing, or returnDouble.Nan
(if false).Methods inherited from class org.anchoranalysis.plugin.image.feature.bean.dimensions.ForSpecificAxis
calculateFromDimensions, describeParameters, getAxis, setAxis
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
-
VoxelPhysicalSize
public VoxelPhysicalSize()
-
-
Method Details
-
calculateForAxis
protected double calculateForAxis(Dimensions dimensions, Axis axis) throws FeatureCalculationException Description copied from class:ForSpecificAxis
Calculates a feature value for a specific axis of the given dimensions.- Specified by:
calculateForAxis
in classForSpecificAxis<T extends FeatureInputEnergy>
- Parameters:
dimensions
- theDimensions
to calculate fromaxis
- theAxis
to perform the calculation on- Returns:
- the calculated feature value
- Throws:
FeatureCalculationException
- if the calculation fails
-
isAcceptMissingResolution
public boolean isAcceptMissingResolution()Whether to throw an exception (if true) if image-resolution is missing, or returnDouble.Nan
(if false). -
setAcceptMissingResolution
public void setAcceptMissingResolution(boolean acceptMissingResolution) Whether to throw an exception (if true) if image-resolution is missing, or returnDouble.Nan
(if false).
-