nabu.stitching.sample_normalization
source module nabu.stitching.sample_normalization
Classes
Functions
-
normalize_frame — normalize the frame from a sample section picked at the left of the right of the frame
source enum SampleSide(*args, **kwds)
Bases : Enum
Attributes
-
LEFT
-
RIGHT
source enum Method(*args, **kwds)
Bases : Enum
Attributes
-
MEAN
-
MEDIAN
source normalize_frame(frame: numpy.ndarray, side: SampleSide, method: Method, sample_width: int = 50, margin_before_sample: int = 0)
normalize the frame from a sample section picked at the left of the right of the frame
:param frame: frame to normalize :param SampleSide side: side to pick the sample :param Method method: normalization method :param int sample_width: sample width :param int margin: margin before the sampling area
Raises
-
TypeError
-
ValueError