DataProcess.h 609 B

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