How to threshold in this.?
2 次查看(过去 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!