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
Connect With Us
Recommend us on Google!
0 comments