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

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'.

답변 (2개)

Guillaume
Guillaume 2018년 2월 1일

0 개 추천

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

Muhammad Bayero
Muhammad Bayero 2018년 2월 1일
편집: Guillaume 2018년 2월 1일
response for ver
---------------------------------------------------------------------------------------------
MATLAB Version: 8.4.0.150421 (R2014b)
MATLAB License Number: ••••••
Operating System: Microsoft Windows 8 Enterprise Version 6.2 (Build 9200)
Java Version: Java 1.7.0_11-b21 with Oracle Corporation Java HotSpot(TM) Client VM mixed mode
---------------------------------------------------------------------------------------------
MATLAB Version 8.4 (R2014b)
Guillaume
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.
Muhammad Bayero
Muhammad Bayero 2018년 2월 1일
Okay. thanks

댓글을 달려면 로그인하십시오.

Image Analyst
Image Analyst 2018년 2월 1일

0 개 추천

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

this is the response..... whos filteredThresh Name Size Bytes Class Attributes
filteredThresh 251x201 50451 logical

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

질문:

2018년 2월 1일

댓글:

2018년 2월 1일

Community Treasure Hunt

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

Start Hunting!

Translated by