crvlt_countnnz.m
来自「Edge detection in microscopy images usin」· M 代码 · 共 18 行
M
18 行
function [nrnz,nel]=countnnz(C, lev)% Counts the number of non-zero coefficients, and the total number of% coefficients in the curvelet-coefficient cell array Cif nargin < 2, lev = 1:length(C);endnrnz=0;nel=0;for k=lev, for j=1:length(C{k}), nrnz = nrnz + nnz(C{k}{j}); nel = nel + prod(size(C{k}{j})); endend
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?