资源简介
图像分割源代码(Matlab),包含常用的各种图像分割技术代码

代码片段和文件信息
%Define our movie and scale factor
cd demo_people;
addpath(genpath(‘.‘));
frs = 1:201;
movieS = ‘ims/%.8d.jpg‘;
imscale = .6;
%First step; run stylized pose detector on each frame
INIT_DETECT = 0;
if INIT_DETECT
%First run our stylized person detector
segsAll = cell(length(frs)1);
%for fr = frs
for fr = 167
fr
%Read in image scaling it so torso is roughly 50 pixels long
imOrig = imread(sprintf(movieSfr));
%For this sequence hard-code in we‘re looking for some-one walking to the right with a torso 50 pixels high
im = imresize(imOrig(:end:-1:1:)imscale‘bilinear‘);
% Because the walking detector involves sampling may have to do this multiple times
% and take best-scoring one
segs = findWalkingPerson(im);
%Flip and re-size to regular image
[segs.xsegs.u] = deal(size(im2) - segs.x + 1-segs.u);
[segs.xsegs.ysegs.lensegs.w] = deal(segs.x/imscalesegs.y/imscalesegs.len/imscalesegs.w/imscale);
%Build an appearance model for each limbs and evaluate how good we are
modelSegs = buildLimbModelLin({imOrig}{segs});
%Sum up the fraction of missclassified pixels downweighting the upper arm by .5
segs.cost = [1 .5 1 1 1 1 1 1] * modelSegs.err;
segsAll{fr} = segs;
end
%Take the best scoring one
costs = repmat(100length(frs)1);
for i = 1:length(frs)
if ~isempty(segsAll{i})
costs(i) = segsAll{i}.cost;
end
end
[dummyfr] = min(costs);
%Build a quadratic logistic regression model for each limb
im = imread(sprintf(movieSfr));
modelSegs = buildLimbModelQuad({im}segsAll(fr));
save walkingDetections segsAll modelSegs;
else
load walkingDetections;
end
%Track by detecting with learned appearance model
trackSegs = cell(length(frs)1);
for fr = frs
fr
clf;
im = imread(sprintf(movieSfr));
%Can search over image and different scales if desired
im = imresize(imimscale‘bilinear‘);
subplot(231);
imshow(im); title(sprintf(‘frame %d‘fr));
%Sample body poses by computing the posterior with the sum-product algorithm
[ptscost] = findGeneralPerson(immodelSegs);
subplot(235);
showPersonPts(size(im)pts);
title(‘Posterior‘);
%Find the modes in the samples
trackSegs{fr} = findModePose(pts);
subplot(236);
showsegIm(imtrackSegs{fr});
title(‘Mode in posterior‘);
drawnow;
end
%Show the track
clf;
set(gcf‘doublebuffer‘‘on‘);
for fr = frs
im = imread(sprintf(movieSfr));
%Can search over image and different scales if desired
im = imresize(imimscale);
showsegIm(imtrackSegs{fr});
drawnow;
end
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2693 2006-07-27 05:23 图像分割代码\demo_people\ba
文件 3653 2006-07-26 08:43 图像分割代码\demo_people\buildLimbModelLin.m
文件 3448 2006-07-26 08:43 图像分割代码\demo_people\buildLimbModelQuad.m
文件 2539 2006-07-27 04:01 图像分割代码\demo_people\findGeneralPerson.m
文件 4076 2006-07-27 04:08 图像分割代码\demo_people\findModePose.m
文件 2350 2006-07-27 04:20 图像分割代码\demo_people\findWalkingPerson.m
文件 822 2006-07-27 05:13 图像分割代码\demo_people\GPL
文件 5054 2006-07-24 05:03 图像分割代码\demo_people\ims\00000001.jpg
文件 5710 2006-07-24 05:03 图像分割代码\demo_people\ims\00000002.jpg
文件 6163 2006-07-24 05:03 图像分割代码\demo_people\ims\00000003.jpg
文件 6183 2006-07-24 05:03 图像分割代码\demo_people\ims\00000004.jpg
文件 6158 2006-07-24 05:03 图像分割代码\demo_people\ims\00000005.jpg
文件 6202 2006-07-24 05:03 图像分割代码\demo_people\ims\00000006.jpg
文件 6256 2006-07-24 05:03 图像分割代码\demo_people\ims\00000007.jpg
文件 6318 2006-07-24 05:03 图像分割代码\demo_people\ims\00000008.jpg
文件 6247 2006-07-24 05:03 图像分割代码\demo_people\ims\00000009.jpg
文件 6305 2006-07-24 05:03 图像分割代码\demo_people\ims\00000010.jpg
文件 6377 2006-07-24 05:03 图像分割代码\demo_people\ims\00000011.jpg
文件 6398 2006-07-24 05:03 图像分割代码\demo_people\ims\00000012.jpg
文件 6456 2006-07-24 05:03 图像分割代码\demo_people\ims\00000013.jpg
文件 6390 2006-07-24 05:03 图像分割代码\demo_people\ims\00000014.jpg
文件 6363 2006-07-24 05:03 图像分割代码\demo_people\ims\00000015.jpg
文件 6418 2006-07-24 05:03 图像分割代码\demo_people\ims\00000016.jpg
文件 6456 2006-07-24 05:03 图像分割代码\demo_people\ims\00000017.jpg
文件 6544 2006-07-24 05:03 图像分割代码\demo_people\ims\00000018.jpg
文件 6423 2006-07-24 05:03 图像分割代码\demo_people\ims\00000019.jpg
文件 6357 2006-07-24 05:03 图像分割代码\demo_people\ims\00000020.jpg
文件 6453 2006-07-24 05:03 图像分割代码\demo_people\ims\00000021.jpg
文件 6606 2006-07-24 05:03 图像分割代码\demo_people\ims\00000022.jpg
文件 6668 2006-07-24 05:03 图像分割代码\demo_people\ims\00000023.jpg
............此处省略298个文件信息
相关资源
- 基于区域生长的图像分割MATLAB
- 细胞图像分割matlab代码
- Matlab图像分割边缘提取算法
- 基于lab空间的图像分割
- MATLAB大脑腔体图像分割
- LAB空间分别提取红色、绿色、紫色、
- 图像分割matlab
- 模糊聚类图像分割FCM/FLICM等
- ASM二维图像分割MATLAB代码
- matlab 静态图像分割
- 基于信息熵方法的多阈值图像分割算
- KFCM与FCM进行脑电图分割
- 纹理图像分割Matlab源代码 PDF PPT
- 基于变分水平集的图像分割
- MATLAB简介+图像轮廓线提取+图像分割技
- 遗传算法图像分割matlab+源代码
- 用matlab写的图像分割的代码
- MRI图像分割
- 基于颜色的图像分割算法MATLAB代码
- 一种效果极好的交互式图像分割算法
- GVFSnake(matlab)边缘检测和图像分割
- LBF和LDF模型的matlab程序,用于图像分
- 图像分割分形算法
- 基于形态学的图像分割算法研究
- 基于Matlab实现的图像分割的常用算法
- 基于FCN的侧扫声呐图像分割matlab代码
- MATLAB 彩色图像分割
- 图像分割程序matlab版
- Chan-Vese算法的MATLAB代码
- 细胞图像分割与计数
评论
共有 条评论