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

1 vue (au cours des 30 derniers jours)
Ana Cadavid
Ana Cadavid le 3 Fév 2016
Réponse apportée : Kiran le 9 Fév 2016
I am looking for a routine which writes saves a three dimensional array into a fits file

Réponses (1)

Kiran
Kiran le 9 Fév 2016
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:

Catégories

En savoir plus sur Interpolation dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by