diff --git a/exe/FaceLandmarkImg/FaceLandmarkImg.cpp b/exe/FaceLandmarkImg/FaceLandmarkImg.cpp index 931bc84..718d3ec 100644 --- a/exe/FaceLandmarkImg/FaceLandmarkImg.cpp +++ b/exe/FaceLandmarkImg/FaceLandmarkImg.cpp @@ -224,7 +224,7 @@ void write_out_landmarks(const string& outfeatures, const LandmarkDetector::CLNF featuresFile << "au intensities: " << au_intensities.size() << endl; featuresFile << "{" << endl; - for (int i = 0; i < au_intensities.size(); ++i) + for (size_t i = 0; i < au_intensities.size(); ++i) { // Use matlab format, so + 1 featuresFile << au_intensities[i].first << " " << au_intensities[i].second << endl; @@ -236,7 +236,7 @@ void write_out_landmarks(const string& outfeatures, const LandmarkDetector::CLNF featuresFile << "au occurences: " << au_occurences.size() << endl; featuresFile << "{" << endl; - for (int i = 0; i < au_occurences.size(); ++i) + for (size_t i = 0; i < au_occurences.size(); ++i) { // Use matlab format, so + 1 featuresFile << au_occurences[i].first << " " << au_occurences[i].second << endl; diff --git a/exe/FeatureExtraction/FeatureExtraction.cpp b/exe/FeatureExtraction/FeatureExtraction.cpp index 7139d91..06cea37 100644 --- a/exe/FeatureExtraction/FeatureExtraction.cpp +++ b/exe/FeatureExtraction/FeatureExtraction.cpp @@ -786,7 +786,7 @@ void post_process_output_file(FaceAnalysis::FaceAnalyser& face_analyser, string int begin_ind = -1; - for (int i = 0; i < tokens.size(); ++i) + for (size_t i = 0; i < tokens.size(); ++i) { if (tokens[i].find("AU") != string::npos && begin_ind == -1) { @@ -802,14 +802,14 @@ void post_process_output_file(FaceAnalysis::FaceAnalyser& face_analyser, string outfile << output_file_contents[0].c_str() << endl; // Write the contents - for (int i = 1; i < output_file_contents.size(); ++i) + for (size_t i = 1; i < output_file_contents.size(); ++i) { std::vector tokens; boost::split(tokens, output_file_contents[i], boost::is_any_of(",")); outfile << tokens[0]; - for (int t = 1; t < tokens.size(); ++t) + for (size_t t = 1; t < tokens.size(); ++t) { if (t >= begin_ind && t < end_ind) { diff --git a/lib/local/FaceAnalyser/src/FaceAnalyser.cpp b/lib/local/FaceAnalyser/src/FaceAnalyser.cpp index 3b24211..ae26d73 100644 --- a/lib/local/FaceAnalyser/src/FaceAnalyser.cpp +++ b/lib/local/FaceAnalyser/src/FaceAnalyser.cpp @@ -707,7 +707,7 @@ void FaceAnalyser::ExtractAllPredictionsOfflineReg(vector &image, const cv::Mat_ & if(parts_used) { - for (int part_model = 0; part_model < hierarchical_models.size(); ++part_model) + for (size_t part_model = 0; part_model < hierarchical_models.size(); ++part_model) { vector> mappings = this->hierarchical_mapping[part_model];