VAT  3.0
Video Analysis Tool
BlobSuperpixelModuleSEEDS.h
1 #ifndef BLOBSUPERPIXELMODULESEEDS_H
2 #define BLOBSUPERPIXELMODULESEEDS_H
3 
4 #include <map>
5 #include <string>
6 #include "Datapool.h"
7 #include "ModuleInterface.h"
8 #include <QDir>
9 #include "src/json.h"
10 #include "src/blobsuperpixel.h"
11 
13 public:
16 
17  //Set module configuration parameters
18  bool setParameters(QDomNode& config);
19 
20  //Initialization after reading parameters
21  bool init();
22 
23  //Function executed at each frame
24  bool run();
25 
26  //update parameters at runtime.
27  bool updateParameters();
28 
29  //Suppress extra pixel space per line
30  uchar *suppressExtraPixelSpace(QImage *image);
31 
32  //Desired number of superpixels. Note that the actual number may be smaller due to restrictions (depending on the image size and num_levels).
33  //Use getNumberOfSuperpixels() to get the actual number.
34  int m_superpixelnumber;
35  //Number of block levels. The more levels, the more accurate is the segmentation, but needs more memory and CPU time.
36  int m_num_levels;
37  //Use prior – enable 3x3 shape smoothing term if >0. A larger value leads to smoother shapes. prior must be in the range [0, 5].
38  int m_use_prior;
39  //Number of histogram bins.
40  int m_histogram_bins;
41  //If true, iterate each block level twice for higher accuracy.
42  bool m_double_step;
43  //Number of pixel level iterations. Higher number improves the result.
44  int m_num_iterations;
45 
46  //Size factor: multiplier for blob size, to calculate the superpixel segmentation
47  double m_sfactor;
48 
49 
50  //BlobSuperpixel implementation
51  BlobSuperpixel bs;
52 
53  private:
54  int currentFrame;
55  int line;
56  bool first;
57  bool validate_once;
58  bool different_bg_current;
59 };
60 
61 #endif // SUPERPIXELMODULESEEDS_H
Definition: blobsuperpixel.h:13
Definition: ModuleInterface.h:43
An object of this class is instantiated at main code, and this object is used by every class to push ...
Definition: Datapool.h:39
Definition: BlobSuperpixelModuleSEEDS.h:12