2017-05-08 21:36:23 -04:00
///////////////////////////////////////////////////////////////////////////////
// Copyright (C) 2017, Carnegie Mellon University and University of Cambridge,
// all rights reserved.
//
// ACADEMIC OR NON-PROFIT ORGANIZATION NONCOMMERCIAL RESEARCH USE ONLY
//
// BY USING OR DOWNLOADING THE SOFTWARE, YOU ARE AGREEING TO THE TERMS OF THIS LICENSE AGREEMENT.
// IF YOU DO NOT AGREE WITH THESE TERMS, YOU MAY NOT USE OR DOWNLOAD THE SOFTWARE.
//
// License can be found in OpenFace-license.txt
//
2016-04-28 15:40:36 -04:00
// Precompiled headers stuff
# ifndef __STDAFX_h_
# define __STDAFX_h_
// OpenCV includes
# include <opencv2/core/core.hpp>
# include <opencv2/imgproc.hpp>
# include <opencv2/objdetect.hpp>
# include <opencv2/calib3d.hpp>
# include <opencv2/imgcodecs.hpp>
# include <opencv2/highgui/highgui.hpp>
2018-05-08 19:44:34 +01:00
// dlib dependencies for face detection
# include <dlib/image_processing/frontal_face_detector.h>
# include <dlib/opencv.h>
2019-05-28 19:49:17 +01:00
// C++ standard stuff
2016-04-28 15:40:36 -04:00
# include <stdio.h>
# include <fstream>
# include <iostream>
# include <sstream>
# include <vector>
# include <map>
# define _USE_MATH_DEFINES
# include <cmath>
2019-05-28 19:49:17 +01:00
// Filesystem stuff
// It can either be in std filesystem (C++17), or in experimental/filesystem (partial C++17 support) or in boost
# if __has_include(<filesystem>)
# include <filesystem>
namespace fs = std : : filesystem ;
# elif __has_include(<experimental / filesystem>)
# include <experimental/filesystem>
namespace fs = std : : filesystem ;
# else
# include <boost/filesystem.hpp>
# include <boost/filesystem/fstream.hpp>
namespace fs = boost : : filesystem ;
# endif
2016-04-28 15:40:36 -04:00
2018-06-25 16:43:36 +02:00
// OpenBLAS stuff
# include <openblas_config.h>
// Instead of including cblas.h and f77blas.h (the definitions from OpenBLAS and other BLAS libraries differ, declare the required OpenBLAS functionality here)
# ifdef __cplusplus
extern " C " {
/* Assume C declarations for C++ */
# endif /* __cplusplus */
/*Set the number of threads on runtime.*/
void openblas_set_num_threads ( int num_threads ) ;
void sgemm_ ( char * , char * , blasint * , blasint * , blasint * , float * ,
float * , blasint * , float * , blasint * , float * , float * , blasint * ) ;
}
2016-04-28 15:40:36 -04:00
# endif