Removing black patches from an image
1 次查看(过去 30 天)
显示 更早的评论
Hi,
I have the following image

I want to remove the black noisy regions on the right hand side, so as to keep only the digits in black and the rest in white. How to proceed?
3 个评论
Image Analyst
2013-3-31
That threshold was a disaster. It's just an example for you to learn where global thresholds don't work when you have large global gradients. There really is no point at all in trying to fix this image or doing what you ask. It's much better to avoid the problem in the first place. I solved it in your duplicate question using color segmentation - take a look back at your original question.
回答(2 个)
Walter Roberson
2013-3-30
blueimage = originalimage(:,:,3);
bwimage = blueimage >= threshold;
2 个评论
Walter Roberson
2013-3-30
For example, if the original image is "I", have a look at
T = I;T(T(:,:,[3 3 3])<64 | T(:,:,[1 1 1])>80) = 255;image(T)
fateme moein
2018-11-3
how to delete the dark areas in image processing?
1 个评论
Image Analyst
2018-11-3
This is not an Answer to soumyadip's question.
What does "delete" mean to you?
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!