How to create heat maps from an image?

12 次查看(过去 30 天)
Can anyone guide me how to create color-coded heatmaps based on the method below? I have been able to create a logical image and need help in creating the heat maps:
A map was generated by computing area within each 16x16 pixel sampling window over the logical image. In the map, bright red indicates a higher values, dark blue indicates lower values, and intermediate values are represented in a spectrum of yellow to green.

采纳的回答

Image Analyst
Image Analyst 2017-12-14
Sounds like they're simply computing the local average, something you can do with conv2()
windowSize = 17;
kernel = ones(windowSize) / windowSize^2;
out = conv(double(grayImage), kernel, 'same');
  7 个评论
Image Analyst
Image Analyst 2021-8-2
@Elif, I posted an answer to your new question in that thread.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Image Processing Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by