From bd07eb280c7ae11719fbdc01176d0b624fa255c7 Mon Sep 17 00:00:00 2001 From: Jan Philipp Timme Date: Fri, 18 Dec 2015 13:16:13 +0100 Subject: [PATCH] [TASK] Add a machine for canny edge. --- canny_edge_machine.cpp | 27 +++++++++++++++++++++++++++ imageviewer-qt4.cpp | 2 ++ imageviewer-qt4.h | 1 + 3 files changed, 30 insertions(+) create mode 100644 canny_edge_machine.cpp diff --git a/canny_edge_machine.cpp b/canny_edge_machine.cpp new file mode 100644 index 0000000..aa4e9de --- /dev/null +++ b/canny_edge_machine.cpp @@ -0,0 +1,27 @@ +#ifndef CANNY_EDGE_MACHINE_C +#define CANNY_EDGE_MACHINE_C + +#include +#include +#include + +#include + +#include + +class CannyEdgeMachine { + + private: + LazyImage* img; + public: + CannyEdgeMachine(){ + // TODO + }; + + ~CannyEdgeMachine() { + // TODO + }; + +}; + +#endif diff --git a/imageviewer-qt4.cpp b/imageviewer-qt4.cpp index aafa773..d05a10f 100644 --- a/imageviewer-qt4.cpp +++ b/imageviewer-qt4.cpp @@ -650,6 +650,8 @@ void ImageViewer::applyBasicFilterWithOverflowHandling() { */ void ImageViewer::runCannyEdge(void) { //TODO + CannyEdgeMachine cem = CannyEdgeMachine(); + } /**************************************************************************************** * diff --git a/imageviewer-qt4.h b/imageviewer-qt4.h index 3a8f942..05aad74 100644 --- a/imageviewer-qt4.h +++ b/imageviewer-qt4.h @@ -56,6 +56,7 @@ #include "lazy_image.cpp" #include "filter_gui.cpp" +#include "canny_edge_machine.cpp" class QAction; class QLabel;