Given a image.bmp
and a M x N
group of pixels, generate a text that represents the image.bmp
in ascii characters.
Before | After |
---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
You can also check the outputs here.
First, build the executable
$ make
Then, run:
$ make run /path/to/image.bmp M N
I would recommend to choose M and N based on image resolution and also to direct the output like this:
$ make run /path/to/image.bmp M N > output.txt
Sorry for my bad C++. It's been a long time 😆