VisualizeVideo
 All Classes Functions Pages
saliency.h
1 //
2 // File: saliency.h
3 // Author: Sebastian Montabone
4 //
5 // Created on September 24, 2008, 2:57 PM
6 //
7 // Fine-grained Saliency library (FGS).
8 // This library calculates fine grained saliency in real time using integral images.
9 // It requires OpenCV.
10 //
11 
12 #ifndef _saliency_H
13 #define _saliency_H
14 #include <opencv\cv.h>
15 
16 
17 using namespace cv;
18 
20 
29 class __declspec(dllexport) Saliency
30 {
31 public:
32  Saliency();
33  void calcIntensityChannel(IplImage *src, IplImage *dst);
34 
35 private:
36  void copyImage(IplImage *src, IplImage *dst);
37  void getIntensityScaled(IplImage * integralImage, IplImage * gray, IplImage *saliencyOn, IplImage *saliencyOff, int neighborhood);
38  float getMean(IplImage * srcArg, CvPoint PixArg, int neighbourhood, int centerVal);
39  void mixScales(IplImage **saliencyOn, IplImage *intensityOn, IplImage **saliencyOff, IplImage *intensityOff, const int numScales);
40  void mixOnOff(IplImage *intensityOn, IplImage *intensityOff, IplImage *intensity);
41  void getIntensity(IplImage *srcArg, IplImage *dstArg, IplImage *dstOnArg, IplImage *dstOffArg, bool generateOnOff);
42 };
43 
44 #endif /* _saliency_H */
45