/** @overload
@param a input single-channel array.
@param minVal pointer to the returned minimum value; NULL is used if not required.
@param maxVal pointer to the returned maximum value; NULL is used if not required.
@param minIdx pointer to the returned minimum location (in nD case); NULL is used if not required;
Otherwise, it must point to an array of src.dims elements, the coordinates of the minimum element
in each dimension are stored there sequentially.
@param maxIdx pointer to the returned maximum location (in nD case). NULL is used if not required.
/
CV_EXPORTS void minMaxLoc(const SparseMat& a, double minVal,
double* maxVal, int* minIdx = 0, int* maxIdx = 0);
求单通道图像的最大最小像灰度值;
参数:a 单通道图像
minVal:最小值
maxVal:最大值
minIdx:最小值的索引
maxIdx :最大值的索引
opencv minMaxLoc
最新推荐文章于 2024-09-13 21:42:09 发布