How to create heat maps from an image?

11 Ansichten (letzte 30 Tage)
DK
DK am 14 Dez. 2017
Kommentiert: Image Analyst am 2 Aug. 2021
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.

Akzeptierte Antwort

Image Analyst
Image Analyst am 14 Dez. 2017
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 Kommentare
Elif
Elif am 2 Aug. 2021
Bearbeitet: Image Analyst am 2 Aug. 2021
Image Analyst
Image Analyst am 2 Aug. 2021
@Elif, I posted an answer to your new question in that thread.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by