爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 5078|回复: 2

bwboundaries 这个函数。N,A干嘛用的求高手解答。翻译不过去了

[复制链接]
发表于 2014-4-24 23:42:09 | 显示全部楼层 |阅读模式

登录后查看更多精彩内容~

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
%BWBOUNDARIES Trace region boundaries in binary image.
查找二进制图片的边界
%   B = BWBOUNDARIES(BW) traces the exterior boundary of objects, as well
%   as boundaries of holes inside these objects. It also descends into the
%   outermost objects (parents) and traces their children (objects
%   completely enclosed by the parents).
Bw=BWOUNDARIES 查找图片及内部空洞的边界。同样会由父图片遗传到子图片(子图片指完全被父图片包围)中。
BW must be a binary image where
%   nonzero pixels belong to an object and 0-pixels constitute the background. B is a P-by-%   1 cell array, where P is the number of objects
BW适用于背景像素值为0,目标是由非零像素组成的二进制图片。B是一个大小为P*1的元胞数组,P指的是目标和空洞的数量。
%   and holes. Each cell contains a Q-by-2 matrix, where Q is the number of
%   boundary pixels for the corresponding region. Each row of these Q-by-2
%   matrices contains the row and column coordinates of a boundary pixel.
每个元胞包含Q*2大小的矩阵,Q是相应目标边界的像素的个数(如果像素边长为1Q就是指周长)。Q*2矩阵内的每一行包含边界像素点的行、列坐标。这个坐标是按顺时针方向存放的。
%   The coordinates are ordered in a clockwise direction.
%
%   B = BWBOUNDARIES(BW,CONN) specifies the connectivity to use when
%   tracing parent and child boundaries. CONN may be either 8 or 4. The
%   default value for CONN is 8.
%B=BWBOUNDARIES(BW,CONN)指定连通用于查找父图片和子图片的边界时。CONN可以是8或者4,默认值为8
%   B = BWBOUNDARIES(...,OPTIONS) provides an optional string input. String
%   'noholes' speeds up the operation of the algorithm by having it search
%   only for object (parent and child) boundaries.  By default, or when
%   'holes' string is specified, the algorithm searches for both object and
%   hole boundaries.
%   B = BWBOUNDARIES(...,OPTIONS) 提供一个可选配的字符输入用于控制算法。
  'noholes'的算法只计算目标的边界从而提升运算速度。  'holes' 计算目标和空洞的边界。
%   [B,L] = BWBOUNDARIES(...) returns the label matrix, L, as the second
%   output argument. Objects and holes are labeled. L is a two-dimensional
%   array of nonnegative integers that represent contiguous regions. The
%   k-th region includes all elements in L that have value k. The number of
%   objects and holes represented by L is equal to max(L(:)). The
%   zero-valued elements of L make up the background.
%  [B,L] = BWBOUNDARIES(...)L是代表连通区域的一个二维、非负、整数数组。 第K个区域包含在L中所有的值等于K的元素。目标和空洞的数量等于max(L(:))。L中的背景值等于0.
%   [B,L,N,A] = BWBOUNDARIES(...) returns the number of objects found
(N)
%   and an adjacency matrix A. The first N cells in B are object
%   boundaries. A represents the parent-child-hole dependencies. A is a
%   square, sparse, logical matrix with side of length max(L(:)), whose
%   rows and columns correspond to the position of boundaries stored in B.    [B,L,N,A] = BWBOUNDARIES(...)
%   The boundaries enclosed by a B{m} as well as the boundary enclosing
%   B{m} can both be found using A as follows:
%
%      enclosing_boundary  = find(A(m,:));
%      enclosed_boundaries = find(A(:,m));
看不懂如何破!
%   Class Support
%   -------------
%   BW can be logical or numeric and it must be real, 2-D, and nonsparse.
%   L, and N are double. A is sparse logical.
BW可以是逻辑型,数值型?,但必须是实数,2—D,非稀疏矩阵
密码修改失败请联系微信:mofangbao
发表于 2014-4-25 09:59:32 | 显示全部楼层

回帖奖励 +1 金钱

请注意提问请在免积分提问专区提问
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2014-4-25 21:41:24 | 显示全部楼层
Aires 发表于 2014-4-25 09:59
请注意提问请在免积分提问专区提问

额,,,第一次发帖,也不知道注意什么,谢谢提醒!
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

快速回复 返回顶部 返回列表