Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #define sqr(x) (x*x)
- #define PI (3.1415)
- #include "Libraries.h"
- class EdgeDetection
- {
- private:
- Mat original;
- Mat sobelX;
- Mat sobelY;
- Mat edgesX;
- Mat edgesY;
- Mat output;
- Mat outputColor;
- float CountEdge(float gradY, float gradX);
- float CountOrientantion(float gradY, float gradX);
- Vec3f ColorEdges(float orentation);
- void DeclareSobelOperators();
- public:
- EdgeDetection();
- void ApplySobel(Mat *src, Mat *edges);
- };
Advertisement
Add Comment
Please, Sign In to add comment