nabu.stitching.frame_composition module

class nabu.stitching.frame_composition.ZFrameComposition(local_start_y: tuple, local_end_y: tuple, global_start_y: tuple, global_end_y: tuple)[source]

Bases: _FrameCompositionBase

class used to define intervals to know where to dump raw data or stitched data according to requested policy. The idea is to create this once for all for one stitching operation and reuse it for each frame.

local_start_y: tuple
local_end_y: tuple
global_start_y: tuple
global_end_y: tuple
browse()[source]
compose(output_frame: ndarray, input_frames: tuple)[source]
static compute_raw_frame_compositions(frames: tuple, key_lines: tuple, overlap_kernels: tuple, stitching_axis)[source]

compute frame composition for raw data

warning: we expect frames to be ordered y downward and the frame order to keep this ordering

static compute_stitch_frame_composition(frames, key_lines: tuple, overlap_kernels: tuple, stitching_axis: int)[source]

compute frame composition for stiching.

static pprint_z_stitching(raw_composition, stitch_composition)[source]

util to display what the output of the z stitch will looks like from composition