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

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.

主站蜘蛛池模板: 凤凰县| 云霄县| 汉阴县| 万盛区| 朝阳市| 临潭县| 怀柔区| 安福县| 宜宾市| 日土县| 会宁县| 玉林市| 德钦县| 林芝县| 图片| 乡宁县| 辉南县| 四平市| 那曲县| 金门县| 通榆县| 岚皋县| 泌阳县| 平邑县| 句容市| 渭源县| 大同县| 裕民县| 鄯善县| 甘泉县| 株洲县| 宿迁市| 自治县| 南汇区| 阳原县| 雅江县| 曲周县| 镇平县| 呼图壁县| 陆良县| 根河市|