Function backend::service::plant_layer::matrix_to_image
source · fn matrix_to_image(
matrix: &Vec<Vec<(HeatmapColor, f32)>>
) -> Result<Vec<u8>, ServiceError>
Expand description
Parses the matrix of scores with values 0-1 to raw bytes of a PNG image.