/*M///////////////////////////////////////////////////////////////////////////////////////1//2// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.3//4// By downloading, copying, installing or using the software you agree to this license.5// If you do not agree to this license, do not download, install,6// copy or use the software.7//8//9// License Agreement10// For Open Source Computer Vision Library11//12// Copyright (C) 2000-2008, Intel Corporation, all rights reserved.13// Copyright (C) 2009, Willow Garage Inc., all rights reserved.14// Third party copyrights are property of their respective owners.15//16// Redistribution and use in source and binary forms, with or without modification,17// are permitted provided that the following conditions are met:18//19// * Redistribution's of source code must retain the above copyright notice,20// this list of conditions and the following disclaimer.21//22// * Redistribution's in binary form must reproduce the above copyright notice,23// this list of conditions and the following disclaimer in the documentation24// and/or other materials provided with the distribution.25//26// * The name of the copyright holders may not be used to endorse or promote products27// derived from this software without specific prior written permission.28//29// This software is provided by the copyright holders and contributors "as is" and30// any express or implied warranties, including, but not limited to, the implied31// warranties of merchantability and fitness for a particular purpose are disclaimed.32// In no event shall the Intel Corporation or contributors be liable for any direct,33// indirect, incidental, special, exemplary, or consequential damages34// (including, but not limited to, procurement of substitute goods or services;35// loss of use, data, or profits; or business interruption) however caused36// and on any theory of liability, whether in contract, strict liability,37// or tort (including negligence or otherwise) arising in any way out of38// the use of this software, even if advised of the possibility of such damage.39//40//M*/4142#ifndef __OPENCV_STITCHING_PRECOMP_H__43#define __OPENCV_STITCHING_PRECOMP_H__4445#include "opencv2/opencv_modules.hpp"4647#include <vector>48#include <algorithm>49#include <utility>50#include <set>51#include <functional>52#include <sstream>53#include <iostream>54#include <cmath>55#include "opencv2/core.hpp"56#include "opencv2/core/ocl.hpp"57#include "opencv2/core/utility.hpp"58#include "opencv2/stitching.hpp"59#include "opencv2/stitching/detail/autocalib.hpp"60#include "opencv2/stitching/detail/blenders.hpp"61#include "opencv2/stitching/detail/timelapsers.hpp"62#include "opencv2/stitching/detail/camera.hpp"63#include "opencv2/stitching/detail/exposure_compensate.hpp"64#include "opencv2/stitching/detail/matchers.hpp"65#include "opencv2/stitching/detail/motion_estimators.hpp"66#include "opencv2/stitching/detail/seam_finders.hpp"67#include "opencv2/stitching/detail/util.hpp"68#include "opencv2/stitching/detail/warpers.hpp"69#include "opencv2/imgproc.hpp"70#include "opencv2/features2d.hpp"71#include "opencv2/calib3d.hpp"7273#ifdef HAVE_OPENCV_CUDAARITHM74# include "opencv2/cudaarithm.hpp"75#endif7677#ifdef HAVE_OPENCV_CUDAWARPING78# include "opencv2/cudawarping.hpp"79#endif8081#ifdef HAVE_OPENCV_CUDAFEATURES2D82# include "opencv2/cudafeatures2d.hpp"83#endif8485#ifdef HAVE_OPENCV_CUDALEGACY86# include "opencv2/cudalegacy.hpp"87#endif8889#ifdef HAVE_OPENCV_XFEATURES2D90# include "opencv2/xfeatures2d/cuda.hpp"91#endif9293#include "opencv2/core/private.hpp"9495#include "util_log.hpp"9697#endif9899100