How to use Hierarchical clustering with similarity matrix using the 20 nearest neighbors

2 次查看(过去 30 天)
Hi, I have an infrared image with size N = 770*990 = 762300 pixels, when I want to clustering it by applying Hierarchical clustering it get out of memory because i must construct the similarity matrix with size N x N.
I have learned somewhere that we can take only k-nearest neighbors from each pixel (function 'knnsearch' in matlab) in the image and then apply the Hierarchical clustering algorithm to the similarity matrix with size [N x k]. My question is how to process with Hierarchical clustering if we have only the similarity matrix with the distance between pixel and k-neighbors instead of the whole distance between pixels.
Thanks in advance

回答(0 个)

类别

Help CenterFile 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!

Translated by