source: flair-dev/trunk/include/FlairVisionFilter/ImgThreshold.h @ 44

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

m

File size: 1.7 KB
Line 
1/*!
2 * \file ImgThreshold.h
3 * \brief ImgThreshold algorithm
4 * \author Guillaume Sanahuja, Copyright Heudiasyc UMR UTC/CNRS 7253
5 * \date 2015/10/07
6 * \version 4.0
7 */
8
9
10#ifndef IMGTHRESHOLD_H
11#define IMGTHRESHOLD_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 ImgThreshold
28    *
29    * \brief ImgThreshold algorithm
30    *
31    * ImgThreshold is done using the DSP of the DM3730.
32    */
33    class ImgThreshold : 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            ImgThreshold(const core::IODevice* parent,const gui::LayoutPosition* position,std::string name);
46
47            /*!
48            * \brief Destructor
49            *
50            */
51            ~ImgThreshold();
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 *threshold;
68    };
69} // end namespace filter
70} // end namespace flair
71#endif // IMGTHRESHOLD_H
Note: See TracBrowser for help on using the repository browser.