slitflow.fig.image module
- class Gray(info_path=None)[source]
Bases:
FigureCreate 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:
- static process(reqs, param)[source]
Create pseudo color map from a gray scale image array.
- Parameters:
reqs[0] (numpy.ndarray) – Image to create image figure.
param["lut_limits"] (list of float) – Lower and upper limit of LUT.
param["cmap"] (str) – Color map name for
matplotlib.pyplot.imshow().
- Returns:
matplotlib Figure containing pseudo color image
- Return type: