merquaco.figures.plot_pixel_classification

merquaco.figures.plot_pixel_classification(pixel_classification: ndarray, ax: Axes = None, title: str = '', colormap_list: list = ['white', 'orange', 'green', 'red', 'blue'], colormap_labels: list = ['Off-tissue', 'Damage', 'Tissue', 'Lifting', 'Ventricles'], out_file: str | Path = '', dpi: int = 200)

Plots pixel classification of an experiment

Parameters:
  • pixel_classification (np.ndarray) – Array of pixel classification results

  • ax (plt.Axes, optional) – Axes on which to plot. Default is None.

  • colormap_list (list, optional) – List of colors for plotting. Default is [“white”, “orange”, “green”, “red”, “blue”].

  • colormap_labels (list, optional) – Labels for colormap. Default is [“Off-tissue”, “Damage”, “Tissue”, “Lifting”, “Ventricles”].

  • out_file (str or Path, optional) – Path at which to save plot. Default is ‘’.

  • dpi (int, optional) – DPI value for plot. Default is 200.

Return type:

None