-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrobustnorm2.m
More file actions
executable file
·22 lines (20 loc) · 1.1 KB
/
robustnorm2.m
File metadata and controls
executable file
·22 lines (20 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
function c = robustnorm2(f, f_hat, sigma_noise)
% ROBUSTNORM2 - function used in normalized convolution
% sigma_noise is the standard deviation of the input noise
%% -----------------------------------------------------------------------
% SUPERRESOLUTION - Graphical User Interface for Super-Resolution Imaging
% Copyright (C) 2005-2007 Laboratory of Audiovisual Communications (LCAV),
% Ecole Polytechnique Federale de Lausanne (EPFL),
% CH-1015 Lausanne, Switzerland
%
% This program is free software; you can redistribute it and/or modify it
% under the terms of the GNU General Public License as published by the
% Free Software Foundation; either version 2 of the License, or (at your
% option) any later version. This software is distributed in the hope that
% it will be useful, but without any warranty; without even the implied
% warranty of merchantability or fitness for a particular purpose.
% See the GNU General Public License for more details
% (enclosed in the file GPL).
%
% Latest modifications: November 6, 2006 by Karim Krichane
c = exp(-((f-f_hat).^2) ./ 2*sigma_noise^2);