Class ImageHDU
java.lang.Object
org.episteme.natural.physics.loaders.fits.HDU
org.episteme.natural.physics.loaders.fits.ImageHDU
- Direct Known Subclasses:
OptimizedImageHDU
Header Data Unit representing an Image (N-dimensional array).
This class handles the reading of binary data as a generic Matrix.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasMatrix(ReadableByteChannel channel) Reads the image data as a 2D Matrix of Reals.longReturns the size of the data block in bytes, excluding padding.
-
Constructor Details
-
ImageHDU
-
-
Method Details
-
getDataSize
public long getDataSize()Description copied from class:HDUReturns the size of the data block in bytes, excluding padding.- Specified by:
getDataSizein classHDU- Returns:
- data size in bytes.
-
asMatrix
Reads the image data as a 2D Matrix of Reals.- Parameters:
channel- the channel to read from- Returns:
- the matrix representation of the image
- Throws:
IOException- if an error occurs
-