removing unwanted pixels
古いコメントを表示
I have an image

in which i need only the text ,i want to remove extra whitr regions around the text.please help
6 件のコメント
Walter Roberson
2012 年 4 月 25 日
*Everything* is text in *some* writing system.
Jan
2012 年 4 月 25 日
Manually or automatically? Is the picture printed on paper, in a graphics file or imported to Matlab already? Does the problem concern this picture only or do you have a set of pictures? How much noise is allowed in the pictures? Please, kash, post all relevant details.
kash
2012 年 4 月 25 日
kash
2012 年 4 月 25 日
Sean de Wolski
2012 年 4 月 25 日
How can you tell whether it's German/French/Spanish/English by looking at the text alone?
For example: whiskey
Jan
2012 年 5 月 22 日
@Sean: A partial solution of your problem: "whiskey" is not German.
採用された回答
その他の回答 (2 件)
Teja Muppirala
2012 年 4 月 25 日
Maybe IMFILL might work?
A = [1 1 1 1; 1 0 1 0; 1 1 1 0]
imfill(A)
imfill(A) - A
2 件のコメント
kash
2012 年 4 月 25 日
Sean de Wolski
2012 年 4 月 25 日
@kash, what 's not automagical about that?
Stephen
2012 年 5 月 22 日
load the image and make it so black==0 and white==1, then...
Words = imclearborder(~IMG)
if you want to crop it, you can try
Words(sum(Words,2)==0,:)=[];
Words(:,sum(Words)==0)=[];
カテゴリ
ヘルプ センター および File Exchange で Image Processing Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!