.


:




:

































 

 

 

 


2: L*a*b*




: , , , (), - (magenta). , . L*a*b* ( CIELAB CIE L*a*b*) .

L*a*b* CIE XYZ. L*a*b* 'L*', 'a*' ( - ) 'b*' ( - ).

, 'a*b*'. .

, , MAT-file.

load regioncoordinates;nColors=6;sample_regions=false([size(fabric, 1) size(fabric, 2) nColors]);for count=1:nColors sample_regions(:,:, count)=roipoly(fabric, region_coordinates(:, 1, count),... region_coordinates(:, 2, count));endimshow(sample_regions(:,:, 2)), title(' ');

RGB- L*a*b*- makecform applycform.

cform=makecform('srgb2lab');lab_fabric=applycform(fabric, cform); 'a*' 'b*' roipoly. 'a*b*'.a=lab_fabric(:,:, 2);b=lab_fabric(:,:, 3);color_markers=repmat(0, [nColors, 2]);for count=1:nColors color_markers(count, 1)=mean2(a(sample_regions(:,:,count))); color_markers(count, 2)=mean2(b(sample_regions(:,:, count)));end, 'a*b*' disp(sprintf('[%0.3f,%0.3f]', color_markers(2, 1), color_markers(2, 2)));




:


: 2015-10-01; !; : 426 |


:

:

, ; , .
==> ...

1887 - | 1672 -


© 2015-2024 lektsii.org - -

: 0.007 .