Class TileArea

java.lang.Object
nom.tam.image.tile.operation.TileArea

public class TileArea extends Object
The area represented by a 2D tile in an image, including its location inside the image and its size. FITS tiles are always 2-dimentional, but really images of any dimensions may be covered with such tiles.
See Also:
  • Constructor Details

    • TileArea

      public TileArea()
  • Method Details

    • end

      public TileArea end(int... newEndPoint)
      Sets the pixel boundaries where this tile ends. Alternatively you can specify the tile size with size(int...)
      Parameters:
      newEndPoint - the pixel indices along all image dimensions that specify where this tile ends. The tile will end before reaching these indices and will not include them.
      Returns:
      itself
      See Also:
    • dimension

      public int dimension()
      Returns the dimensionality of the tile area.
      Returns:
      The dimensionality of the tile area or 0 if the tile is uninitialized.
      Since:
      1.17
    • intersects

      public boolean intersects(TileArea other) throws IllegalArgumentException
      Parameters:
      other - the tile to test intersection with
      Returns:
      true if the tile intersects with the specified other tile?
      Throws:
      IllegalArgumentException - if the two tiles have different dimensionalities.
    • size

      public TileArea size(int... sizes)
      Sets the size of this tile area. Alternatively you can specify where the tiles ends in the image via end(int...).
      Parameters:
      sizes - the tile size in pixels. If the sizes are specified in the leading dimensions only, the tile sizes in the remaining dimensions will default to 1.
      Returns:
      itself
      See Also:
    • start

      public TileArea start(int... newStartPoint)
      Sets the pixel boundaries where this tile begins. size(int...)
      Parameters:
      newStartPoint - the pixel indices along all image dimensions that specify where this tile begins. The tile will include the pixels at the specified indices.
      Returns:
      itself
      See Also: