compute_best_direction.m

来自「该程序包为用MATLAB编写的一个实现小波变换的工具箱」· M 代码 · 共 17 行

M
17
字号
function [MW,theta,L] = compute_best_direction(M,T,s)

% compute_best_direction - optimize the lagrangian over a single square
%
%   [MW,theta] = compute_best_direction(M,T,s);
%
%   M is a 2D image, s is a super-resolution factor
%       (the # of tested direction is 2*n*s)
%   T is the threshold (the higher, the most you want to compress)
%   theta is the optimal direction, ie. the one that gives minimizes the
%   Lagrangian
%       L(theta) = | M - F_theta(M) |^2 + m * T^2
%   where :
%       F_theta(M) = perform_warped_haar(M,theta,1)
%       m = #{ coefficients of |F_theta(M)| above T }
%
%   Copyright (c) 2005 Gabriel Peyr

⌨️ 快捷键说明

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