Skip to content

Commit 6019298

Browse files
committed
fix windows platform bugs 2
1 parent 459aba3 commit 6019298

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

modules/saliency/samples/DeepGaze1Sample.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include <opencv2/saliency.hpp>
99
#include <vector>
1010
#include <string>
11-
#include <dirent.h>
11+
//#include <dirent.h>
1212
#include <iostream>
1313
#include <fstream>
1414

@@ -27,7 +27,8 @@ int main()
2727
//Download mit1003 saliency dataset in the working directory
2828
//ALLSTIMULI folder store images
2929
//ALLFIXATIONMAPS foler store training eye fixation
30-
DIR *dp;
30+
//************ Code only work in linux platform ****
31+
/* DIR *dp;
3132
struct dirent *dirp;
3233
if((dp = opendir("ALLSTIMULI")) == NULL)
3334
{
@@ -43,7 +44,7 @@ int main()
4344
fixs.push_back(imread("ALLFIXATIONMAPS/" + f_name.substr(0, f_name.find_first_of('.')) + "_fixPts.jpg", 0));
4445
}
4546
46-
g.training(images, fixs);
47+
g.training(images, fixs);*/
4748
ofstream file;
4849
Mat res2;
4950
g.computeSaliency(imread("ALLSTIMULI/i05june05_static_street_boston_p1010764.jpeg"), res2);

0 commit comments

Comments
 (0)