heatmapExtract.RdInput jpg heatmap, color scale, table dimensions. Output matrix of corresponding values.
heatmapExtract(
heatmap,
scale,
scale_range = c(1, 0),
scale_direction = "vertical",
table_dim,
n_samples = 1,
verbose = TRUE
)Either image array or path to cropped jpg containing heatmap color info
Either image array or path to cropped jpg containing color scale info
Numeric vector of length two containing in order the topmost and bottommost (or leftmost and rightmost) value in the color scale.
Character vector, "vertical" or "horizontal" describing color scale orientation.
Numeric vector of length two containing in order the number of rows and number of columns in the heatmap image
Number of pixels to sample per cell. By default, heatmapExtract estimates the central pixel of each cell based on the heatmap pixel dimensions and table_dim. If n_samples is set > 1, then heatmapExtract will average across multiple near-central pixels.
Logical, if true then debugging information will be printed.