⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 region_indices.m

📁 curves ti si s a nice code.
💻 M
字号:
function [Iidx, Jidx, Kidx] = region_indices( nregions, rsize )%%      [Iidx, Jidx, Kidx] = region_indices( nregions, rsize );%%  This function computes the starting and ending%  row and column indices subregions of an%  m-by-n array.  %%  Input:%         nregions  -  vector whose length is the same a s the number%                      of dimensions of the image.  This vector specifies%                      the number of subregions in each dimension.%         rsize     -  size of each subregion.%%  Output:%         Iidx      -  array with two columns, giving region indices for the%                      first image dimension.  The first column specifies%                      the index of the beginning of each region.  The second%                      column specifies the index of the end of each region.%         Jidx      -  array with two columns, giving region indices for the %                      second image dimension.%         Kidx      -  array with two columns, giving region indices for the%                      third image dimension.  If there is not a third dimension,%                      an empty array is returned.%%  J. Nagy  11/13/01Iidx = [(0:nregions(1)-1)'*rsize(1)+1, (1:nregions(1))'*rsize(1)];Jidx = [(0:nregions(2)-1)'*rsize(2)+1, (1:nregions(2))'*rsize(2)];Kidx = [(0:nregions(3)-1)'*rsize(3)+1, (1:nregions(3))'*rsize(3)];

⌨️ 快捷键说明

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