Package nom.tam.image.tile.operation
Class TileArea
java.lang.Object
nom.tam.image.tile.operation.TileArea
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the dimensionality of the tile area.end
(int... newEndPoint) Sets the pixel boundaries where this tile ends.boolean
intersects
(TileArea other) size
(int... sizes) Sets the size of this tile area.start
(int... newStartPoint) Sets the pixel boundaries where this tile begins.
-
Constructor Details
-
TileArea
public TileArea()
-
-
Method Details
-
end
Sets the pixel boundaries where this tile ends. Alternatively you can specify the tile size withsize(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
- 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
Sets the size of this tile area. Alternatively you can specify where the tiles ends in the image viaend(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
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:
-