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

📄 crvlt_getdirdata.m

📁 Edge detection in microscopy images using curvelets
💻 M
字号:
function [dirs,vals] = crvlt_getdirdata(C, pos, levels)% [dirs, vals] = crvlt_getdirdata(C, pos, levels)%% Gets coefficients for all directions at pixel pos = [y x]% and on specified levels of curvelet data C.%% dirs is a cell array of the same length as levels, where% 	dirs{k} is an array from 1 to the number of directions% 	on level levels{k}%% vals is a cell array which for each specified level contains%	the coefficients corresponding to dirsdirs = cell(1, length(levels));vals = dirs;for k=1:length(levels)    dirs{k} = 1:length(C{levels(k)});    v = zeros(1,length(C{levels(k)}));    for dir = dirs{k},        idx = maptolev(pos, size(C{end}{1}), C, levels(k), dir);        v(dir) = C{levels(k)}{dir}(idx(1) + 1,idx(2) + 1);    end    vals{k} = v;endfunction idx = maptolev(pos, dims, C, lev, dir)outdim = size(C{lev}{dir});idx = round((pos - [0.5 0.5])./dims.*outdim);

⌨️ 快捷键说明

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