how to fix the error "Undefined function or variable 'superpixels'." ?

조회 수: 4 (최근 30일)
SNEHA P S
SNEHA P S 2017년 3월 6일
답변: Walter Roberson 2017년 3월 15일
Hey, while doing some code for image segmentation i got stuck at an error saying "Undefined function or variable 'superpixels'".
A = imread('MobL.png'); [L,N] = superpixels(A,500); figure BW = boundarymask(L); imshow(imoverlay(A,BW,'cyan'),'InitialMagnification',67)
This is the code i had used. Please help me to rectify the error.

답변 (2개)

Walter Roberson
Walter Roberson 2017년 3월 15일
Superpixels was not introduced until R2016a.

Alexandra Harkai
Alexandra Harkai 2017년 3월 6일
This error is very self-explanatory: superpixels is not a variable that is defined for the scope, nor it is a function name that is on the MATALB search path.
To fix, find out where it should have been defined before using it. If it should be a variable, assign values to it. If it should be a function, make sure there exists a function on the MATLAB search path.
  댓글 수: 1
SNEHA P S
SNEHA P S 2017년 3월 15일
As i am a beginner in matlab please help me how to make sure a function exists on the matlab search path.

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

Community Treasure Hunt

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

Start Hunting!

Translated by