How use the dequantization in matlab?

4 ビュー (過去 30 日間)
Pedro Fernandes
Pedro Fernandes 2015 年 11 月 17 日
編集済み: Pedro Fernandes 2015 年 11 月 17 日
Hello guys.
I use the function quantiz, and lloyds to quantize one matrix, the code is the next:
level= 2;
interval = (max(r(:))-min(r(:)))/2^level;
partition = (min(r(:))+ intervalo_r: intervalo: max(r(:)));
[~,idx] = max(partition);
partition(idx) = [];
codebook = (min(r(:)) + intervalo/2.0: intervalo: max(r(:)));
[Uindex,Uquants,Udistor] = quantiz(r(:),partition,codebook);
The Uindex is the index of quants for matrix r, and the Uquants it´s the values of quantization.
I need "desquantize" the Uquants, how i can get this?
thank you
Best regards
Pedro

回答 (0 件)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by