Skip to content

Instantly share code, notes, and snippets.

@mintisan
Created August 6, 2016 11:22
Show Gist options
  • Save mintisan/5ad918da96a736742187dfa9c3695fbe to your computer and use it in GitHub Desktop.
Save mintisan/5ad918da96a736742187dfa9c3695fbe to your computer and use it in GitHub Desktop.
read a raw image, convert to bmp image format
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