class_docstr: This is the matplotlib based GUI for a single analysis
  It assumes the analysis is simple image data (this could be abstracted)
class_docstr_tok: ["This","is","the","matplotlib","based","GUI","for","a","single","analysis","It","assumes","the","analysis","is","simple","image","data","(","this","could","be","abstracted",")"]
docstr: Set a linear mask - will be reshapen to the image size
  
  Args:
      mask (np.ndarray): dtype np.uint8 maek - values 0 or 1
docstr_tok: ["Set","a","linear","mask","-","will","be","reshapen","to","the","image","size","Args",":","mask","(","np.ndarray",")",":","dtype","np.uint8","maek","-","values","0","or","1"]
code: def set_selection_alpha(self, mask):
      """Set a linear mask - will be reshapen to the image size
  
      Args:
          mask (np.ndarray): dtype np.uint8 maek - values 0 or 1
      """
      self.alphas = np.reshape(
          mask * 255, self.image_dimensions
      ).astype(np.uint8)
      self.set_image_index(self.index)
  
imports: import os
  from pathlib import Path
  import numpy
  import matplotlib.pyplot
  import matplotlib.style
  from matplotlib.backends.backend_qt5agg import FigureCanvas
  from matplotlib.figure import Figure
  from PyQt5.QtWidgets import QVBoxLayout, QWidget, QLabel, QSpinBox, QFormLayout, QPushButton, QFileDialog, QSlider
  from PyQt5.QtCore import pyqtSlot, Qt
  from PIL import Image
label_desc: Use image node_id 6 for calling the HyperspectralImageCanvas obj's underlying member method code with example usage: obj.set_selection_alpha(mask) without return types