Created
April 29, 2021 14:13
-
-
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).
This file contains 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
%Convert black and white image to binary% | |
File_Name = "Bitmap_Sample.png"; | |
Image = imread(File_Name); | |
Image = imbinarize(Image); | |
imwrite(Image,"Bitmap_Sample.bmp"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sample Bitmap