官术网_书友最值得收藏!

How do computers interpret images?

Essentially, every image can be represented as a matrix of pixel values. In other words, images can be thought of as a function (f) that maps from R2 to R.

f(x, y) gives the intensity value at the position (x, y). In practice, the value of the function ranges only from 0 to 255. Similarly, a color image can be represented as a stack of three functions. We can write this as a vector of:

 f( x, y) = [ r(x,y) g(x,y) b(x,y)]

Or we can write this as a mapping:

f: R x R --> R3

So, a color image is also a function, but in this case, a value at each (x,y) position is not a single number. Instead it is a vector that has three different light intensities corresponding to three color channels. The following is the code for seeing the details of an image as input to a computer.

主站蜘蛛池模板: 蒙城县| 万荣县| 桦川县| 琼结县| 雷山县| 太仓市| 涞水县| 秀山| 南川市| 项城市| 崇义县| 常宁市| 林芝县| 福清市| 天全县| 德清县| 南丰县| 永仁县| 邵东县| 玛多县| 常熟市| 遵义市| 庄河市| 汤阴县| 西吉县| 依安县| 宿迁市| 宜都市| 偃师市| 阿坝县| 大名县| 育儿| 清徐县| 昌吉市| 高平市| 卓尼县| 滦平县| 色达县| 株洲市| 建平县| 临汾市|