The class for which heatmap is displayed is the same as the class selected in AnnotationList
Technical plan:
Save cellmap, patchmap and colormap for each chia ID
Upon application initialization, send cellmap and colormap to browser
Once playback is paused, upon hitting the heatmap on button, send a ajax request to rails for heatmap data with (videoId, frameId, classId, scale)
Upon heatmap data request, rails reads raw scores from mongo and creates intensity cellmap based on raw scores and patchmap
JS uses intensity cellmap array values and colormap to overlay a heatmap on top of currently displaying frame canvas. All other drawing is done on TOP of this heatmap
Heatmap display:
on
/off
buttonAnnotationList
Technical plan:
cellmap
,patchmap
andcolormap
for each chia IDcellmap
andcolormap
to browseron
button, send a ajax request to rails for heatmap data with(videoId, frameId, classId, scale)
cellmap
based on raw scores andpatchmap
cellmap
array values andcolormap
to overlay a heatmap on top of currently displaying frame canvas. All other drawing is done on TOP of this heatmap