how can I USE bwlabel command, please.....
2 次查看(过去 30 天)
显示 更早的评论
I am on a project .... and hooked. Below is a command I used and the error message I get. Please help.
filteredThresh = threshImage;
figure; imshow(filteredThresh); title('After median filter')
labeledImage1 = bwlabel(filteredThresh, 8);
Error:Undefined function 'bwlabel' for input arguments of type 'double'.
0 个评论
回答(2 个)
Guillaume
2018-2-1
Have you got the image processing toolbox? What does
ver
says?
You'd typically get this error if you don't have the toolbox installed and licensed
3 个评论
Guillaume
2018-2-1
You do not have the image processing toolbox installed. You need to install it, assuming it's included in your license.
Image Analyst
2018-2-1
It appears from your title that filteredThresh might be a gray scale image (like uint8), not a binary image (like logical). bwlabel() expects a binary image. What does this show:
whos filteredThresh
It should say logical.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Computer Vision Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!