Type Parameters:
T - feature-input-type

public class VoxelPhysicalSize<T extends FeatureInputEnergy> extends ForSpecificAxis<T>
The physical size of a pixel in a specific dimension.
Author:
Owen Feehan
  • 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 class ForSpecificAxis<T extends FeatureInputEnergy>
      Parameters:
      dimensions - the Dimensions to calculate from
      axis - the Axis 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 return Double.Nan (if false).
    • setAcceptMissingResolution

      public void setAcceptMissingResolution(boolean acceptMissingResolution)
      Whether to throw an exception (if true) if image-resolution is missing, or return Double.Nan (if false).