slitflow.fig.image module

class Gray(info_path=None)[source]

Bases: Figure

Create pseudo color map from a gray scale Image object.

Caution

The image should be split into a single frame image. In other words, the shape of reqs[0] in process() should be (1, height, width).

Parameters:
  • reqs[0] (Image) – Image to create image Figure. Required params; img_size, pitch.

  • param["lut_limits"] (list of float) – Lower and upper limit of LUT.

  • param["cmap"] (str, optional) – Color map name for matplotlib.pyplot.imshow(). Defaults to “viridis”.

Returns:

matplotlib Figure object

Return type:

Figure

set_info(param={})[source]

Copy info from reqs[0] and add params.

static process(reqs, param)[source]

Create pseudo color map from a gray scale image array.

Parameters:
Returns:

matplotlib Figure containing pseudo color image

Return type:

matplotlib.figure.Figure