Search for a tool
Grayscale Image

Tool to transform images into black and white (grayscale). A grayscale image is an image whose colors vary from white to black.

Results

Grayscale Image -

Tag(s) : Image processing

Share
Share
dCode and you

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!


Please, check our community Discord for help requests!


Thanks to your feedback and relevant comments, dCode has developped the best Grayscale Image tool, so feel free to write! Thank you !

Grayscale Image

Grayscale Converter (Black and White)

  [X]




Tool to transform images into black and white (grayscale). A grayscale image is an image whose colors vary from white to black.

Answers to Questions

How to transform an image into grascale?

! Black and white means here as grayscale gradient. For the transformation of an image into black or white binary, see the binary image tool.

Each color pixel of an image is generally defined by a triplet of values of red, green and blue, but can also be defined by a triplet hue, saturation, brightness. This brightness value is the position of the pixel between black and white.

To calculate this brightness, several algorithms / color references are possible, like the recommendations 709, 601 or 2100 used as standard in photography or video (and from the CIE International Commission of Lighting).

If an error is returned, it may be an altered file, a bad image, or the file format does not match its extension.

What is the recommandation CIE 709?

Recommendation 709 is used as a standard for HDTV. The luminance is calculated as Gray = 0.2125 * Red + 0.7154 * Green + 0.0721 * Blue

Example: A color representing the color Orange consisting of Red = 255, Green = 127, Blue = 0. Then the value of gray is 255*0.2125+127*0.7154+0*0.0721=145

What is the recommandation CIE 601?

Recommendation 601 was used as a standard for analogic terrestrial television. Luminance is calculated as Gray = 0.299 * Red + 0.587 * Green + 0.114 * Blue

Example: A color representing the color Orange consisting of Red = 255, Green = 127, Blue = 0. Then the value of gray is 255*0.299+127*0.587+0*0.0114=151

Source code

dCode retains ownership of the online 'Grayscale Image' tool source code. Except explicit open source licence (indicated CC / Creative Commons / free), any algorithm, applet or snippet (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, translator), or any function (convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (PHP, Java, C#, Python, Javascript, Matlab, etc.) no data, script or API access will be for free, same for Grayscale Image download for offline use on PC, tablet, iPhone or Android !

Need Help ?

Please, check our community Discord for help requests!

Questions / Comments

Thanks to your feedback and relevant comments, dCode has developped the best Grayscale Image tool, so feel free to write! Thank you !


Source : https://www.dcode.fr/grayscale-image
© 2020 dCode — The ultimate 'toolkit' to solve every games / riddles / geocaching / CTF.
Feedback