2022-10-28 15:18:51 -07:00
|
|
|
{% extends "base.html" %}
|
2022-10-11 13:46:53 -07:00
|
|
|
{% block content %}
|
|
|
|
|
|
|
|
<table class="img-table">
|
|
|
|
<tr>
|
|
|
|
<th class="img-table-heading">Input Image</th>
|
2022-10-16 15:46:26 -07:00
|
|
|
<th class="img-table-heading">Output Heatmap</th>
|
2022-10-28 20:49:54 -07:00
|
|
|
<th class="img-table-heading">Legend</th>
|
2022-10-11 13:46:53 -07:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
{# Original image #}
|
2022-10-11 16:03:00 -07:00
|
|
|
<td class="img-table-cell" id="orig-cell">
|
2022-10-12 12:27:52 -07:00
|
|
|
<img class="img-out" src="data:image/png;base64,{{ img_orig_b64 }}" alt="original image">
|
2022-10-11 13:46:53 -07:00
|
|
|
</td>
|
|
|
|
{# Result image #}
|
2022-10-11 16:03:00 -07:00
|
|
|
<td class="img-table-cell" id="res-cell">
|
2022-10-12 12:27:52 -07:00
|
|
|
<img class="img-out" src="data:image/png;base64,{{ img_res_b64 }}" alt="result image">
|
2022-10-11 13:46:53 -07:00
|
|
|
</td>
|
2022-10-28 20:49:54 -07:00
|
|
|
{# Legend #}
|
|
|
|
<td>
|
2022-10-11 16:03:00 -07:00
|
|
|
<table class="legend" id="legend">
|
|
|
|
<tr>
|
2022-10-12 17:37:31 -07:00
|
|
|
<th class="legend-heading">Color</th>
|
|
|
|
<th class="legend-heading">Temperature</th>
|
2022-10-11 16:03:00 -07:00
|
|
|
</tr>
|
|
|
|
{% for temp, color in legend.items() %}
|
|
|
|
<tr>
|
2022-10-12 17:37:31 -07:00
|
|
|
<td class="legend-cell"><div style="width:30px;height:20px;background-color:{{ color }};"></div></td>
|
2022-10-11 16:03:00 -07:00
|
|
|
<td class="legend-cell">{{ temp }}°C</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
</td>
|
2022-10-11 13:46:53 -07:00
|
|
|
</tr>
|
|
|
|
</table>
|
2022-10-27 12:01:35 -07:00
|
|
|
{# Temperature Frequency Plot #}
|
|
|
|
<strong>Temperature Distribution</strong>
|
2022-10-28 20:11:50 -07:00
|
|
|
{{ freq_plot | safe }}
|
2022-10-11 13:46:53 -07:00
|
|
|
|
|
|
|
{% endblock %}
|