.


:




:

































 

 

 

 


5: 'a*' 'b*'




, 'a*' 'b*'.

purple=[119/255 73/255 152/255];plot_labels={'k', 'r', 'g', purple, 'm', 'y'}; figurefor count=1:nColors plot(a(label==count-1),b(label==count-1),'.','MarkerEdgeColor',... plot_labels{count}, 'MarkerFaceColor', plot_labels{count}); hold on;end title(' ''a*b*'' ');xlabel('''a*'' values');ylabel('''b*'' values');

, , cp2tform. .

: 1: . 2: . 3: . 4: . 5: . 6: . 7: . 1: . .I=imread('cameraman.tif');imshow(I)

2: . scale=0.6;J=imresize(I, scale); % . 3: . theta=30;K=imrotate(J, theta); % .figure, imshow(K)

4: . Control Point Selection Tool. input_points=[129.87 141.25; 112.63 67.75];base_points=[135.26 200.15; 170.30 79.30];cpselect(K,I, input_points, base_points); , File Save Points to Workspace. input_points base_points. 5: . TFORM, . t=cp2tform(input_points, base_points, 'linear conformal'); 6 7, 5-7, 'linear conformal' 'affine'. . 6: . TFORM t.tdata.Tinv. ( ), . Let sc=s*cos(theta)Let ss=s*sin(theta), Tinv=t.tdata.Tinv=[sc -ss 0; ss sc 0; tx ty 1] tx ty x y .ss=t.tdata.Tinv(2, 1);sc=t.tdata.Tinv(1, 1);scale_recovered=sqrt(ss*ss+sc*sc)theta_recovered=atan2(ss, sc)*180/pi scale_recovered= 0.6000theta_recovered= 29.3699

, scale_recovered 0.6, theta_recovered 30.

 





:


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


:

:

.
==> ...

1572 - | 1397 -


© 2015-2024 lektsii.org - -

: 0.008 .