Created
August 6, 2016 11:22
-
-
Save mintisan/5ad918da96a736742187dfa9c3695fbe to your computer and use it in GitHub Desktop.
read a raw image, convert to bmp image format
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fp = fopen('0016.raw','r'); | |
[a,count]=fread(fp); | |
a = reshape(a,row,col)'; | |
figure,imshow(uint8(a)) | |
imwrite(uint8(a),'0016.bmp','bmp'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment