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

조회 수: 6 (최근 30일)
Ana Cadavid
Ana Cadavid 2016년 2월 3일
답변: Kiran 2016년 2월 9일
I am looking for a routine which writes saves a three dimensional array into a fits file

답변 (1개)

Kiran
Kiran 2016년 2월 9일
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:

카테고리

Help CenterFile Exchange에서 Just for fun에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by