资源简介
基于区域生长的图像分割,可以自己设置区域生长点。区域生长是一种串行区域分割的图像分割方法。区域生长是指从某个像素出发,按照一定的准则,逐步加入邻近像素,当满足一定的条件时,区域生长终止。
代码片段和文件信息
clc;
clear all;
close all;
% path=input(‘Enter path of the image :‘‘s‘);
rgb=imread(‘2.jpg‘);
grimg=rgb2gray(rgb);
siz=size(grimg);
row=siz(1);
col=siz(2);
fin=zeros(size(grimg));
dup=fin;
imshow(grimg);
impixelinfo;
grimg=double(grimg);
for a=1:2
stx=input(‘Enter Row no :‘);
sty=input(‘Enter column no :‘);
th=input(‘Enter thershold :‘);
count=0;
while length(stx)~=0
count=count+1;
display([‘Pixels added :‘num2str(count)]);
ls=length(stx);
sr=stx(ls);
sc=sty(ls);
svalue=grimg(srsc);
stx=stx(1:ls-1);
sty=sty(1:ls-1);
if ls==1
stx=[];
sty=[];
end
for i=sr-1:sr+1
if i==0 || i==row+1
continue
end
for j=sc-1:sc+1;
if j==0 || j==col+1
continue
end
dif=grimg(ij)- svalue;
if abs(dif)<=th
if dup(ij)~=1
stx=[stx i];
sty=[sty j];
fin(ij)=grimg(ij);
dup(ij)=1;
end
end
end
end
end
figure;
subplot(121);
imshow(uint8(grimg));title(‘Original image‘);
impixelinfo;
subplot(122);
imshow(uint8(fin));hold on;
title(‘Grown image‘);
impixelinfo;
end
imhist(uint8(fin));
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 6525 2014-12-16 20:55 ins_seg\1.jpg
文件 3730 2014-12-16 16:21 ins_seg\2.jpg
文件 1179 2014-12-25 11:41 ins_seg\ins_seg.m
文件 1533 2014-11-05 03:22 ins_seg\license.txt
目录 0 2014-12-25 11:15 ins_seg\
相关资源
- 基于em算法的图像分割报告
- 区域生长算法对于遥感影像的应用
- 基于区域的分裂合并图像分割方法
- 新型的图像分割方法综述
- 基于区域内一致性和区域间差异性的
- 静态图像目标分割算法
- 深度学习 脑部图像分割
- 自动分割CT肺组织的论文
- 论文研究-基于改进的Chan-Vese模型与边
- 基于最大熵的图像分割
- 基于边缘的图像分割方法
- 基于深度学习的医学图像分割技术:
- FCN模型实现图像分割配套资料分享.
- windows+TensorFlow+mask R-CNN
- 基于蚁群算法的图像分割方法
- 条件随机场代码图像分割
- 图像分割评测指标,dice,voeASDRVD等
- 基于边缘检测的图像分割算法研究
- 阈值分割法在dicom图像分割中的应用
- 语义图像分割 deeplab-v3 tensorflow 源代码
- 最优阈值迭代实现图像分割
- 李纯明 博士水平集图像分割代码
- FCM用于图像分割
- 基于分水岭标记的图像分割
- 区域分裂合并法
- 基于区域增长的医学图像分割技术
- 一种基于视觉熵的图像分割压缩算法
- 改进的种子区域生长算法
- FCM图像分割
- 基于Mean-shift的图像分割
评论
共有 条评论