cie xyz中 如何识别蓝色下面的程序怎么改?function [y_image] = extract_yellow_region(image);% extract_yellow_region:Determines the yellow regions in the picture using% the CIE-XYZ color system,and returns a black and white picture which i
来源:学生作业帮助网 编辑:作业帮 时间:2024/08/17 02:54:31
![cie xyz中 如何识别蓝色下面的程序怎么改?function [y_image] = extract_yellow_region(image);% extract_yellow_region:Determines the yellow regions in the picture using% the CIE-XYZ color system,and returns a black and white picture which i](/uploads/image/z/13645198-46-8.jpg?t=cie+xyz%E4%B8%AD+%E5%A6%82%E4%BD%95%E8%AF%86%E5%88%AB%E8%93%9D%E8%89%B2%E4%B8%8B%E9%9D%A2%E7%9A%84%E7%A8%8B%E5%BA%8F%E6%80%8E%E4%B9%88%E6%94%B9%3Ffunction+%5By_image%5D+%3D+extract_yellow_region%28image%29%3B%25+extract_yellow_region%3ADetermines+the+yellow+regions+in+the+picture+using%25+the+CIE-XYZ+color+system%2Cand+returns+a+black+and+white+picture+which+i)
cie xyz中 如何识别蓝色下面的程序怎么改?function [y_image] = extract_yellow_region(image);% extract_yellow_region:Determines the yellow regions in the picture using% the CIE-XYZ color system,and returns a black and white picture which i
cie xyz中 如何识别蓝色
下面的程序怎么改?
function [y_image] = extract_yellow_region(image);
% extract_yellow_region:Determines the yellow regions in the picture using
% the CIE-XYZ color system,and returns a black and white picture which is
% set on the yellow regions only.
% Define the lines in CIE-XYZ space,use to determine yellow color
lower_A = 0.87; lower_B = 0.04;
upper_A = 1.5 ; upper_B = -0.125;
% Convert 8-bit format of org_pic pixels to double format
pic = double(image)+1;
pic = pic.*1.6;
% Conversion from RGB709 to CIE-XYZ
x = ( pic(:,:,1).*0.412453 + pic(:,:,2).*0.35758 + pic(:,:,3).* 0.180423);
y = ( pic(:,:,1).*0.212671 + pic(:,:,2).*0.715160 + pic(:,:,3).* 0.072169);
z = ( pic(:,:,1).*0.019334 + pic(:,:,2).*0.119193 + pic(:,:,3).*0.950227);
sum = x + y + z;
x_bar = x./sum;
y_bar = y./sum;
% Define yellow color in CIE-XYZ space
x_sum_conds = ( ((x_bar > 0.34) & (sum > 400) & (sum < 500) ) | ((x_bar > 0.37) & (sum > 200) & (sum < 500)) );
xy_conds = ( (y_bar > 0.35) & (y_bar < 0.5) & (y_bar > (lower_A*x_bar + lower_B)) & (y_bar < (upper_A*x_bar + upper_B)) );
y_image = (x_sum_conds & xy_conds);
return;
cie xyz中 如何识别蓝色下面的程序怎么改?function [y_image] = extract_yellow_region(image);% extract_yellow_region:Determines the yellow regions in the picture using% the CIE-XYZ color system,and returns a black and white picture which i
闻起来也更陈旧.它们一旦落在身后,
看上去就破败不堪.你来到这里已有时日.
婚姻使得你的闺哈哈名弃置不用.
这五个轻音不再暗示你的面容,
你的声音,和你举止的优美;
既然这规矩将你与另一人