webinfo.txt

来自「对图像分割归一化算法进行编程」· 文本 代码 · 共 14 行

TXT
14
字号
http://www.eecs.berkeley.edu/Research/Projects/CS/vision/stellayu/

/*================================================================
* function [i,j] = cimgnbmap([nr,nc], nb_r, sample_rate)
*   computes the neighbourhood index matrix of an image,
*   with each neighbourhood sampled.
* Input:
*   [nr,nc] = image size
*   nb_r = neighbourhood radius, could be [r_i,r_j] for i,j
*   sample_rate = sampling rate, default = 1* Output:*   [i,j] = each is a column vector, give indices of neighbour pairs*     UINT32 type*       i is of total length of valid elements, 0 for first row*       j is of length nr * nc + 1** See also: imgnbmap.c, id2cind.m*
* Examples: 
*   [i,j] = imgnbmap(10, 20); % [10,10] are assumed
*
* Stella X. Yu, Nov 12, 2001.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?