MATLAB: How to read an image file in .fits format and convert it to.png or .tiff fits I have images in .fits extension. I'd like to open it in matlab and convert it to other format such as .png or .tiff. Any suggestion on how should I start? Best Answer Use fitsread() and imwrite() if you need further help please post the file you are working with. Related SolutionsMATLAB: How to save an imagesc file as a grayscale tif imwrite( mat2gray(img), 'myImage.tif') MATLAB: Save output picture of Histogram code Considering, 'ghgvhh.png' image is a gray image, if not do conversion.I=imread('ghgvhh.png');imhist(I);saveas(gcf,'hist_fig.png') Related QuestionHow to save imageSave image with Compression JPEG 2000
Best Answer