Table of Contents

Method CreateWeightMaps

Namespace
OpenCvSharp.Detail
Assembly
OpenCvSharp.dll

CreateWeightMaps(IEnumerable<Mat>, IReadOnlyList<Point>, IEnumerable<Mat>)

Creates weight maps for a fixed set of source images by their masks and top-left corners. The final image can be obtained by simple weighting of the source images.

public Rect CreateWeightMaps(IEnumerable<Mat> masks, IReadOnlyList<Point> corners, IEnumerable<Mat> weightMaps)

Parameters

masks IEnumerable<Mat>

Source image masks

corners IReadOnlyList<Point>

Source image top-left corners

weightMaps IEnumerable<Mat>

Weight maps, one per source image

Returns

Rect

The region of interest covered by the weight maps