How would I use the k-means function from the stats toolbox on an image sequence?
    조회 수: 3 (최근 30일)
  
       이전 댓글 표시
    
I have a sequence of 2D grayscale images on which I would like to run the k-means clustering algorithm. My data is in the form m x n x p where p is the number of frames.
The matlab code available in the statistics toolbox expects the data X to be in the form n-by-p data matrix where the "Rows of X correspond to points, columns correspond to variables."
Can I use this code? How do I adapt my data to be in the expected format?
Thanks in Advance,
n
댓글 수: 1
채택된 답변
  Meshooo
      
 2014년 4월 4일
        First change your 2D gray scale images to double images using I1 = im2double(Z1) then apply the kmeans function to I1, I2, etc..
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
				Help Center 및 File Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


