nabu.stitching.sample_normalization module

class nabu.stitching.sample_normalization.SampleSide(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: Enum

LEFT = 'left'
RIGHT = 'right'
class nabu.stitching.sample_normalization.Method(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: Enum

MEAN = 'mean'
MEDIAN = 'median'
nabu.stitching.sample_normalization.normalize_frame(frame: ndarray, side: SampleSide, method: Method, sample_width: int = 50, margin_before_sample: int = 0)[source]

normalize the frame from a sample section picked at the left of the right of the frame

Parameters:
  • frame – frame to normalize

  • side (SampleSide) – side to pick the sample

  • method (Method) – normalization method

  • sample_width (int) – sample width

  • margin (int) – margin before the sampling area