[3D Face Model Mapping Algorithm] MATLAB Simulation of 3D Face Model Mapping Algorithm Based on Discrete Laplace-Beltrami Operator

1. Software version

matlab2021a

2. Part of the core code

       In differential geometry, the Laplace operator can be generalized as an operator of functions defined on surfaces, or more generally on Riemannian and pseudo-Riemannian manifolds. This more general operator is called the Laplace–Beltrami operator. Like the Laplacian operator, the Laplacian– Beltrami operator is defined as the divergence of the gradient. This operator, as the divergence of the covariant derivative, can be extended to operators on tensors. Alternatively, using divergence and external derivatives, this operator can be generalized to an operator in differential form, and the resulting operator is called the Laplace–de Rham operator.

clc;
clear;
close all;
warning off;
addpath 'subfunc\myfunc\'
addpath 'subfunc\OBJ_Display\'

load mat_file\eye_change.mat
 
SEL = 3;%1对正常模型进行脸映射,2对鼻子调整模型进行映射,3对眼皮调整模型进行映射/对鼻子眼皮都调整的模型进行映射

if SEL == 1
   vertices_ = vertices; 
end
if SEL == 2
   vertices_ = new_vertices_nose_change; 
end
if SEL == 3
   vertices_ = new_vertices_eye_change; 
end
 
figure;
trimesh(faces', vertices_(1,:), vertices_(2,:), vertices_(3,:),'LineWidth',1,'EdgeColor','

Guess you like

Origin blog.csdn.net/ccsss22/article/details/124224407