Home  >  Q&A  >  body text

java - computer image representation method?

Aren’t pixels generally in RGB space (0~255)

So how are the numbers in the above image transferred?

怪我咯怪我咯2675 days ago908

reply all(2)I'll reply

  • PHP中文网

    PHP中文网2017-06-23 09:15:48

    http://blog.csdn.net/cool1949...

    For converting color to grayscale, there is a very famous psychological formula:

                          Gray = R*0.299 + G*0.587 + B*0.114
                          

    There are other ways

    reply
    0
  • 学习ing

    学习ing2017-06-23 09:15:48

    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

    reply
    0
  • Cancelreply