画像のグレースケールを double 配列に格納しました。次のタスクを実行する必要がありますが、どこから始めればよいかわかりません。
The contents of the image in <infile> will be converted into an ASCII image.
Use the following (approximate!) grayscale-to-character mappings. You are free
to adjust the numeric ranges a little bit in order to make programming easier:
o 0 to 25:‘M’
o 26 to 50:‘$’
o 51 to 76:‘o’
o 77 to 102:‘|’
o 103 to 127: ‘*’
o 128 to 152: ‘:’
o 153 to 178: ‘=’
o 179 to 204: ‘\’’ (note the escape character before the single-quote)
o 205 to 230: ‘.’
o 231 to 255: ‘ ’ (i.e., a single space)