Tool to convert an image into a binary of 0 and 1 (byte array format). A black and white picture/photo can be converted into 0 and 1 (0 for black and 1 for white)
Binary Image 0 1 - dCode
Tag(s) : Image Processing
dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!
A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!
A binary image is a digital image whose pixels have 2 colors (usually black or white). It is therefore possible to represent a binary image as a series/array of 0 and 1.
Read each pixel and if it is dark, convert it to 0, and if it is clear, convert it to 1 (or invert 1 and 0).
If the picture is not in black and white, it will be converted to grayscale according to the Rec. 601 luma (formula $ Y = 0.2989 R + 0.5870 G + 0.1140 B $ ) then binarized according to the selected threshold (generally 0.5 = 50%)
Some people see it as a form of binary art: the pixel art.
All web image formats (JPG, PNG, GIF, etc.) are accepted, but it is preferable to use a format that uses lossless compression (PNG, BMP, etc.), because in these cases the data of each pixel color is not altered.
Many icons of 16x16, 32x32, 64x64 size make excellent formats.
Binarization is the action of binarizing (make binary with 2 elements) data.
From a practical point of view, an image with 2 colors (coded on 1 bit) is quick to store, each pixel is either 0 or 1.
There is no standard for 1-bit images, but generally 0 codes for black and 1 for white, but nothing prevents the use of 1 for black and 0 for white.
NB: An 8-bit image codes 0 for black and 255 for white.
Reminder : dCode is free to use.
The copy-paste of the page "Binary Image 0 1" or any of its results, is allowed (even for commercial purposes) as long as you cite dCode!
Exporting results as a .csv or .txt file is free by clicking on the export icon
Cite as source (bibliography):
Binary Image 0 1 on dCode.fr [online website], retrieved on 2023-09-27,