Class ReferencedSize
java.lang.Object
qupath.bioimageio.spec.tensor.sizes.ReferencedSize
- All Implemented Interfaces:
Size
A tensor axis size (extent in pixels/frames) defined in relation to a reference axis.
size = reference.size * reference.scale / axis.scale + offset-
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.
-