필터 지우기
필터 지우기

classification images using knn

조회 수: 3 (최근 30일)
nadia
nadia 2016년 1월 16일
댓글: Image Analyst 2016년 1월 18일
hi, I have some questions about knn. I have 2 different class of dogs and cats and I want to classify new images based on their class.I want to use knn in matlab but I do not know how to use it, because the example in knn's help is a vector but I work with image(matrices). please help me how can I provide knn inputs?

답변 (1개)

Image Analyst
Image Analyst 2016년 1월 16일
MATLAB has a webinar for a cat/dog detector: http://www.mathworks.com/videos/deep-learning-for-computer-vision-with-matlab-116080.html?s_tid=srchtitle It uses computer vision to identify a subimage with the animal in it, then it uses deep learning to classify the animal as either a cat or a dog.
  댓글 수: 2
nadia
nadia 2016년 1월 18일
Thanks for your answer but I want to know how to use knn.I think I should reshape each image to vector and then compare them. Is it true?
Image Analyst
Image Analyst 2016년 1월 18일
No, of course not. How could that work? Only if it were something like you're looking at gray levels and all your cats were black and all your dogs were white, but that's a very very restricted case and not robust at all.
If you just want to learn and use knn, try some of the demos out there that work well with it, rather than trying some situation where it won't work well.

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

카테고리

Help CenterFile Exchange에서 Image Processing and Computer Vision에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by