i try to use bwlabel, but there error that i can't fix
Afficher commentaires plus anciens
>> BW=imread('b.jpg');
>> L=bwlabel(BW);
Error using bwlabel
Expected input number 1, BW, to be two-dimensional.
...
please help
Réponse acceptée
Plus de réponses (1)
Image Analyst
le 1 Mar 2016
You call it BW but it's most likely not a binary image. It's probably gray scale or color. You need to binarize your grayscale image first. For example threshold it
grayImage = imread(filename);
BW = grayImage < 100;
2 commentaires
ElizabethR
le 2 Mar 2016
Image Analyst
le 2 Mar 2016
See my Image Segmentation Tutorial. It will show you how. http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862
Catégories
En savoir plus sur Image Thresholding dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!