function vect = invquantization(levelNumbers, scaling)
%...'levelNumber' contains the the index of the quantized level for each sample
%...'scaling' contains 2 values, the lowest quant. value and delta
%...'vect' is vector containing the reconstructed values
[M,N] = size(levelNumbers);
if (M>1)
levelNumbers = levelNumbers';
end
base = scaling(1);
delta = scaling(2);
maxLevel = max(levelNumbers);
%scaledLevels = [base : delta : (base+delta*(maxLevel-1))]'+ delta/2;
scaledLevels = [base : delta : (base+delta*(maxLevel-1))];
if (length(scaledLevels)==0)
vect = zeros(1,length(levelNumbers));
else
vect = scaledLevels(levelNumbers);
end
if any(abs(levelNumbers) > length(scaledLevels))
levelNumbers;
end
Inverse quantization
-
by farsun 2:35 AM
-
Tags:
Inverse narrow range Quantization

About The Author
Ut dignissim aliquet nibh tristique hendrerit. Donec ullamcorper nulla quis metus vulputate id placerat augue eleifend. Aenean venenatis consectetur orci, sit amet ultricies magna sagittis vel. Nulla non diam nisi, ut ultrices massa. Pellentesque sed nisl metus. Praesent a mi vel ante molestie venenatis.
Related Posts
Popular Posts
Recent Posts
02 May 2013
11 Jan 2013
normalized LMS
23 Jan 2011recurrsive least square filter(RLS)
23 Jan 2011
0 comments