zigvu / kheer

Internal zigvu tool for data management.
0 stars 0 forks source link

Heatmap display #5

Closed eacharya closed 9 years ago

eacharya commented 9 years ago

Heatmap display:

  1. Heatmap on/off button
  2. Heatmap displayed only when video is paused
  3. The class for which heatmap is displayed is the same as the class selected in AnnotationList

Technical plan:

  1. Save cellmap, patchmap and colormap for each chia ID
  2. Upon application initialization, send cellmap and colormap to browser
  3. Once playback is paused, upon hitting the heatmap on button, send a ajax request to rails for heatmap data with (videoId, frameId, classId, scale)
  4. Upon heatmap data request, rails reads raw scores from mongo and creates intensity cellmap based on raw scores and patchmap
  5. 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
eacharya commented 9 years ago

Merged to development: https://github.com/zigvu/kheer/commit/e2652a0c1df89a59aff8bf051ba45e37815f1731

Heatmap display is triggered by keystroke h.