sir shows an error in line2

4 Ansichten (letzte 30 Tage)
ATHIRA P M
ATHIRA P M am 9 Okt. 2018
Kommentiert: Star Strider am 9 Okt. 2018
A = imread('athira.jpg'); [L,N] = superpixels(A,168); figure BW = boundarymask(L); imshow(imoverlay(A,BW,'cyan'),'InitialMagnification',67)

Akzeptierte Antwort

Star Strider
Star Strider am 9 Okt. 2018
Your code works correctly (with a different image) when I run it.
Note that the superpixels function was introduced in R2016a. If you have an earlier version of MATLAB and the Image Processing Toolbox, you will not be able to use it.
  2 Kommentare
ATHIRA P M
ATHIRA P M am 9 Okt. 2018
sir, my matlab version is R2013a.so how i proceed superpixel segmentation?
Star Strider
Star Strider am 9 Okt. 2018
You will have to upgrade to at least R2016a, although R2018b has a number of significant enhancements, so I recommend it.
The other option is to do an Internet search to see if there is a third-party function that will do that, in the File Exchange or elsewhere, for example Image Segmentation using SLIC SuperPixels and DBSCAN Clustering (link) by Peter Kovesi from The University of Western Australia . It is dated 2013, so I would look there first.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by