Classification Image using K Nearest Neighbours

[EDIT: Thu May 12 22:14:37 UTC 2011 Duplicate Removed - MKF]
hello , I'm trying to classify data from a picture using nearest neighbor method Class = knnclassify(Sample, Training, Group) problem is how i get Group
10x .

4 件のコメント

Andrew Newell
Andrew Newell 2011 年 5 月 10 日
This question doesn't make any sense. Could you please provide the relevant part of your code and describe in more detail what your question is?
Walter Roberson
Walter Roberson 2011 年 5 月 13 日
I believe the question is how to find the optimal number of clusters for KNN.
ops OPS
ops OPS 2011 年 5 月 14 日
okay Walter , exemple k means http://www.mathworks.com/matlabcentral/fileexchange/12979-clusterimg
i want it with KNN .i hope you understand me .
ops OPS
ops OPS 2011 年 5 月 14 日
clustering on an input RGB (m x n x 3) using K Nearest Neighbours .

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

回答 (1 件)

xiaolong
xiaolong 2011 年 5 月 16 日

0 投票

i just have the similar question like you ? i have segmented the image into different region ?but i don't know how to classification the region to different class ?who can help me ?

3 件のコメント

xiaolong
xiaolong 2011 年 6 月 2 日
i don't know why the answer is good ?
Fadi Alsuhimat
Fadi Alsuhimat 2018 年 12 月 7 日
Me to, I don't why this answer is good????
Image Analyst
Image Analyst 2018 年 12 月 7 日
It's not an answer. I unaccepted it. I have used knnsearch(). I'm attaching a simple demo for (x,y) data. If you need a demo, post your image and explanation in a new question.

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

質問済み:

2011 年 5 月 9 日

コメント済み:

2018 年 12 月 7 日

Community Treasure Hunt

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

Start Hunting!

Translated by