perform_adaptive_filtering.cpp

来自「image denoising toolbox in matlab」· C++ 代码 · 共 17 行

CPP
17
字号
/*=================================================================
% perform_adaptive_filtering - perform adaptive filtering
%
%   B = perform_adaptive_filtering(A,H,I);
%
%   A is an n1 x n2 input image.
%   H is a p1 x p2 x m matrix, each H(:,:,k) being a filter.
%       Note that p1 and p2 should be odd integers.
%       Note that during filter, H(:,:,k) is automatically normalized
%       to sum to 1.
%   I is a p1 x p2 matrix of integer in {1,...,m}. I(i,j) is the filter to 
%       use in pixel (i,j)
%   B is an n x p output image.
%
%       B(i,j) = sum_x A(i+x1,j+x1) H(x1,x2,I(i,j))
%   
%   Copyright (c) 2006 Gabriel Peyr

⌨️ 快捷键说明

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