資源簡介
區域鄰接圖的合并規則,在進行區域合并時可以使用,希望對大家有用
代碼片段和文件信息
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
評論
共有 條評論