No BSD License
-
func_DWT(I, level, Lo_D, Hi_D...
Matlab implementation of SPIHT (without Arithmatic coding stage)
-
func_InvDWT(I_W, S, Lo_R, Hi_...
Matlab implementation of SPIHT (without Arithmatic coding stage)
-
func_Myappcoef2(c,s,varargin)
APPCOEF2 Extract 2-D approximation coefficients.
-
func_Mywavedec2(x,n,varargin)
WAVEDEC2 Multilevel 2-D wavelet decomposition.
-
func_Mywaverec2(c,s,varargin)
WAVEREC2 Multilevel 2-D wavelet reconstruction.
-
func_decode_refine(img_waveda...
% img_wavedata_dec: input wavelet coefficients
-
func_decode_significancemap(i...
img_wavedata_dec: input wavelet coefficients
-
func_dominant_pass(img_waveda...
% img_wavedata: wavelet coefficients, if this step is not using the initial theshold
-
func_ezw_decode(dim, threshol...
dim: dimension of the wavelet matrix to reconstruct
-
func_ezw_demo_main
% main program to run this demo
-
func_ezw_enc(img_wavedata,ezw...
img_wavedata: wavelet coefficients to encode
-
func_huffman_decode(img_ezw_s...
-
func_huffman_encode(significa...
-
func_morton(pos,n);
The matrix should be n by n
-
func_rearrange_list(orig_list...
orig_list: original subordinate list, this is the old subordinate list
-
func_subordinate_pass(subordi...
% subordinate_list: current subordinate list containing coefficietns that are
-
func_treemask(x,y,dim);
x, y is the position in the matrix of the node where the EZW tree
-
func_treemask_inf(x, y, dim);
x y is the position in the matrix of the node where the EZW tree
-
readme.m
-
View all files
from
EZW (Embedded Zerotree Wavelet)
by Kanchi
Matlab implementation of EZW (Embedded Zerotree Wavelet)
|
| func_treemask_inf(x, y, dim);
|
function mask = func_treemask_inf(x, y, dim);
% x y is the position in the matrix of the node where the EZW tree
% should start; top left is x=1 y=1
%
% dim is the dimension of the mask (should be the same dimension as
% the wavelet data)
%
% mask is the returnend matrix to select the relevant coefficients
% from the wavelet coefficient matrix
% selected = mask .* wavelet_matrix;
% Copyright 2002 Paschalis Tsiaflakis, Jan Vangorp
% Revision 1.0 10/11/2002 19.00u
mask = zeros(dim);
x_min = x;
x_max = x;
y_min = y;
y_max = y;
while(x_max <= dim & y_max <= dim),
mask(x_min:x_max, y_min:y_max) = inf;
% calculate new subset
x_min = 2*x_min - 1;
x_max = 2*x_max;
y_min = 2*y_min - 1;
y_max = 2*y_max;
end
|
|
Contact us at files@mathworks.com