필터 지우기
필터 지우기

remove streaks from a image

조회 수: 3 (최근 30일)
rajashekar
rajashekar 2012년 2월 17일
편집: Matt J 2013년 10월 15일
Hi Guys !!!!!!!!!!
I have some images (grayscale) in which some text is written but with same color (which can easily get converted into black while binarizing the image) lines are drawn from one end to other . lines are continous and three or two pixel wide . some time line also intersect the text......
i have tried using imclose and strel, my lines diappear but my text also gets erased and everything becomes white.... i want to remove the line without affecting the text ...... Plz suggest methods !!!!!!
thanks a lot....

답변 (1개)

Image Analyst
Image Analyst 2012년 2월 17일
rajashekar, where did you upload your image? Can you post it to tinypic.com? People almost always like to have images to look at when giving advice on image processing - weird, huh?
Morphological closing always enlarges an image, unless your background (the paper) is the foreground (white) and your writing is actually the background (black). In that case closing will make the dark lines smaller and broken. I suggest you reverse the sign in your thresholding to make the text true (1 or white) and the background false (0 or black). If you insist on doing it in reverse like you are now, then try imopen() instead of imclose().
  댓글 수: 5
rajashekar
rajashekar 2012년 2월 18일
i'm sorry...."i got this image" is the input image i.e http://tinypic.com/r/kb6ner/5 and i should get the output as http://tinypic.com/r/yl8ub/5 or closer to this......after several operations i tried i could get as far as this image http://tinypic.com/r/2yzm0y0/5.....
Image Analyst
Image Analyst 2012년 2월 18일
That's not bad. Looks pretty good to me considering how badly corrupted your input image was. Maybe your expectations are unreasonably high for an image that is corrupted so severely.

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

카테고리

Help CenterFile Exchange에서 Modify Image Colors에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by