File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 8
8
#include < opencv2/saliency.hpp>
9
9
#include < vector>
10
10
#include < string>
11
- #include < dirent.h>
11
+ // #include <dirent.h>
12
12
#include < iostream>
13
13
#include < fstream>
14
14
@@ -27,7 +27,8 @@ int main()
27
27
// Download mit1003 saliency dataset in the working directory
28
28
// ALLSTIMULI folder store images
29
29
// ALLFIXATIONMAPS foler store training eye fixation
30
- DIR *dp;
30
+ // ************ Code only work in linux platform ****
31
+ /* DIR *dp;
31
32
struct dirent *dirp;
32
33
if((dp = opendir("ALLSTIMULI")) == NULL)
33
34
{
@@ -43,7 +44,7 @@ int main()
43
44
fixs.push_back(imread("ALLFIXATIONMAPS/" + f_name.substr(0, f_name.find_first_of('.')) + "_fixPts.jpg", 0));
44
45
}
45
46
46
- g.training (images, fixs);
47
+ g.training(images, fixs);*/
47
48
ofstream file;
48
49
Mat res2;
49
50
g.computeSaliency (imread (" ALLSTIMULI/i05june05_static_street_boston_p1010764.jpeg" ), res2);
You can’t perform that action at this time.
0 commit comments