inverse quantization in simulink

조회 수: 3 (최근 30일)
Anil Chowdary Tummala
Anil Chowdary Tummala 2021년 2월 4일
답변: Hari 2024년 5월 24일
Hi,
I had a question regarding quantization.
I applied 2-D DCT for an image in simulink and quantized samples.
However, now I need to get back quantized samples by doing an inverse quantization. May I know how do I achieve that?
I found below answer in the Matlab Community
I think quantization physically leads to data loss that is irreversible. i.e., quantization is a means of lossy compression. So there is no way to get your unquantized data back!
Is there any indirect way to perform inverse quantization using Tranpose or inverse of DCT Matrix or supplying a code book to the quantizer/encoder block in simulink

답변 (1개)

Hari
Hari 2024년 5월 24일
Hi,
I understand you have applied 2-D DCT on an image in Simulink and performed quantization on the samples. Now, you are looking to perform inverse quantization to retrieve the quantized samples.
Exact original data recovery post-quantization is not possible due to its lossy nature, inverse quantization aims to approximate the original pre-quantization values as closely as possible for further processing, like IDCT (Inverse Discrete Cosine Transform).
Performing Inverse Quantization:
  1. Implementiation: Typically, inverse quantization involves multiplying the quantized DCT coefficients by the same quantization matrix used during the forward quantization process. This step is crucial for the inverse DCT process to produce a reasonable approximation of the original image.
  2. Using a Quantization Matrix in Simulink: If you have the quantization matrix or can define it based on the quantization step used, you can implement a custom block (e.g., using a MATLAB Function block) that multiplies the quantized coefficients by this matrix.
  3. Simulink Block for Inverse DCT: After inverse quantization, use the 2-D Inverse DCT block available in Simulink to transform the coefficients back to the spatial domain. This block approximates the inverse of the DCT transformation applied before quantization.
  4. Considerations for Codebook or Matrix: While supplying a codebook or using the transpose/inverse of the DCT matrix isn't directly applicable for inverse quantization, understanding the quantization process and the quantization matrix used can guide you in correctly scaling the quantized coefficients during inverse quantization.
References:
Hope this helps!

카테고리

Help CenterFile Exchange에서 Signal Generation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by