Safiron

Header Edge Det

Mar 8th, 2016
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.49 KB | None | 0 0
  1. #pragma once
  2. #define sqr(x) (x*x)
  3. #define PI (3.1415)
  4. #include "Libraries.h"
  5.  
  6. class EdgeDetection
  7. {
  8. private:
  9.     Mat original;
  10.     Mat sobelX;
  11.     Mat sobelY;
  12.     Mat edgesX;
  13.     Mat edgesY;
  14.     Mat output;
  15.     Mat outputColor;
  16.     float CountEdge(float gradY, float gradX);
  17.     float CountOrientantion(float gradY, float gradX);
  18.     Vec3f ColorEdges(float orentation);
  19.     void DeclareSobelOperators();
  20.  
  21. public:
  22.     EdgeDetection();
  23.     void ApplySobel(Mat *src, Mat *edges);
  24. };
Advertisement
Add Comment
Please, Sign In to add comment