source: flair-dev/tags/0.1.1/include/FlairVisionFilter/Sobel.h

Last change on this file was 44, checked in by Sanahuja Guillaume, 8 years ago

m

File size: 1.7 KB
Line 
1/*!
2 * \file Sobel.h
3 * \brief Sobel algorithm
4 * \author Gildas Bayard, Copyright Heudiasyc UMR UTC/CNRS 7253
5 * \date 2015/10/07
6 * \version 4.0
7 */
8
9
10#ifndef SOBEL_H
11#define SOBEL_H
12
13#include <IODevice.h>
14#include <cv.h>
15
16namespace flair {
17 namespace core {
18 class cvimage;
19 }
20 namespace gui {
21 class LayoutPosition;
22 class SpinBox;
23 }
24}
25
26namespace flair { namespace filter {
27 /*! \class Sobel
28 *
29 * \brief Sobel algorithm
30 *
31 * Sobel is done using the DSP of the DM3730.
32 */
33 class Sobel : public core::IODevice {
34 public:
35 /*!
36 * \brief Constructor
37 *
38 * Construct an OpticalFlow filter at given position. \n
39 * After calling this function, position will be deleted as it is no longer usefull. \n
40 *
41 * \param parent parent
42 * \param position position
43 * \param name name
44 */
45 Sobel(const core::IODevice* parent,const gui::LayoutPosition* position,std::string name);
46
47 /*!
48 * \brief Destructor
49 *
50 */
51 ~Sobel();
52
53 /*!
54 * \brief Output image
55 *
56 * Output matrix is of the same size as the input image. \n
57 *
58 * \return the output image
59 */
60 core::cvimage* Output(void);
61
62 core::DataType const &GetOutputDataType() const;
63
64 private:
65 void UpdateFrom(const core::io_data *data);
66 core::cvimage *output;
67 gui::SpinBox *dx;
68 gui::SpinBox *dy;
69 };
70} // end namespace filter
71} // end namespace flair
72#endif // SOBEL_H
Note: See TracBrowser for help on using the repository browser.