- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
Linear Regression Method of Least Squares (1/2) Method of Least Squares (2/2) Matlab Example RGB Components NTSC Y Channel Luminance Hue and Saturation White – Color Components Saturation Inverse Saturation Image Multi-Channel Linear Regression Matlab Example Reshaping Matrices Reshaping Matrices Reshape Reshape Example * Assume that image Y is point-by-point linearly related to image X First we define some notation for the mean of an image: We can use the mean to eliminate k0 The method of least-squares is used to find k1. The total least-squared deviation is: The expression can be simplified as follows: where If the total least-squared deviation is We can minimize s2 with respect to k1 Then We can find k0 from gm1 = mean2(gray1) gm2 = mean2(gray2) gc1 = gray1 - gm1; gc2 = gray2 - gm2; sxy = mean2(gc1.*gc2); sxx = mean2(gc1.*gc1); k1 = sxy/sxx k0 = gm2 - k1*gm1 diff2 = gray2 - k0 - k1*gray1; cd = 0.5*(diff2+1); imwrite(cd, cd.jpg); sigma = std2(diff2); gm1 = 0.5563 gm2 = 0.5579 k1 = 0.9694 k0 = 0.0186 sigma = 0.0433 original Luminance YIQ Intensity HSI Value HSV Lightness HLS Luminance is 1 when R=G=B=1 Saturation Hue white color white color Saturation is the relative proportion of pure color to the total brightness. HSV HLS Assume that image Y is point-by-point linearly related to image (R,G,B) The normal equations of least squares are then given by The total least-squared deviation is: ? rgb = imread(kitchen1.tif); ? for I = 1:3 for J=1:3 C(I,J) = sum(sum(rgb(:,:,I).*rgb(:,:,J))); end end ? gray = im2double(imread(kitchen2.tif)); ? for I=1:3 d(I) = sum(sum(gray(:,:,1).*rgb(:,:,I))); end ? k = C\d; C = 1.0e+004 * 6.9239 6.4029 5.6287 6.4029 6.1035 5.3815 5.6287 5.3815 5.1229 d = 1.0e+004 * 6.4717 6.1061 5.4191 k = 0.3277 0.5617 0.1077 Sometimes it is convenient to represent an image as a vector rather than as a matrix. If X is an image in matrix form, ? X = [ 4 18 32 3; 12 11 15 5; 2 3 5 12
您可能关注的文档
- 武汉理工大学基础工程课件 绪论.ppt
- 武汉理工大学基础工程课件第二章 天然地基上的浅基础.ppt
- 武汉理工大学基础工程课件第四章 桩基础(八).ppt
- 武汉理工大学基础工程课件第四章 桩基础(二).ppt
- 武汉理工大学基础工程课件第四章 桩基础(六).ppt
- 武汉理工大学基础工程课件第四章 桩基础(七).ppt
- 武汉理工大学基础工程课件第四章 桩基础(三).ppt
- 武汉理工大学基础工程课件第四章 桩基础(四).ppt
- 武汉理工大学基础工程课件第四章 桩基础(五).ppt
- 武汉理工大学基础工程课件第四章 桩基础(一).ppt
- 武汉理工大学数字图像处理英文课件 Chapter3(6).ppt
- 武汉理工大学数字图像处理英文课件 Chapter3(7).ppt
- 武汉理工大学数字图像处理英文课件 Chapter3(8).ppt
- 武汉理工大学数字图像处理英文课件 Chapter3(9).ppt
- 武汉理工大学数字图像处理英文课件 Chapter3(10).ppt
- 武汉理工大学数字图像处理英文课件 Chapter3(11).ppt
- 武汉理工大学数字图像处理英文课件 Chapter4(2).ppt
- 武汉理工大学数字图像处理英文课件 Chapter4(3).ppt
- 武汉理工大学数字图像处理英文课件 Chapter4(4).ppt
- 武汉理工大学数字图像处理英文课件 Chapter4(5).ppt
文档评论(0)