source: flair-src/branches/sanscv/lib/FlairVisionFilter/src/ImgThreshold.h@ 324

Last change on this file since 324 was 324, checked in by Sanahuja Guillaume, 5 years ago

removing opencv dependency

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
15namespace flair {
16 namespace core {
17 class Image;
18 }
19 namespace gui {
20 class LayoutPosition;
21 class SpinBox;
22 }
23}
24
25namespace flair { namespace filter {
26 /*! \class ImgThreshold
27 *
28 * \brief ImgThreshold algorithm
29 *
30 * ImgThreshold is done using the DSP of the DM3730.
31 */
32 class ImgThreshold : public core::IODevice {
33 public:
34 /*!
35 * \brief Constructor
36 *
37 * Construct an OpticalFlow filter at given position. \n
38 * After calling this function, position will be deleted as it is no longer usefull. \n
39 *
40 * \param parent parent
41 * \param position position
42 * \param name name
43 */
44 ImgThreshold(const core::IODevice* parent,const gui::LayoutPosition* position,std::string name);
45
46 /*!
47 * \brief Destructor
48 *
49 */
50 ~ImgThreshold();
51
52 /*!
53 * \brief Output image
54 *
55 * Output matrix is of the same size as the input image. \n
56 *
57 * \return the output image
58 */
59 core::Image* Output(void);
60
61 core::DataType const &GetOutputDataType() const;
62
63 private:
64 void UpdateFrom(const core::io_data *data);
65 core::Image *output;
66 gui::SpinBox *threshold;
67 };
68} // end namespace filter
69} // end namespace flair
70#endif // IMGTHRESHOLD_H
Note: See TracBrowser for help on using the repository browser.