mirror of
https://gitcode.com/gh_mirrors/ope/OpenFace.git
synced 2026-07-31 08:17:45 +00:00
* Travis OpenCV4 update, testing Ubuntu with new OpenCV * Fix to Ubuntu travis * Another attempt at OpenCV 4.0 for Ubuntu * And another OpenCV attempt. * Simplifying the travis script * Ubuntu OpenCV 4 support. * Updating to OpenCV 4, for x64 windows. * Fixes to move to OpenCV 4 on windows. * Travis fix for OpenCV 4 on OSX * Renaming a lib. * Travis opencv4 fix. * Building OpenCV4 versions using appveyor. * Attempt mac travis fix. * Small travis fix. * Travis fix attempt. * First iteration in boost removal and upgrade to C++17 * Test with ocv 4.0 * Moving filesystem out of stdafx * Some more boost testing with cmake. * More CMAKE options * More compiler flag changes * Another attempt at compiler options. * Another attempt. * More filesystem stuff. * Linking to filesystem. * Cmake fix with target linking. * Attempting travis with g++-8 * Attempting to setup g++8 on travis linux. * Another travis change. * Adding OpenBLAS to travis and removing g++-8 * Fixing typo * More travis experiments. * More travis debugging. * A small directory change. * Adding some more travis changes. * travis typo fix. * Some reordering of travis, for cleaner yml * Removing `using namespace std` in order to avoid clash with byte and to make the code more consistent. * Working towards removing std::filesystem requirement, allow boost::filesystem as well. * Making boost an optional dependency * Fixing std issue. * Fixing cmake issue. * Fixing the precompiled header issue. * Another cmake boost fix. * Including missing files. * Removing unnecessary includes. * Removing more includes. * Changes to appveyor build, proper removal of VS2015 * If boost is present, do not need to link to filesystem. * Removing un-needed link library. * oops * Mac attempt at opencv4 travis. * Upgrading OCV to 4.1 on VS2018 * Downloading OpenCV binaries through a script * Triger an appveyor build. * Upgrading VS version. * Attempting VS2017 build * Adding win-32 libraries for OpenCV 4.1 * Adding OpenCV 32 bit libraries.
165 lines
4.3 KiB
C++
165 lines
4.3 KiB
C++
/***********************************************************************
|
|
* Software License Agreement (BSD License)
|
|
*
|
|
* Copyright 2008-2011 Marius Muja (mariusm@cs.ubc.ca). All rights reserved.
|
|
* Copyright 2008-2011 David G. Lowe (lowe@cs.ubc.ca). All rights reserved.
|
|
*
|
|
* Redistribution and use in source and binary forms, with or without
|
|
* modification, are permitted provided that the following conditions
|
|
* are met:
|
|
*
|
|
* 1. Redistributions of source code must retain the above copyright
|
|
* notice, this list of conditions and the following disclaimer.
|
|
* 2. Redistributions in binary form must reproduce the above copyright
|
|
* notice, this list of conditions and the following disclaimer in the
|
|
* documentation and/or other materials provided with the distribution.
|
|
*
|
|
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
|
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
|
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
*************************************************************************/
|
|
|
|
|
|
#ifndef OPENCV_FLANN_DEFINES_H_
|
|
#define OPENCV_FLANN_DEFINES_H_
|
|
|
|
#include "config.h"
|
|
|
|
#ifdef FLANN_EXPORT
|
|
#undef FLANN_EXPORT
|
|
#endif
|
|
#ifdef _WIN32
|
|
/* win32 dll export/import directives */
|
|
#ifdef FLANN_EXPORTS
|
|
#define FLANN_EXPORT __declspec(dllexport)
|
|
#elif defined(FLANN_STATIC)
|
|
#define FLANN_EXPORT
|
|
#else
|
|
#define FLANN_EXPORT __declspec(dllimport)
|
|
#endif
|
|
#else
|
|
/* unix needs nothing */
|
|
#define FLANN_EXPORT
|
|
#endif
|
|
|
|
|
|
#undef FLANN_PLATFORM_32_BIT
|
|
#undef FLANN_PLATFORM_64_BIT
|
|
#if defined __amd64__ || defined __x86_64__ || defined _WIN64 || defined _M_X64
|
|
#define FLANN_PLATFORM_64_BIT
|
|
#else
|
|
#define FLANN_PLATFORM_32_BIT
|
|
#endif
|
|
|
|
|
|
#undef FLANN_ARRAY_LEN
|
|
#define FLANN_ARRAY_LEN(a) (sizeof(a)/sizeof(a[0]))
|
|
|
|
namespace cvflann {
|
|
|
|
/* Nearest neighbour index algorithms */
|
|
enum flann_algorithm_t
|
|
{
|
|
FLANN_INDEX_LINEAR = 0,
|
|
FLANN_INDEX_KDTREE = 1,
|
|
FLANN_INDEX_KMEANS = 2,
|
|
FLANN_INDEX_COMPOSITE = 3,
|
|
FLANN_INDEX_KDTREE_SINGLE = 4,
|
|
FLANN_INDEX_HIERARCHICAL = 5,
|
|
FLANN_INDEX_LSH = 6,
|
|
FLANN_INDEX_SAVED = 254,
|
|
FLANN_INDEX_AUTOTUNED = 255,
|
|
|
|
// deprecated constants, should use the FLANN_INDEX_* ones instead
|
|
LINEAR = 0,
|
|
KDTREE = 1,
|
|
KMEANS = 2,
|
|
COMPOSITE = 3,
|
|
KDTREE_SINGLE = 4,
|
|
SAVED = 254,
|
|
AUTOTUNED = 255
|
|
};
|
|
|
|
|
|
|
|
enum flann_centers_init_t
|
|
{
|
|
FLANN_CENTERS_RANDOM = 0,
|
|
FLANN_CENTERS_GONZALES = 1,
|
|
FLANN_CENTERS_KMEANSPP = 2,
|
|
FLANN_CENTERS_GROUPWISE = 3,
|
|
|
|
// deprecated constants, should use the FLANN_CENTERS_* ones instead
|
|
CENTERS_RANDOM = 0,
|
|
CENTERS_GONZALES = 1,
|
|
CENTERS_KMEANSPP = 2
|
|
};
|
|
|
|
enum flann_log_level_t
|
|
{
|
|
FLANN_LOG_NONE = 0,
|
|
FLANN_LOG_FATAL = 1,
|
|
FLANN_LOG_ERROR = 2,
|
|
FLANN_LOG_WARN = 3,
|
|
FLANN_LOG_INFO = 4
|
|
};
|
|
|
|
enum flann_distance_t
|
|
{
|
|
FLANN_DIST_EUCLIDEAN = 1,
|
|
FLANN_DIST_L2 = 1,
|
|
FLANN_DIST_MANHATTAN = 2,
|
|
FLANN_DIST_L1 = 2,
|
|
FLANN_DIST_MINKOWSKI = 3,
|
|
FLANN_DIST_MAX = 4,
|
|
FLANN_DIST_HIST_INTERSECT = 5,
|
|
FLANN_DIST_HELLINGER = 6,
|
|
FLANN_DIST_CHI_SQUARE = 7,
|
|
FLANN_DIST_CS = 7,
|
|
FLANN_DIST_KULLBACK_LEIBLER = 8,
|
|
FLANN_DIST_KL = 8,
|
|
FLANN_DIST_HAMMING = 9,
|
|
|
|
// deprecated constants, should use the FLANN_DIST_* ones instead
|
|
EUCLIDEAN = 1,
|
|
MANHATTAN = 2,
|
|
MINKOWSKI = 3,
|
|
MAX_DIST = 4,
|
|
HIST_INTERSECT = 5,
|
|
HELLINGER = 6,
|
|
CS = 7,
|
|
KL = 8,
|
|
KULLBACK_LEIBLER = 8
|
|
};
|
|
|
|
enum flann_datatype_t
|
|
{
|
|
FLANN_INT8 = 0,
|
|
FLANN_INT16 = 1,
|
|
FLANN_INT32 = 2,
|
|
FLANN_INT64 = 3,
|
|
FLANN_UINT8 = 4,
|
|
FLANN_UINT16 = 5,
|
|
FLANN_UINT32 = 6,
|
|
FLANN_UINT64 = 7,
|
|
FLANN_FLOAT32 = 8,
|
|
FLANN_FLOAT64 = 9
|
|
};
|
|
|
|
enum
|
|
{
|
|
FLANN_CHECKS_UNLIMITED = -1,
|
|
FLANN_CHECKS_AUTOTUNED = -2
|
|
};
|
|
|
|
}
|
|
|
|
#endif /* OPENCV_FLANN_DEFINES_H_ */
|