I want to remove the name which is on the left side please help me to solve this problem.I want to remove it completely.

 채택된 답변

Image Analyst
Image Analyst 2013년 12월 23일

0 개 추천

imshow(grayImage);
axis on;
grayImage(row1:row2, col1:col2) = 0; % Figure out what rows and columns to erase.
imshow(grayImage);

댓글 수: 5

Naishil shah
Naishil shah 2013년 12월 23일
But in all the images there are different names and location so how to remove it automatically?
Image Analyst
Image Analyst 2013년 12월 23일
편집: Image Analyst 2013년 12월 23일
Same process. Just figure out what row1, etc. are and erase the letters. You can use roifill() if you want. If you have letters with the same color or intensity as other parts of your scene, and letters of any crazy font, size, angle, and color, then it becomes more difficult to determine what is scene and what is text. You'd have to use much more sophisticated OCR detection algorithms in those cases. How many do you have? Why not just manually erase them with imtool or Photoshop or something?
Naishil shah
Naishil shah 2013년 12월 23일
I have 1000 images and if i will remove it manually it will take more time that is the reason and in all the images font are the same.All the fonts are times new roman.
Are all text pixels 255 and no other image pixels 255? If so, just get a binary mask of the letters and erase
letterPixels = grayImage == 255;
grayImage(letterPixels) = 0;
Are the images color? If so then find the mask for all three color channels and AND them together. Might there be other pixels that are not text that could be confused as text? If so you'll have to determine what's different about those white pixels than the text white pixels, such as the size, shape, or whatever. If that happens, then upload an image where it's erasing incorrect things.
Naishil shah
Naishil shah 2013년 12월 23일
thank you so much.

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

태그

질문:

2013년 12월 23일

댓글:

2013년 12월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by