필터 지우기
필터 지우기

K-nearest neighbors in segmentation of gray image

조회 수: 2 (최근 30일)
Makrim
Makrim 2014년 3월 31일
댓글: Image Analyst 2022년 3월 20일
Hi ,
I need help to implement k-nearest neighbors algorithm to segment a gray image.
I dispose of a Training image, and the original image to be segmented. But I don't have the knn algorithm to use it. KnnSearch corresponds to what I am looking to implement but I have Matlab r2009b thus it is not implemented.
please do you have the knn matlab code for 2 dimensionnal images ?

답변 (1개)

Image Analyst
Image Analyst 2014년 3월 31일
Do you mean like a knn filter for denoising where you replace a pixel by the mean of the brightest or darkest N values? If so, you can do that all with a few calls imfilter() or conv2() if you're clever about it.
  댓글 수: 7
Mohammed Abdul Wadood
Mohammed Abdul Wadood 2022년 3월 20일
I asking you @Image Analyst, Sorry, I didn't notice the term (knnsearch).
I working on denoising satellite image with gaussian noise. So, I asket about KNN filter.
thank you
Image Analyst
Image Analyst 2022년 3월 20일
Attached is my only demo of knn.

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

카테고리

Help CenterFile Exchange에서 Deep Learning for Image Processing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by