Class VoxelPhysicalSize<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>
org.anchoranalysis.plugin.image.feature.bean.dimensions.VoxelPhysicalSize<T>
- Type Parameters:
T- feature-input-type
public class VoxelPhysicalSize<T extends org.anchoranalysis.feature.input.FeatureInputEnergy> extends ForSpecificAxis<T>
The physical size of a pixel in a specific dimension.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description VoxelPhysicalSize() -
Method Summary
Modifier and Type Method Description protected 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.booleanisAcceptMissingResolution()Whether to throw an exception (if true) if image-resolution is missing, or returnDouble.Nan(if false).voidsetAcceptMissingResolution(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, setAxisMethods 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
-
VoxelPhysicalSize
public VoxelPhysicalSize()
-
-
Method Details
-
calculateForAxis
protected double calculateForAxis(org.anchoranalysis.image.core.dimensions.Dimensions dimensions, org.anchoranalysis.spatial.axis.Axis axis) throws org.anchoranalysis.feature.calculate.FeatureCalculationExceptionDescription copied from class:ForSpecificAxisCalculates a feature value for a specific axis of the given dimensions.- Specified by:
calculateForAxisin classForSpecificAxis<T extends org.anchoranalysis.feature.input.FeatureInputEnergy>- 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
-
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).
-