-
Notifications
You must be signed in to change notification settings - Fork 4
/
wavepaste.m
26 lines (25 loc) · 1.04 KB
/
wavepaste.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
function nc = wavepaste(type, c, s, n, x)
%WAVEPASTE Puts coefficients of a wavelet decomposition structure.
% NC = WAVEPASTE(TYPE, C, S, N) returns a new decomposition
% structure after pasting X into it based on TYPE and N.
%
% INPUTS:
% TYPE Coefficient category
% -----------------------------------------------------------------
% 'a' Approximation coefficients
% 'h' Horizontal details
% 'v' Vertical details
% 'd' Diagonal details
%
% [C, S] is a wavelet data structure.
% N specifies a decomposition level (ignored if TYPE = 'a').
% X is a two-dimensional approximation or detail coefficient
% matrix whose dimensions are appropriate for decomosition
% level N.
%
% See also WAVEWORK, WAVECUT, AND WAVECOPY.
%
% Taken from: Rafael C. Gonzalez, Richard E. Woods. and Steven L. Eddins,
% Digital Image Processing Using MATLAB®, Prentice-Hall Inc, 2002.
narginchk(5, 5);
nc = wavework('paste', type, c, s, n, x);