Class ImageBoundsUtil

java.lang.Object
org.bonej.utilities.ImageBoundsUtil

public final class ImageBoundsUtil extends Object
Utility methods for checking image bounds.
  • Method Details

    • outOfBounds

      public static boolean outOfBounds(net.imglib2.Dimensions dimensions, long[] currentPixelPosition)
      Checks whether a pixel position falls outside the bounds of the given dimensions.
      Parameters:
      dimensions - the dimensions of the image
      currentPixelPosition - the pixel coordinates to check
      Returns:
      true if any coordinate is negative or exceeds the corresponding dimension, false otherwise