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

📄 constructmatrix.m

📁 curves ti si s a nice code.
💻 M
字号:
function psfMatData = constructMatrix( PSFs, center )%%       psfMatData = constructMatrix( PSFs, center );%%  Construct psfMatrix data.%%  Given several PSFs and the locations of the corresponding point sources,%  this function sets up the data needed to do efficient matrix-vector%  multiplication (convolution) with a possibly space variant PSF.%%  Input:%        PSFs  -  d-dimensional cell array containing the PSFs%                 e.g., for 2-d problems, it is a 2-d cell array,%                       for 3-d problems, it is a 3-d cell array.%      center  -  cell array having same shape as PSFs, containing%                 location of the center of the corresponding PSF.%%  Output:%   psfMatData -  cell array containing the (complex) data needed to%                 do efficient matrix-vector multiplications.%%  J. Nagy  1/12/02psfMatData = cell(size(PSFs));for k = 1:size(PSFs,3)  for i = 1:size(PSFs,1)    for j = 1:size(PSFs,2)       psfMatData{i,j,k} = onePsfMatrix(PSFs{i,j,k}, center{i,j,k});    end  endend

⌨️ 快捷键说明

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