How to threshold in this.?
Show older comments
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 Comments
Image Analyst
on 16 Feb 2013
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
on 16 Feb 2013
Accepted Answer
More Answers (0)
Categories
Find more on Image Thresholding in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!