Method SetCostMap
- Namespace
- OpenCvSharp.XImgProc
- Assembly
- OpenCvSharp.dll
SetCostMap(Mat)
Interface to provide a more elaborated cost map, i.e. edge map, for the edge-aware term. This implementation is based on a rather simple gradient-based edge map estimation. To use a more complex edge map estimator (e.g. StructuredEdgeDetection) that may lead to improved accuracies, the internal edge map estimation can be bypassed here.
public void SetCostMap(Mat costMap)
Parameters
costMapMata type CV_32FC1 Mat is required.