⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 parseperson.m

📁 基于matlab写的对人体的分割程序
💻 M
字号:
addpath('util');%Load the trained modelload peopleModel;%iterModel is a data structure that encodes the part models and part%structuresiterModelStart = iterModel;%Load imageim = imread('im0229.jpg');subplot(221);imagesc(im);%Get edge map[m,t] = mydetGMc(im,2); m = double(imdilate(m > iterModel.edgeThresh,ones(3)));%Do first parsedisplay('First edge-based parse...');res1 = expected_genmodel_FHedgesN(m,iterModelStart);%Show itsubplot(222); imagesc(uint8(res1.a*2e3)); drawnow;       %Build region model[fgP imHist] = buildHistExps(im,condenseLRResp(res1.b,iterModel.colmask));%Run the region-based body model (one iteration)display('Second parse using region features from first parse...');iterModel.fgP = fgP > .5;res2 = expected_genmodel_FHedgecolsW(im,iterModel);subplot(223); imagesc(uint8(res2.a*2e3)); drawnow;%Show the best-scoring pose from the modeldisplay('Getting best pose...');segs = sample_genmodel_FHedgecolsW(im,iterModel);subplot(224); printSegs(im,segs{1});

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -