フィルターのクリア

How to threshold in this.?

6 ビュー (過去 30 日間)
Lalit Patil
Lalit Patil 2013 年 2 月 16 日
clear all;
clc;
I = imread('2.png');
threshold = graythresh(I);
originalImage = im2bw(I, threshold);
i = bwareaopen(originalImage,70);
TI = imfill(i, 'holes');
imshow(TI)
I want to detect only the strip which is on object.?
This code not works.
Is there any other method or modification..?
  2 件のコメント
Image Analyst
Image Analyst 2013 年 2 月 16 日
I wasn't able to download your image. It saves it but it doesn't save it as a real PNG image even though the extension is PNG.
Lalit Patil
Lalit Patil 2013 年 2 月 16 日
i have changed link..

サインインしてコメントする。

採用された回答

Image Analyst
Image Analyst 2013 年 2 月 16 日
編集済み: Image Analyst 2013 年 2 月 16 日
Don't use graythresh(). Pick your own threshold, perhaps using my interactive thresholding function http://www.mathworks.com/matlabcentral/fileexchange/29372-thresholding-an-image that's in my File Exchange.
  3 件のコメント
Image Analyst
Image Analyst 2013 年 2 月 16 日
binaryImage = grayImage >= 88 & grayImage <=233;
Lalit Patil
Lalit Patil 2013 年 2 月 18 日
Very helpful Demo...:) It Solves many problems...

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by