Skip to content

Instantly share code, notes, and snippets.

@MichaelTr7
Created April 29, 2021 14:13
Show Gist options
  • Save MichaelTr7/ee3b3e08e0401a7921a986b5dfc08ed0 to your computer and use it in GitHub Desktop.
Save MichaelTr7/ee3b3e08e0401a7921a986b5dfc08ed0 to your computer and use it in GitHub Desktop.
A MATLAB script to convert black and white images (.png) to bitmaps (.bmp).
%Convert black and white image to binary%
File_Name = "Bitmap_Sample.png";
Image = imread(File_Name);
Image = imbinarize(Image);
imwrite(Image,"Bitmap_Sample.bmp");
@MichaelTr7
Copy link
Author

MichaelTr7 commented Apr 29, 2021

Sample Bitmap

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment