Converting Image File Into ASCII Art using CPP : SFML

preview_player
Показать описание
I have made this simple program in cpp using sfml library to take input of image and converting pixel colors into grayscale and print appropriate ascii character for that much intensity.

In case you are looking for the code :

The simple algorithm would be:
1. Get individual pixels of the image ( which i have done using sfml library)
2. get rgb values of that individual pixels
3. calculate grayscale value for the pixel using it's formulae
4. associate with appropriate ascii character according to intensity of the grayscale value
5. print them accordingly.

Song - Kage (Nes) (Shadow Of The Ninja)
Рекомендации по теме
Комментарии
Автор

Hello, do you have any guide that could lead me to make this program in c++, too? thank you!

sasarepkova
Автор

printAsciiCharacter() is just a joke right? right??

TheRealZitroX
Автор

Can this be called a narrow artificial intelligence program? Or is it just a normal program?

gersomfrendy