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

📄 compute_total_variation.m

📁 image denoising toolbox in matlab
💻 M
字号:
function TV = compute_total_variation(y, options)% compute_total_variation - compute the total variation of an image%%   TV = compute_total_variation(y);%%   Copyright (c) 2007 Gabriel Peyrenbdims = 2;if size(y,1)==1 || size(y,2)==1    nbdims = 1;endif nbdims==1    TV = sum( abs(diff(y)) );    return;end% options.bound = 'per';options.null = 0;g = grad(y, options);TV = sqrt( sum(g.^2,3) );TV = sum(TV(:));

⌨️ 快捷键说明

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