crvlt_keeplargest.m

来自「Edge detection in microscopy images usin」· M 代码 · 共 31 行

M
31
字号
% Help file for CRVLT_KEEPLARGEST mex-file%%   [CMOD, THVAL] = CRVLT_KEEPLARGEST(C, NCOEFFS)%%   If NCOEFFS >= 1:%   Retains the NCOEFFS largest (in magnitude) curvelet coefficients in the%   curvelet data structure C, setting the other coefficients to zero.%   CMOD has the same dimensions as C, and NCOEFFS non-zero entries.%   THVAL contains the threshold value, i.e. the magnitude of the smallest %   non-zero coefficient in CMOD.%  %   If 0 <= NCOEFFS < 1:%   The value NCOEFFS is interpreted as a fraction of the non-zero entries in%   NCOEFFS*100 percent of the non-zero entries are%   zero.%%% EXAMPLES:%%   To compute the reconstruction of the image 'Lena.jpg' using the%   1000 largest coefficients.%     im = imread('Lena.jpg');%     C = fdct_wrapping(im, 0);%     Cmod = crvlt_keeplargest(C, 1000);%     immod = idfct_wrapping(Cmod, 0);%     imagesc(immod), axis image, colormap gray %	%

⌨️ 快捷键说明

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