How do I create a simliarity matrix in MATLAB?

后端 未结 4 1655
温柔的废话
温柔的废话 2020-12-12 01:13

I am working towards comparing multiple images. I have these image data as column vectors of a matrix called \"images.\" I want to assess the similarity of images by first c

4条回答
  •  猫巷女王i
    2020-12-12 01:47

    there is an already implemented function pdist, if you have a matrix A, you can directly do

    Sim= squareform(pdist(A))

提交回复
热议问题