资源简介
基于区域生长的图像分割,可以自己设置区域生长点。区域生长是一种串行区域分割的图像分割方法。区域生长是指从某个像素出发,按照一定的准则,逐步加入邻近像素,当满足一定的条件时,区域生长终止。

代码片段和文件信息
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\
相关资源
- 基于OpenCV的数字识别468815
- 带式输送机托辊红外图像分割与定位
- 基于libsvm的图像分割代码
- 基于朴素贝叶斯分类法的图像分割
- 复杂背景与天气条件下的棉花叶片图
- 舌图像分割
- 图像分割方法在遥感图像分析中的应
-
Accurate subpixel edge location ba
sed on pa - 图像分割算法研究区域分割,数学形
- 基于图切算法的交互式图像分割技术
- 纹理图像分割论文+代码
- Dence CRF 条件随机场图像分割
- 图像分割-章毓晋
- Matalb图像分割边缘检测算子比较
- 交互式图像分割——算法与系统
- ITK入门教程_医学图像分割与配准_高清
- Canny算子分割遥感影像
- 分水岭图像分割算法C++程序源代码
- 基于形态学的图像分割 图片版
- CrackForest数据集
- 基于粒子群优算法的最大熵多阈值图
- 医学图像分割与配准(ITK实现 全2册)
- 章毓晋《图像分割》.PDF
- image segmentor source code and release 图像分
- 图像分割算法的实现
- 经典纹理图像分割论文+代码
- 医学图像分割全部代码
- 基于PCNN的彩色图像自动分割毕业论文
- CUDA的图像分割并行算法的设计与实现
- 马尔科夫随机场图像分割ICM代码
评论
共有 条评论