Removing black patches from an image
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi,
I have the following image
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/151983/image.png)
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 Kommentare
Image Analyst
am 31 Mär. 2013
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.
Antworten (2)
Walter Roberson
am 30 Mär. 2013
blueimage = originalimage(:,:,3);
bwimage = blueimage >= threshold;
2 Kommentare
Walter Roberson
am 30 Mär. 2013
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
am 3 Nov. 2018
how to delete the dark areas in image processing?
1 Kommentar
Image Analyst
am 3 Nov. 2018
This is not an Answer to soumyadip's question.
What does "delete" mean to you?
Siehe auch
Kategorien
Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!