How do I quantize and dequantize a matrix ?
이전 댓글 표시
Hi,
May I ask how do I quantize and dequantize a given matrix eg.row 93 and column 343.
댓글 수: 2
Image Analyst
2013년 12월 20일
First explain to us what the means. As you know all numbers in a computer are quantized because they're digital.
Derick Wong
2013년 12월 20일
편집: Derick Wong
2013년 12월 20일
채택된 답변
추가 답변 (1개)
John D'Errico
2013년 12월 20일
0 개 추천
Consider the vector [1.75 2.25]. After rounding, it maps to [2 2]. Can you possibly know after the rounding process what the original values were? Of course not.
You can do as Image Analyst suggests, and save the fractional parts thrown out, but this is about as much as you can do in general.
If you do know something about the relationship that created your data, then it MAY be possible to do more. For example, I once wrote an unrounding tool, that presumes the elements are rounded from some smooth functional relationship. It tries to find a maximally smooth curve through the data points, such that the curve is consistent with rounding.
The point is you can never recover the original values without more information provided by you.
카테고리
도움말 센터 및 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!