mirrordemo3.m
来自「Matlab程序」· M 代码 · 共 36 行
M
36 行
%MirrorDemo3
close all
clear all
imgFilename = [];
imgFilename{end+1} = 'locust1.png';
%imgFilename{end+1} = 'locust2.png';
for imgLoop = 1:length(imgFilename)
imCell{imgLoop} = imread(imgFilename{imgLoop});
imCell{imgLoop} = im2double(imCell{imgLoop});
EvalPrint('size(imCell{imgLoop})')
polyBoundaryVec = ExtractBoundaries( imCell{imgLoop} );
polyBoundaryVecCell{imgLoop} = polyBoundaryVec;
figure
for viewLoop = 1:5,
hold on
ShowPoly( polyBoundaryVecCell{imgLoop}{viewLoop},...
'FaceColor', MyPalette(viewLoop), 'EdgeColor', MyPalette(viewLoop), 'FaceAlpha', 0.15);
axis ij, axis equal
end
end
[mergedViewVec, vecOpt, polyBoundaryVecCell] = StaticMirrorObjMovingCamFn( ...
polyBoundaryVecCell, 'draw', 1, 'doFinalLm', 1, 'doLm', 0, 'mfe', 150, 'tol', 1e-13 );
[pMesh, kMesh] = VhMarchTetMirror( mergedViewVec, imCell, 'draw', 1);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?