After the image is converted into numbers, the number of numbers is equal to the width*height of the image. Each point of the image corresponds to a number. Converting a point into a number can be calculated by a special algorithm or formula, as mentioned above
http://blog.csdn.net/cool1949...
For converting color to grayscale, there is a very famous psychological formula:
There are other ways
After the image is converted into numbers, the number of numbers is equal to the width*height of the image. Each point of the image corresponds to a number. Converting a point into a number can be calculated by a special algorithm or formula, as mentioned above