필터 지우기
필터 지우기

How to develop non uniform quantizer

조회 수: 8 (최근 30일)
Nik
Nik 2016년 1월 7일
댓글: Walter Roberson 2016년 1월 9일
Dear all, how to write a matlab code to produce non uniform quantizer on an image with smaller interval at high occurrence pixel, while larger interval at lower occurrence pixel. Thank you all.

답변 (1개)

Walter Roberson
Walter Roberson 2016년 1월 7일
You could use the concept of quantile to divide the range into bins of equal probability. After that the quantization itself can use either the quantization routines from the Signal Processing toolkit, or could be easily written in terms of histc()
  댓글 수: 2
Nik
Nik 2016년 1월 9일
how to apply quantile to an image? should we change it to matrix first?
Walter Roberson
Walter Roberson 2016년 1월 9일
Y = quantile(X,N) returns quantiles for N evenly spaced cumulative probabilities (1/(N + 1), 2/(N + 1), ..., N/(N + 1)) for integer N>1
Your input X would be a sampling from the probability distribution; the more samples you use the better the accuracy of the bin boundaries.
You would not do this on an actual data array, not unless perhaps the data array had been normalized to a finite range by way of external information about the valid range of the data. If you do not know the data range ahead of time then the receiver would not know how to dequantize properly.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Image Filtering and Enhancement에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by