Digitizing heatmap and map pixels to values
问题 I'd like to digitize a heatmap, Panel D in this source image As a first step, I tried to read the image in opencv and obtain a matrix import cv2 from pprint import pprint def read_as_digital(image): # mage dimensions h = image.shape[0] w = image.shape[1] print(h, w) pass if __name__ == '__main__': image = cv2.imread('ip.jpg', 1) pprint(image) read_as_digital(image) I could read the image as a matrix, but I don't know how to specify the beginning of the cells (corresponding to different