how can calculate the frequency of given gray scale image?...
3 次查看(过去 30 天)
显示 更早的评论
I am doing split and merge segmentation algorithm for segmentation. In that algorithm first will be determined bimodality parameter using frequency and variance of gray-level input image, but i dont know how to calculate frequency value from an input image...
0 个评论
回答(1 个)
Image Analyst
2014-3-25
I assume you mean frequency of intensity rather than spatial frequency. So just use imhist():
[pixelCounts, grayLevels] = imhist(grayImage, 256);
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Modify Image Colors 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!