driver.m
来自「Matlab skin detector。运用高斯混合模型训练的到人的皮肤颜色分」· M 代码 · 共 26 行
M
26 行
% Drives the EM experiment
images = [];
%images(:, :, :, 1) = imread('02-26-06_1110.jpg');
%images(:, :, :, 2) = imread('02-26-06_1111.jpg');
%images(:, :, :, 3) = imread('02-26-06_1112.jpg');
%images(:, :, :, 4) = imread('02-26-06_1113.jpg');
%images(:, :, :, 5) = imread('02-26-06_1114.jpg');
images(:, :, :, 1) = imread('02-26-06_1115.jpg');
images(:, :, :, 2) = imread('02-26-06_1116.jpg');
images(:, :, :, 3) = imread('02-26-06_1117.jpg');
iterations = 5;
% [skinMOG, nonskinMOG] = skinEM(images, iterations);
[skinMOG, nonskinMOG] = skinEM2(images, iterations);
skinMOG
nonskinMOG
for i = 1:size(images, 4)
image = images(:, :, :, i);
displayFigures(image, applyGMMs(image, skinMOG, nonskinMOG), (i-1)*3+1);
end;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?