资源简介
区域邻接图的合并规则,在进行区域合并时可以使用,希望对大家有用
代码片段和文件信息
function varargout = imRAG(img varargin)
%IMRAG Region adjacency graph of a labeled image
%
% Usage:
% ADJ = imRAG(IMG);
% computes region adjacencies graph of labeled 2D or 3D image IMG.
% The result is a N*2 array containing 2 indices for each couple of
% neighbor regions. Two regions are considered as neighbor if they are
% separated by a black (i. e. with color 0) pixel in the horizontal or
% vertical direction.
% ADJ has the format [LBL1 LBL2] LBL1 and LBL2 being vertical arrays the
% same size.
%
% LBL1 is given in ascending order LBL2 is given in ascending order for
% each LBL1. Ex:
% [1 2]
% [1 3]
% [1 4]
% [2 3]
% [2 5]
% [3 4]
%
% [NODES ADJ] = imRAG(IMG);
% Return two arrays: the first one is a [N*2] array cont
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 6283 2010-07-29 10:52 region merging RAG.m
----------- --------- ---------- ----- ----
6283 1
评论
共有 条评论