毕业设计(论文)-基于TCS230颜色传感器的色彩识别器的设计_外文翻译.docx_第1页
毕业设计(论文)-基于TCS230颜色传感器的色彩识别器的设计_外文翻译.docx_第2页
毕业设计(论文)-基于TCS230颜色传感器的色彩识别器的设计_外文翻译.docx_第3页
毕业设计(论文)-基于TCS230颜色传感器的色彩识别器的设计_外文翻译.docx_第4页
毕业设计(论文)-基于TCS230颜色传感器的色彩识别器的设计_外文翻译.docx_第5页
已阅读5页,还剩12页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

sensing color with the taos tcs230the taos tcs230 is a small, highly integrated color sensing device packaged in a clear plastic 8-pin soic. it reports, as analog frequency, the amount of shortwave (blue), mediumwave (green), longwave (red), and wideband (white) optical power incident onto the device. it can be used in a variety of color sensing applications. details of the device can be found in its datasheet. this white paper details the concepts and calculations involved in color sensing using the tcs230. we will use the colorchecker chart as an optical stimulus to work through a numerical example of color sensing. the chart, depicted in figure 1, is manufactured and distributed by gretagmacbeth. the chart measures approximately 13 inches by 9 inches (330 mm by 230 mm); it contains 24 colored patches arranged in a 6 by 4 array. figures 2 through 5 overleaf show the spectral reflectance of the patches in each of the four rows of the chart that is, the fraction of incident light that is reflected (with respect to an ideal diffuse reflector), as a function of wavelength from 350 nm to 750 nm.figure 1 the colorchecker contains 18 colored patches and a 6-step gray series.figure 2 colorchecker spectra, top row.figure 3 colorchecker spectra, second row.figure 4 colorchecker spectra, third row.figure 5 colorchecker spectra, bottom row (neutral series)figure 6 cone sensitivities of cone photoreceptors are shown. the shortwave-sensitive photoreceptors are much less sensitive than the other two types. the responses of the mediumwave and longwave photoreceptors have a great deal of overlap. vision is not sensitive to the precise wavelength of the stimulus: what atters is optical power integrated under each response curve.introduction to color vision photoreceptor cells called cones in the retina are responsible for human color vision. there are three types of cone cells, sensitive to longwave, mediumwave, and shortwave radiation within the electro-magnetic spectrum between about 400 nm and 700 nm. because the cone sensitivities are very roughly in the parts of the spectrum that appear red, green, and blue, color scientists denote the cell types as , and , the greek letters for r, g, and b. (to denote the sensors r, g, and b would wrongly suggest a closer correspondence.) estimates of the spectral response of the cone types are graphed in figure 6 above.light in the physical world can be characterized by spectral power distributions (spds). colored objects can be characterized by spectral reflectance curves, such as those of the colorchecker. however, vision is insensitive to the exact wavelength of a stimulus: according to the modern theory of color science, all that matters is the integral of optical power underneath each response curve. that there are exactly three types of cone cells leads to the property of trichromaticity: three components are necessary and sufficient to characterize color. some people might use the phrase “color as sensed by the eye,” but i con-sider that qualifier to be redundant at best, and misleading at worst: color is defined by vision, so there is no need to use the qualifying phrase “as sensed by the eye,” or to use the adjective visible when referring to color.overview of cie colorimetry the spectral responses of the cone cells that i graphed in figure 6 were unavailable to researchers in the 1920s. researchers at the time used psychophysical experiments, such as the famous color matching experiment, to tease out the data. the cie is the international body responsible for color standards. in1931, that organization adopted the color matching functions denoted x (), y (), and z (), graphed in figure 7.figure 7 cie 1931, 2 color-matching functions. a camera with 3 sensors must have these spectral response curves, or linear combinations of them, in order to capture all colors. however, practical considerations make this difficult. these analysis functions are not comparable to spectral power distributions!weighting a physical spd under each of these three curves (that is, forming the wavelength-by-wavelength product), and summing the results, forms a triple of three numbers, denoted x, y, and z. in continuous mathematics, three integrals need to be computed; in discrete math, a matrix product is sufficient. the x, y, and z tristim-ulus values characterize color. they are linear-light quantities, propor-tional to optical power, that incorporate the wavelength sensitivity of human vision. the y value is luminance, which is ordinarily expressed in units of candela per meter squared (cdm-2). if you are measuring reflectance, the reflected tristimulus values depend upon the spectral characteristics of the illuminant, and their amplitudes scale with the power of the illumination. relative luminance is the ratio of reflected luminance to the luminance of the illumination; it is also known as the luminance factor.figure 8 spds of various illuminants are graphed here. illuminant a, shown in orange, is representative of tungsten light sources; it is deficient in shortwave power, and may cause errors in sensing blue colors. the blue line graphs the spd of a nichia white led. there is a peak in the blue portion of the spectrum: uncorrected, the sensor would report excessive blue values. the other four lines represent cie standard illuminants c, d50, d55, and d65.in many applications, tristimulus signals (including luminance) scale with the illumination, and are otherwise uninteresting in themselves. what is more interesting is the ratios among them, which characterize color disregarding luminance. the cie has standardized the projective transformation of equation 1, in the margin, to transform x, y, z values into a pair of x, y chromaticity coordinates that represent color disregarding luminance. these coordinates are suitable for plotting in two dimensions on a chromaticity diagram.x=x/(x+y+z) y=y/(x+y+z) eq 1 chromaticity coordinatesillumination a nonemissive object must be illuminated in order to be visible. the spd reflected from an illuminated object is the wavelength-by-wave-length product of the illuminants spd and the spectral reflectance of the object. before light reaches the eye, the interaction among light sources and materials takes place in the spectral domain, not in the domain of trichromaticity. to accurately model these interactions requires spectral computations. when applying the tcs230, attention must be paid to the spectral content of the illumination and to poten-tial interaction between the illumination and the samples to be sensed. generally, the less spiky the spectra, the better. figure 8 graphs several illuminants.your application may involve sensing color, in which case the preceding description applies. however, some applications of the tcs230 involve not so much estimating color as seen by the eye but rather sensing physical parameters associated with optical power in the visible range. in such applications, to approximate the visual response may not be the best approach: it may be more effective to take a more direct approach to estimating the parameters of the underlying physical process.the color checker equipped with knowledge of how spectra are related to colors, the plotting of chromaticity coordinates, and the dependence of colors upon illumination, we can return to the colorchecker. gretagmac-beth doesnt publish or guarantee the spectral composition of the patches of the colorchecker. however, nominal cie x, y, z values are published. the patches in the bottom row of the colorchecker contain neutral colors; the numeric notations in the legends of figure 5 reflect one tenth of the lightness (l*) values of those patches.the spectra graphed on pages 2 and 3 represent the physical wave-length-by-wavelength reflectance of the patches. these spectral reflec-tances have been measured by color measurement instrument called a spectrophotometer. if you had access to a light source having perfectly even distribution of power across the visible spectrum, then the reflectance curves graphed here could simply be scaled to repre-sent the reflectance in your application. practical light sources do not have perfectly even spectral distributions, so compensation is neces-sary: you must compute the wavelength-by-wavelength product of the illuminants spd with the spectral reflectance of the chart.we will first calculate the cie x, y, z values from the chart. (these values should agree with the figures provided by gretag.) then we will calculate the r, g, b values that will be detected by a tcs230.to calculate cie x, y, z, we take the 313 matrix representing the color matching functions (cmfs) of the cie standard observer, and perform a matrix product with 31 spectral response values as corrected for illumination. this produces the x, y, z tristimulus values. when chromaticity coordinates x, y are computed from x, y, z through the projective transform in equation 1, then plotted, the chromaticity diagram in figure 9 results. the horseshoe-shaped figure, closed at the bottom, contains all colors: every non-negative spectral distribution produces an x, y pair that plots within this region. the lightly-shaded triangle shows the region containing all colors that can be produced by an additive rgb system using srgb (rec. 709) primary colors. this region typifies video and desktop computing (srgb). the points plotted in figure 9 are the colors of the colorchecker. white and gray values are clustered near the center of the chart.figure 9 coordinates of colorchecker patches are graphed on the cie x, y chromaticity diagram. the horseshoe encloses all colors; the triangle encloses the colors that can be represented in video (rec. 709) and in desktop computing (srgb).the tcs230 figure 10 shows the responses of the four channels of the tcs230. the black curve shows the response of the unfiltered sensor elements. the red, green, and blue curves show the responses of the longwave-sensitive, mediumwave-sensitive, and shortwave-sensitive elements respectively.as i mentioned on page 5, the cie model of color vision involves inte-grating an spd under the x(), y(), and z() color matching func-tions (graphed in figure 7), producing x, y, and z values. to use the tcs230 to estimate color we perform an analogous calculation, but using the tcs230 sensitivity functions instead of the cie cmfs: we integrate the spd under the tcs230s sensitivity curves, and produce r, g, and b values. the device r, g, and b values will depend upon several factors: the spectral content of the illuminant, the spectral reflectance of the sample, the spectral attenuation of any intervening optical components (such as the lens), and finally, the spectral response functions of the tcs230. the various spectral phenomena are modelled by computing wavelength-by-wavelength products.figure 10 tcs230 spectral sensitivities are graphed here. the red, green, and blue channels are graphed in the corresponding colors; the gray line reflects the sensitivity of the clear (unfiltered) channel. because these responses are different from the cie standard observer, the values reported by the tcs230 are not colorimetric. however, suitable signal processing yields color information that is sufficiently accurate for many industrial applications. owing to the fact that the tcs230 is sensitive to infrared light (having wavelengths above 700 nm), and the fact that most light sources produce power in the infrared region, typical applications include an ir cut filter in front of the tcs230. figure 11 overleaf shows the response of a typical ir cut filter.to form a more accurate estimate of color requires processing the raw tcs230 r, g, and b values through a linear 33 matrix whose coeffi-cients are optimized with respect to the spectrum of the illuminant, the spectral response of intervening optical components, and the response curves of the tcs230. the data processing operation can be represented in matrix form as follows:x=mt eq 2the symbol t represents a three-element vector containing the device values captured from a color patch. m represents the 33 color correction matrix that we will apply to these values through matrix multiplication, denoted by the symbol. the symbol x represents the resulting vector of estimated x, y, z values.we can use matrix notation to symbolize processing a set of three color patches at once, by arranging the three sets of device values into successive columns of a 33 matrix t. successive rows of t contain red, green, and blue data respectively. upon matrix multiplication by m, the columns of the resulting matrix x contain xyz values of the successive samples; the rows of x contain x, y, and z values respec-tively. one equation expresses the mapping of three patches at once:x=mt eq 3given a matrix t whose columns contain three sets of device samples, and a matrix x containing the corresponding set of three ideal xyz triples, there is a unique matrix m that maps from t to x. it is found by computing the matrix inverse of t, then computing the matrix product (by premultiplication) with x:m=x t-1 eq 4the resulting 33 color correction matrix m exactly maps the each of the chosen three sets of device values to the corresponding set of tris-timulus values. it is not necessary to invert matrices at the time of sensing! the matrix m can be computed in advance, based upon the samples that are expected to be presented to the sensor in the intended application. to process three device values upon sensing a sample, all that is necessary is computation of the matrix product of equation 3.a color correction matrix that produces good results across more than three samples can be computed through a numerical optimization procedure. when this is done, no particular sample is likely to map exactly to its ideal tristimulus set, but a linear matrix can be constructed that minimizes the error across a range of samples (where the error is measured in a least-squares sense). the color correction operation is still accomplished exactly as in equation 2.基于taos公司的tcs230的颜色感应taos公司的tcs230是一个小的、高度集成、8引脚、soic封装的色彩传感装置。它以模拟频率的方式输出短波(蓝色)、中波(绿色)、长波(红色)、宽带(白)光功率的事件数量。它可用于各种色彩感应应用领域。该设备的详细资料中可以找到它的数据表。本白皮书详细介绍了色彩感应的概念和使用tcs230参与计算。我们将使用一个光学刺激方案的colorchecker图表工作,通过检测的色彩数值例子。下图,在图1所示,是由gretagmacbeth生产和分配。图表长约13英寸,9英寸(330毫米230毫米),它包含了64阵列安排24色斑。到5背面图2显示了在图表的每一行四个补丁的光谱反射-即入射光被反射的那部分(相对于一个理想的漫反射)作为波长从350功能,纳米到750纳米。图1 colorchecker色补丁包含18个和6步灰色系列图2 colorchecker谱,第一行图3 colorchecker谱,第二排图4 colorchecker光谱,第三行 图5 colorchecker谱,底排(中性系列)图6锥锥光感受器敏感性所示。短波敏感的感光细胞远远低于其他两种类型的敏感。中波和长波的感光细胞的反应有很大的重叠。视觉是不敏感,准确的刺激波长:什么是光功率下atters每个响应曲线综合。色觉简介所谓感光细胞在视网膜视锥细胞是人类色彩视觉负责。内有电磁频谱三种类型的视锥细胞,敏感的长波,中波,短波辐射及约400纳米之间和700纳米。由于锥敏感性在频谱的部分出现红色,绿色和蓝色的很粗糙,色彩科学家记为,以及希腊字母为r,g细胞的类型,和b (为了表示对传感器的r,g,和b将错误建议更密切的对应关系。)的圆锥体的谱反应的估计是在上面绘制图6。在物理世界的光,其特征是光谱功率分布(结构化产品说明)。彩色对象,其特征是反射光谱曲线,如在的colorchecker的。然而,视觉不敏感,对刺激精确波长:根据现代色彩科学理论,最重要的事情是在每个响应曲线光功率积分。这恰有三种视锥细胞类型导致trichromaticity财产:三个组成部分是必要的和足够的特征颜色。有些人可能会用“感觉到的颜色的眼睛,“但我了con - sider的限定词是多余的,充其量,误导在最坏的情况:色彩是由视觉定义,所以没有必要使用合格的短语“因为感觉到的眼睛,“或使用的形容词时可见指颜色。概述cie的比色法锥细胞,我在图6绘制光谱反应无法在20世纪20年代的研究人员。当时的研究人员使用,如著名的配色实验心理实验,以梳理出的数据。在cie是国际机构,颜色标准。 in1931,该组织通过了颜色匹配函数记()和y()和z(),在图7绘制。图7 cie公司1931年2 色彩匹配功能。一个3传感器的相机必须具备以下的光谱响应曲线,或它们的线性组合,以捕捉所有的颜色。然而,实际的考虑作出这一困难。这些分析功能比不上光谱功率分布!加权根据这三个曲线每个物理社民党(即,形成了波长的波长产品),总结的结果,形成了三个数字三倍,记在连续数学的x,y和z,三积分需要计算,在离散数学,矩阵产品就足够了。在x,y和z tristim-汗国值特征的颜色。它们是线性光量,正比于光学力量,即纳入人类视觉波长的敏感性。 y值是亮度,这是通常在每平方米坎德拉(光碟米- 2)为单位表示。如果你是测量反射率,反射的三刺激值取决于对光源的光谱特性,其幅度与规模的照明电源。相对亮度的反射亮度的照明亮度的比值,它也被称为亮度因素。图8是绘制各种光源结构化产品说明这里。 a光源,以橙色显示,钨光源是代表,它是在短波力量不足,可能会导致感应蓝色的错误。蓝线图的社民党的日亚白光led。有一个光谱的蓝色部分高峰:裸时,传感器会举报过度蓝色值。另外四线代表cie的,d50的,d55和d65的标准光源。在许多应用中,三刺激信号(包括亮度)与照明规模,并应在其他无趣自己。什么是更有趣的是它们之间的比例,所特有的颜色无视亮度。在cie有标准化的公式1中的保证金射影变换,将其转化为一对的x,y和z值的x,y表示颜色的色度坐标无视亮度。这些坐标在二维色度图上绘制合适。x=x/(x+y+z) y=y/(x+y+z) 公式1 色度坐标照明一个nonemissive对象必须是为了照明可见。社民党从一照物体反射的波长是按波长的光源产品的社民党和对象的光谱反射率。光线到达之前光源和材料之间的眼睛,相互作用发生在谱域的地方,不是在trichromaticity域。为了准确地需要这些相互作用的光谱模型计算。当应用tcs230,必须注意对光照光谱内容和电位- tial金属间的照明和样品被觉察的互动。一般来说,越尖的光谱,就越好。图8图数光源。您的应用程序可能涉及敏感的颜色,在这种情况下,前面的说明适用。然而,一些应用涉及tcs230没有这么多的眼睛所看到的,而是传感在可见光范围内光功率相关的物理参数估计的颜色。在这种应用中,近似的视觉反应可能不是最好的方法:它可能是更有效地采取更直接的方法来估计底层物理过程的参数。色彩检查如何光谱与颜色相关的知识装备,绘制色度坐标,对照明色彩的依赖,我们可以返回的colorchecker。 gretagmac- beth没公布或保证的colorchecker补丁的光谱成分。然而,标称cie的的x,y和z值被公布。在底行的colorchecker补丁包含中性色,在图5中的神话传说中的数字符号反映十分之一的亮度(长*)值的这些补丁。光谱绘制2和第3页上表示物理波长由波长的反射率的补丁。这些光谱反射已测色仪测量tances称为分光光度计。如果你有机会访问光源具有完全的权力分配,甚至在整个可见光谱,反射率曲线则绘制在这里可以简单地扩展到repre,发送应用程序中的反射率。实践没有光源的光谱分布十分均匀,因此补偿neces-萨利:你必须计算与图表的光谱反射的光源的波长社民党按波长的产品。我们将首先从图表计算在cie的x,y和z值。 (这些值应同意gretag提供的数字。)然后我们将计算的r,g,b的,将由一tcs230检测值。为了计算cie公司的x,y和z,我们把31 3矩阵代表职能的配色在cie标准观察者(cmfs),并执行一个有31个光谱响应矩阵

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论