A very basic question : How to dequantize this matrix?
1 回表示 (過去 30 日間)
古いコメントを表示
Hello all,
I have quantized matrix L by Quantization matrix Q :
K = floor( L. / Q + 0.5 )
Now I want to dequantize the matrix K at the receiver end. It doesn't seem to be correct to do this :
L1 = Q.* (ceil(K - 0.5)) neither : L2 = ceil(Q.* (K - 0.5))
( Lets say L = [0.75 0.025 ; 1.34 10.09] and Q = [1.5 2.35 ; 0.07 5.09]; The reconstructed L would then be : L1 = [ 1 -1 ; 2 8] and L = [1.5000 0 ; 1.3300 10.1800] Both results are different from original L)
Is there any way to reconstruct L? Could anyone please give me a hint ?
0 件のコメント
採用された回答
the cyclist
2014 年 2 月 8 日
編集済み: the cyclist
2014 年 2 月 8 日
You lose information when you apply the floor operator.
For example,
floor(4.1)
and
floor(4.2)
both give the answer 4. It is not possible to recover 4.1 or 4.2 from 4. The best you could hope to do would be to find the range of possible L which could have resulted in the value of K you found. Would that be helpful?
2 件のコメント
the cyclist
2014 年 2 月 8 日
You are only looking at a small number of cases. Instead, think about how to get MATLAB to calculate the error many times, and use the algorithm that gives the smallest error on average over those many times.
その他の回答 (1 件)
John D'Errico
2014 年 2 月 8 日
As the cyclist points out, once discarded, such information is impossible to recover.
However, if you knew additional information about the matrix, perhaps that the values represented a smooth function for example, then you might be able to try a recovery. For that case then you could attempt to find the smoothest function that was consistent with rounding to have yielded the values provided. This is not difficult to write, and is an idea we used in past years to smooth shapers in image processing applications.
Without such additional information however, you can never regain what was lost.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Cast and Quantize Data についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!