Class ParameterizedSize
java.lang.Object
qupath.bioimageio.spec.tensor.sizes.ParameterizedSize
- All Implemented Interfaces:
Size
Describes a range of valid tensor axis sizes as `size = min + n*step`.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionintgetMin()Gets the minimum shape for this axis.intgetStep()Get the step size of this axis size.intgetTargetSize(int target) Get a size as close as possible to a target.intsize()Get the default size of this axis.voidvalidate(List<? extends BaseTensor> tensors) Validate a tensor's size, ensuring that all internal fields are valid and resolving links between tensor objects.
-
Method Details
-
size
public int size()Description copied from interface:SizeGet the default size of this axis.Size.getTargetSize(int)may be more useful. -
getTargetSize
public int getTargetSize(int target) Description copied from interface:SizeGet a size as close as possible to a target.- Specified by:
getTargetSizein interfaceSize- Parameters:
target- The target size.- Returns:
- The fixed output size,
Size.NO_SIZEor as close as we can get to the target size.
-
getStep
public int getStep()Description copied from interface:SizeGet the step size of this axis size.- Specified by:
getStepin interfaceSize- Returns:
Size.NO_SIZEfor any axis without a step size, otherwise the size.
-
getMin
public int getMin()Description copied from interface:SizeGets the minimum shape for this axis. -
validate
Description copied from interface:SizeValidate a tensor's size, ensuring that all internal fields are valid and resolving links between tensor objects.
-