How to create heat maps from an image?

조회 수: 12 (최근 30일)
DK
DK 2017년 12월 14일
댓글: Image Analyst 2021년 8월 2일
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
Elif
Elif 2021년 8월 2일
편집: Image Analyst 2021년 8월 2일
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