Why is the "imsegkmeans" function missing although I have the Image Processing Toolbox installed?

3 ビュー (過去 30 日間)
I'm attempting to use the imsegkmeans function. I have the Image Processing toolbox installed, yet MATLAB displays the following:
--------------------------------------------------------------------------------
Undefined function or variable 'imsegkmeans'.
Error in Kmeans (line 17)
pixel_labels = imsegkmeans(ab,nColors,'NumAttempts',5);
--------------------------------------------------------------------------------
Thanks in advance
  2 件のコメント
thejas A V
thejas A V 2019 年 1 月 12 日
u need to include that function in current folder ,other wise it dosent work.please let me know if got the link for function file ,even im finding with same issue.
Image Analyst
Image Analyst 2019 年 1 月 12 日
Not true. It will automatically be on the path for the Image Processing Toolbox if you have that toolbox. Since it will be on the search path, you DO NOT need to include it in the current folder.
Most likely you don't have a recent enough version, like the staff Answer below says.

サインインしてコメントする。

回答 (1 件)

Pinkesh Narsinghani
Pinkesh Narsinghani 2018 年 12 月 4 日
I think you might be getting this error because you are trying to use it on version earlier than MATLAB R2018b.This feature was introduced in R2018b .You can take a look at release notes to check new functionalities introduced in an Update : Release Notes.
To do k-means clustering in an earlier version , you can follow the workflow mentioned in the link below :https://in.mathworks.com/help/images/color-based-segmentation-using-k-means-clustering.html
  3 件のコメント
Darshan Jain
Darshan Jain 2019 年 7 月 25 日
It still uses imsegkmeans fuction.
saleh salous
saleh salous 2022 年 3 月 14 日
any one can solve the problem?

サインインしてコメントする。

タグ

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by