Probelm in implementing Adaptive Histogram Equalization
6 次查看(过去 30 天)
显示 更早的评论
Hi,
I am trying to implement Contrast Limited Adaptive Historgram Equalization an image using the command adapthisteq(I) but i am getting error like
"Error using adapthisteq
Expected input number 1, I, to be two-dimensional."
I have attached my image here, can anyone pls guide me the problem with it.
Note: since the file format of tif is not supported in the attachment, therefore i am attaching jpg format of my file.
Thanks
回答(2 个)
Image Analyst
2019-10-8
Before calling adapthisteq(), cast the image to gray level if it's not already:
if ndims(I) == 3
I = rgb2gray(I)
end
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!