Is there a routine that writes 3 dimensional arrays into a fits file?

回答(1 个)

Create a FITS file with three images constructed from the channels of an RGB image.
X = imread('ngc6543a.jpg');
R = X(:,:,1); G = X(:,:,2); B = X(:,:,3);
fitswrite(R,'myfile.fits');
fitswrite(G,'myfile.fits','writemode','append');
fitswrite(B,'myfile.fits','writemode','append');
fitsdisp('myfile.fits');
Refer the following documentation:

类别

帮助中心File Exchange 中查找有关 Just for fun 的更多信息

回答:

2016-2-9

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by