fn matrix_to_image(
matrix: &[Vec<(HeatmapColor, f32)>],
colors: HeatmapColors,
) -> Result<Vec<u8>, ServiceError>
Expand description
Parses the matrix of scores with values 0-1 to raw bytes of a PNG image.
fn matrix_to_image(
matrix: &[Vec<(HeatmapColor, f32)>],
colors: HeatmapColors,
) -> Result<Vec<u8>, ServiceError>
Parses the matrix of scores with values 0-1 to raw bytes of a PNG image.