How to use Hierarchical clustering with similarity matrix using the 20 nearest neighbors
2 views (last 30 days)
Show older comments
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 Comments
Answers (0)
See Also
Categories
Find more on Statistics and Machine Learning Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!