slitflow.img.montage module
- class Gray(info_path=None)[source]
Bases:
ImageCreate montage image from image stack.
This class is brief wrapper of
skimage.util.montage().Caution
The input image stack must be split so that all frames to be tiled into a montage image are included.
- Parameters:
reqs[0] (Image) – Image stack to create montage.
param["grid_shape"] (tuple of int) – See
skimage.util.montage().param["padding_width"] (int) – See
skimage.util.montage().param["split_depth"] (int) – File split depth number.
- Returns:
Montage Image
- Return type:
- static process(reqs, param)[source]
Create montage image from image stack.
- Parameters:
reqs[0] (numpy.ndarray) – Numpy 3D array with the shape of (frame number, height, width).
param["grid_shape"] (tuple of int) – See
skimage.util.montage().param["padding_width"] (int) – See
skimage.util.montage().
- Returns:
Montage image
- Return type:
- class RGB(info_path=None)[source]
Bases:
RGBCreate montage image from RGB image stack.
This class is brief wrapper of
skimage.util.montage().Caution
The input image stack must be split so that all frames to be tiled into a montage image are included.
- Parameters:
reqs[0] (Image) – Image stack to create montage.
param["grid_shape"] (tuple of int) – See
skimage.util.montage().param["padding_width"] (int) – See
skimage.util.montage().param["split_depth"] (int) – File split depth number.
- Returns:
Montage Image
- Return type:
- static process(reqs, param)[source]
Create montage image from image stack.
- Parameters:
reqs[0] (numpy.ndarray) – Numpy 3D array with the shape of (frames including RGB color frames, height, width).
param["grid_shape"] (tuple of int) – See
skimage.util.montage().param["padding_width"] (int) – See
skimage.util.montage().
- Returns:
Montage image
- Return type: