开发者

Image equalisation

开发者 https://www.devze.com 2023-04-07 16:26 出处:网络
I have an image. I would like to equalize histogram using histeq. But, I want only certain portion of the image be equalized and the rest part be displayed as it is. I could display the whole 开发者_运

I have an image. I would like to equalize histogram using histeq. But, I want only certain portion of the image be equalized and the rest part be displayed as it is. I could display the whole 开发者_运维问答image and equalized image in two different plots but I want them to be in the same image such that certain portion of the image is different.

figure
imshow(a)
figure
b = a(1:100, 1:100);
b = histeq(b)
imshow(b)

Now how do I merge both these figures into one.


Is the region to be equalized a(1:100, 1:100)?

If so, just set a(1:100, 1:100) = b.

0

精彩评论

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

关注公众号