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
masksIEnumerable<Mat>Source image masks
cornersIReadOnlyList<Point>Source image top-left corners
weightMapsIEnumerable<Mat>Weight maps, one per source image
Returns
- Rect
The region of interest covered by the weight maps