how can I USE bwlabel command, please.....

3 Ansichten (letzte 30 Tage)
Muhammad Bayero
Muhammad Bayero am 1 Feb. 2018
Kommentiert: Muhammad Bayero am 1 Feb. 2018
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'.

Antworten (2)

Guillaume
Guillaume am 1 Feb. 2018
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 Kommentare
Guillaume
Guillaume am 1 Feb. 2018
You do not have the image processing toolbox installed. You need to install it, assuming it's included in your license.
Muhammad Bayero
Muhammad Bayero am 1 Feb. 2018
Okay. thanks

Melden Sie sich an, um zu kommentieren.


Image Analyst
Image Analyst am 1 Feb. 2018
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.
  1 Kommentar
Muhammad Bayero
Muhammad Bayero am 1 Feb. 2018
this is the response..... whos filteredThresh Name Size Bytes Class Attributes
filteredThresh 251x201 50451 logical

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Computer Vision Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by