Package qupath.bioimageio.spec.tensor
Class Shape.ParameterizedInputShape
java.lang.Object
qupath.bioimageio.spec.tensor.Shape
qupath.bioimageio.spec.tensor.Shape.ParameterizedInputShape
- Enclosing class:
- Shape
A shape that is determined based on a minimum and a step size.
-
Nested Class Summary
Nested classes/interfaces inherited from class qupath.bioimageio.spec.tensor.Shape
Shape.ImplicitOutputShape, Shape.ParameterizedInputShape, Shape.SizesShape -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint[]Get the minimum shape; useful for parameterized shapes.int[]Get the shape step (increment), useful for parameterized shapes.int[]getTargetShape(int... target) Get a compatible shape given the specified target.toString()
-
Constructor Details
-
ParameterizedInputShape
public ParameterizedInputShape()
-
-
Method Details
-
getShapeMin
public int[] getShapeMin()Description copied from class:ShapeGet the minimum shape; useful for parameterized shapes.- Overrides:
getShapeMinin classShape- Returns:
- An int array of minimum shape sizes.
-
getShapeStep
public int[] getShapeStep()Description copied from class:ShapeGet the shape step (increment), useful for parameterized shapes.- Overrides:
getShapeStepin classShape- Returns:
- An int array of shape steps.
-
getTargetShape
public int[] getTargetShape(int... target) Description copied from class:ShapeGet a compatible shape given the specified target.For an explicit shape (without scale/offset/step etc.) the target does not influence the result.
- Overrides:
getTargetShapein classShape- 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
-