Class Shape.ParameterizedInputShape

java.lang.Object
qupath.bioimageio.spec.tensor.Shape
qupath.bioimageio.spec.tensor.Shape.ParameterizedInputShape
Enclosing class:
Shape

public static class Shape.ParameterizedInputShape extends Shape
A shape that is determined based on a minimum and a step size.
  • Constructor Details

    • ParameterizedInputShape

      public ParameterizedInputShape()
  • Method Details

    • getShapeMin

      public int[] getShapeMin()
      Description copied from class: Shape
      Get the minimum shape; useful for parameterized shapes.
      Overrides:
      getShapeMin in class Shape
      Returns:
      An int array of minimum shape sizes.
    • getShapeStep

      public int[] getShapeStep()
      Description copied from class: Shape
      Get the shape step (increment), useful for parameterized shapes.
      Overrides:
      getShapeStep in class Shape
      Returns:
      An int array of shape steps.
    • getTargetShape

      public int[] getTargetShape(int... target)
      Description copied from class: Shape
      Get a compatible shape given the specified target.

      For an explicit shape (without scale/offset/step etc.) the target does not influence the result.

      Overrides:
      getTargetShape in class Shape
      Parameters:
      target - The shape (in pixel width/height/etc.) in pixels that we are requesting.
      Returns:
      As close to the shape as the Shape object allows if a parameterized shape, or the fixed shape if fixed.
    • toString

      public String toString()
      Overrides:
      toString in class Shape