我正在进行3D人脸识别&使用matlab验证项目。现在我很难将2D点缩放到3D云中。谁能帮我?这是代码..我手动缩放了2D点云以获得更好的视图。 myOne.mat是3D图像的xyz坐标& 2Dfinal.mat是2D图像的xy坐标。
clear; close all; clc;
load('myOne.mat');
load('2Dfinal.mat');
% 2D point rotate
[imrow, imclm, ~] = size(image);
B(:,1) = imclm - f1match(:,1);
B(:,2) = imclm - f1match(:,2);
% 2D point plot with specific point
subplot(1,2,1)
B = 300*B;
plot(B(:,1),B(:,2),'r.');
%2D points with 3D cloud
subplot(1,2,2)
showPointCloud(myOne(:,1:3));
hold on
plot(B(:,1),B(:,2),'r.');
hold off