[][src]Function appr_dbscan::data_io::write_to_bmp_vec

pub fn write_to_bmp_vec<P>(
    file_name: &P,
    res: &VectorDBSCANResult,
    dimensionality: usize
) where
    P: AsRef<Path>, 

Writes the clusterized result to a bmp image using high contrast colors for the different clusters. This assumes that the clusterized data comes from a 24 bit BMP image and writes file_name as a 24 bit BMP image. The clusterized points must have 5 coordinates and they must be in this order to have a valid result: row column B G R

Parameters

  • file_name: the path to the file where the bmp will be written;
  • res: the result of the approximate DBSCAN algorithm where each point is represented as a vector. If this is not your type of result check write_to_bmp;
  • dimensionality: the number of components of the points in res.