Removing black patches from an image

조회 수: 5 (최근 30일)
Soumyadip
Soumyadip 2013년 3월 30일
댓글: Image Analyst 2018년 11월 3일
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
Soumyadip
Soumyadip 2013년 3월 30일
how to do that? I am a rookie to image processing in matlab. It would be kind if you specify further.
Image Analyst
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
Walter Roberson 2013년 3월 30일
blueimage = originalimage(:,:,3);
bwimage = blueimage >= threshold;
  댓글 수: 2
Soumyadip
Soumyadip 2013년 3월 30일
I tried that but still it is having some black regions(although lesser than the previous). Can you suggest any method to remove such noise?? What exactly is such noise called??
Walter Roberson
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
fateme moein 2018년 11월 3일
how to delete the dark areas in image processing?
  댓글 수: 1
Image Analyst
Image Analyst 2018년 11월 3일
This is not an Answer to soumyadip's question.
What does "delete" mean to you?
Please read this link then post your question in a new thread.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Get Started with Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by