Cfitsio Toolkit - matlab.io.fits.readImg
- :
data
=readImg(file)
- :
data
=readImg(file, firstpix, lastpix)
- :
data
=readImg(file, firstpix, lastpix, inc)
Read Image data.
This is the equivalent of the cfitsio fits_read_subset function.
Inputs
file - opened fits file.
firstpix - first pile coordinate
lastpix - last pixel coordinate
inc - pixel increment
Outputs
data - image data read
Examples
import_fits; filename = file_in_loadpath("demos/tst0012.fits"); fd = fits.openFile(filename); # read the image imagedata = fits.readImg(fd); # read a 70x80 part of the image imagedata = fits.readImg(fd, [11 11],[80 90]); fits.closeFile(fd);