How to threshold in this.?
조회 수: 6 (최근 30일)
이전 댓글 표시
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
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.
채택된 답변
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
추가 답변 (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!