1.采集测量平面
2.平面定标
在Matlab中使用配准工具进行定标
A=imread('dingbiaoT.bmp');
B=imread('00.jpg');
%A=rgb2gray(A);
B=rgb2gray(B);
%figure;subplot(1,2,1);imshow(A);subplot(1,2,2);imshow(B);
cpselect(A,B);
配准定标参数
Bp=[0 600;600 600;600 0;0 0]; %Bp=[0 600;600 600;600 0;0 0];
Ap(:,1)=Ap(:,1); %Ap(:,1)=Ap(:,1)-327;
Ap(:,2)=640-Ap(:,2); %Ap(:,2)=680-(Ap(:,2)-(1024-91-680));
Ap(:,3)=Ap(:,1).*Ap(:,2);
Ap(:,4)=[1;1;1;1];
App=inv(Ap);
form......
阅读全文