How to cluster heat maps?
조회 수: 6 (최근 30일)
이전 댓글 표시
Hi,
I have some contour heatmaps with 5 or 6 categorized pressure points for different channels (y-axis). The yellow shade means high pressure and blue is lower end. I was wondering if there is already an algorithm which clusters the heat maps into groups. For instance the one I am pasting here has some patches of yellow and I have some more similar graphs. Now I want that my algorithm should categorize them according to some cluster it defines intuitively or explicitly. So it gives me a "n" number of different clusters for lets say 100 plots and then I can work on it or optimize it if possible. Please help. Thank you so much.![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/226510/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/226510/image.jpeg)
댓글 수: 0
답변 (1개)
Image Analyst
2019년 6월 27일
Perhaps you just want to threshold top get a binary image of each pressure range.
pressureRange1 = pressureImage >= lowThreshold & pressureImage <= highThreshold;
or perhaps you want to use imquantize(). Then you can call colormap() to colorize the quantized image.
댓글 수: 6
참고 항목
카테고리
Help Center 및 File Exchange에서 Red에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!