How to show only straight line in binary?
1 回表示 (過去 30 日間)
古いコメントを表示
Please help me to solve this problem. I just need straight line in the midle as white.
2 件のコメント
採用された回答
Image Analyst
2015 年 1 月 21 日
Several ways. Since the sample seems to be centered, simply crop your image with imcrop.
Another way is to use the whole image but get rid of blobs touching the border with imclearborder() and get rid of small remaining specs with bwareaopen().
Another way is to do a background correction so you don't get that junk in the bottom in the first place. To do that you need to divide your image by an image of a uniform gray sheet.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Image Processing Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!