Module movemeter.heatmap
Functions
def displacement_direction_heatmaps(image_shape, rois, movements)
def displacement_heatmaps(image_shape, rois, movements)
-
Calculate speed heatmap images
image_shape Shape of the original images, (height, width) rois List of ROIs, each ROI [x1,x2,w,h] movements List of movements for each ROIs, each [[x1,x2,…],[y1,y2,…]]
Returns a list of 2D numpy arrays
def get_step(rois)
def speed_heatmaps(image_shape, rois, movements)
-
Calculate speed heatmap images
image_shape Shape of the original images, (height, width) rois List of ROIs, each ROI [x1,x2,w,h] movements List of movements for each ROIs, each [[x1,x2,…],[y1,y2,…]]
Returns a list of 2D numpy arrays