开发者

Finding number of quantizing layers in MATLAB

开发者 https://www.devze.com 2023-02-12 18:01 出处:网络
I\'m working on image processing, and I have an image that has been DCT\'d and quantized开发者_StackOverflow中文版 for 8 x 8 blocks of the 512 x 512 matrix, now I have to find how many quantizing leve

I'm working on image processing, and I have an image that has been DCT'd and quantized开发者_StackOverflow中文版 for 8 x 8 blocks of the 512 x 512 matrix, now I have to find how many quantizing levels that the image has. Do I need to take the top left pixel and place it in to an array and then place this on a graph calling hist?


length(unique(x(:))), where x is your image array. This is appropriate for grayscale images.

0

精彩评论

暂无评论...
验证码 换一张
取 消