1、函数:pcread
showPointCloud([x_s(:),y_s(:),z_s(:)+4]);
title('Sphere with the default color map');
xlabel('X');
ylabel('Y');
zlabel('Z');
hold on,
showPointCloud([x_t(:),y_t(:),z_t(:)]);
for k = 1:size(matchedPointsValid,1)
x = [matchedPointsValid(k,7) matchedPointsValid(k,10)];
y = [matchedPointsValid(k,8) matchedPointsValid(k,11)];
z = [matchedPointsValid(k,9)+4 matchedPointsValid(k,12)];
plot3(x,y,z,'r.-');
hold on,
end
saveas(hf,matched_points_file); % 保存图片
蒙特卡洛方法
画矩形 :
选取矩形框内数据:
- figure, imshow('pout.tif');
- h = imrect;
- position = wait(h);
1、函数:pcread
showPointCloud([x_s(:),y_s(:),z_s(:)+4]);
title('Sphere with the default color map');
xlabel('X');
ylabel('Y');
zlabel('Z');
hold on,
showPointCloud([x_t(:),y_t(:),z_t(:)]);
for k = 1:size(matchedPointsValid,1)
x = [matchedPointsValid(k,7) matchedPointsValid(k,10)];
y = [matchedPointsValid(k,8) matchedPointsValid(k,11)];
z = [matchedPointsValid(k,9)+4 matchedPointsValid(k,12)];
plot3(x,y,z,'r.-');
hold on,
end
saveas(hf,matched_points_file); % 保存图片
蒙特卡洛方法
1、函数:pcread
showPointCloud([x_s(:),y_s(:),z_s(:)+4]);
title('Sphere with the default color map');
xlabel('X');
ylabel('Y');
zlabel('Z');
hold on,
showPointCloud([x_t(:),y_t(:),z_t(:)]);
for k = 1:size(matchedPointsValid,1)
x = [matchedPointsValid(k,7) matchedPointsValid(k,10)];
y = [matchedPointsValid(k,8) matchedPointsValid(k,11)];
z = [matchedPointsValid(k,9)+4 matchedPointsValid(k,12)];
plot3(x,y,z,'r.-');
hold on,
end
saveas(hf,matched_points_file); % 保存图片
蒙特卡洛方法