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

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.

主站蜘蛛池模板: 红原县| 怀集县| 皋兰县| 闽侯县| 霍林郭勒市| 饶阳县| 晋江市| 大渡口区| 平邑县| 清徐县| 吉木乃县| 突泉县| 甘孜| 汶川县| 永吉县| 黔江区| 和田市| 江口县| 金坛市| 岢岚县| 兴国县| 贵定县| 巴彦淖尔市| 虞城县| 朝阳区| 荆州市| 定西市| 长治县| 黎城县| 泊头市| 杭州市| 上杭县| 襄城县| 宜君县| 文化| 民和| 久治县| 孟村| 句容市| 诸暨市| 商河县|