MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   资料存档 (https://www.labfans.com/bbs/forumdisplay.php?f=72)
-   -   在MATLAB中查找量化层数 (https://www.labfans.com/bbs/showthread.php?t=26415)

poster 2019-12-14 20:13

在MATLAB中查找量化层数
 
我正在图像处理上,我已经对DCT图像进行了量化,并针对512 x 512矩阵的8 x 8块进行了量化,现在我必须查找该图像具有多少个量化级别。我是否需要将左上方的像素放置到数组中,然后将其放置在调用hist的图形上?



[B]回答:[/B]

length(unique(x(:))) ,其中x是您的图像数组。这适用于灰度图像。



[url=https://stackoverflow.com/questions/5093163]更多&回答...[/url]


所有时间均为北京时间。现在的时间是 05:06

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.