12345678910111213141516171819 |
- #pragma once
- #include <vector>
- #include "opencv2/opencv.hpp"
- //Ïà¹ØϵÊý
- void calcorrcoef(uint8_t* pSrc1, uint8_t* pSrc2, int width, int height, int widthstep, double& corr);
- int calDiff(uint8_t* pSrc1, uint8_t* pSrc2, int width, int height, double& sum);
- void average(uint8_t* pSrc, int width, int height, int widthstep, double& ave);
- void covariance(uint8_t* pSrc, int width, int height, int widthstep, double ave, double& cov);
- void varVector(std::vector<double>& vData, double& var);
- void cannyVector(std::vector<double>& vData, double& cannyCorr);
- void cannyProcess(cv::Mat& src, double& ratio);
|