Class MinimumXYResolution

Object
AnchorBean<ScaleCalculator>
InitializableBean<ScaleCalculator, ImageInitialization>
ImageBean<ScaleCalculator>
ScaleCalculator
MinimumXYResolution

public class MinimumXYResolution extends ScaleCalculator
Calculates a scale factor to ensure a minimum XY resolution is achieved.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    ScaleFactor
    calculate(Optional<Dimensions> dimensionsToBeScaled, Optional<ImageSizeSuggestion> suggestedSize)
     
    double
    The minimum resolution to achieve in meters.
    void
    setMinResolution(double minResolution)
    The minimum resolution to achieve in meters.

    Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean

    getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization

    Methods inherited from class org.anchoranalysis.bean.AnchorBean

    checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • MinimumXYResolution

      public MinimumXYResolution()
  • Method Details

    • calculate

      public ScaleFactor calculate(Optional<Dimensions> dimensionsToBeScaled, Optional<ImageSizeSuggestion> suggestedSize) throws OperationFailedException
      Specified by:
      calculate in class ScaleCalculator
      Throws:
      OperationFailedException
    • getMinResolution

      public double getMinResolution()
      The minimum resolution to achieve in meters.
    • setMinResolution

      public void setMinResolution(double minResolution)
      The minimum resolution to achieve in meters.