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

2 vues (au cours des 30 derniers jours)
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

Réponses (0)

Catégories

En savoir plus sur Statistics and Machine Learning Toolbox dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by