java.lang.Object
org.bonej.utilities.ImageBoundsUtil
Utility methods for checking image bounds.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanoutOfBounds(net.imglib2.Dimensions dimensions, long[] currentPixelPosition) Checks whether a pixel position falls outside the bounds of the given dimensions.
-
Method Details
-
outOfBounds
Checks whether a pixel position falls outside the bounds of the given dimensions.- Parameters:
dimensions- the dimensions of the imagecurrentPixelPosition- the pixel coordinates to check- Returns:
trueif any coordinate is negative or exceeds the corresponding dimension,falseotherwise
-