RAW Image file - what format is my data in?

前端 未结 3 1815
深忆病人
深忆病人 2021-02-14 21:16

I\'m working on processing .raw image files, but I\'m not sure how the image is being stored. Each pixel is a unsigned 16-bit value, with typical values ranging from 0 to about

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-14 21:47

    The other answers are correct, RAW is not a standard, it's shorthand. Camera CCDs often do not have separate red, green and blue pixels for each pixel, instead, they will use what's called a Bayer Pattern and then only save the pixel values for that pattern. Then, you will need to convert that pattern to rgb values.

    Also, for the bonus question, if you are simply trying to convert a RGB image to grayscale, or something like that, you can either use the matrix operators, or call convertTO

提交回复
热议问题