Class SizeMapping

Object
org.anchoranalysis.plugin.image.task.size.SizeMapping

public class SizeMapping
extends Object
Maps a Path to a particular image-size and orientation-change.
Author:
Owen Feehan
  • Constructor Details

    • SizeMapping

      public SizeMapping​(Path path, org.anchoranalysis.spatial.box.Extent extent)
  • Method Details

    • assignExtent

      public void assignExtent​(org.anchoranalysis.spatial.box.Extent extent)
      Replace the existing Extent with a new value.
      Parameters:
      extent - the extent to assign.
    • scaleXYBy

      public SizeMapping scaleXYBy​(org.anchoranalysis.spatial.scale.ScaleFactor scaleFactor)
      Scales the XY dimensions the factor.

      This is an immutable method.

      Parameters:
      scaleFactor - the factor to scale by.
      Returns:
      a new SizeMapping with the scale-factor applied.
    • getPath

      public Path getPath()
      The path.
    • getExtent

      public org.anchoranalysis.spatial.box.Extent getExtent()
      The size.