opencv on mbed

Dependencies:   mbed

Committer:
joeverbout
Date:
Thu Mar 31 21:16:38 2016 +0000
Revision:
0:ea44dc9ed014
OpenCV on mbed attempt

Who changed what in which revision?

UserRevisionLine numberNew contents of line
joeverbout 0:ea44dc9ed014 1 /*M///////////////////////////////////////////////////////////////////////////////////////
joeverbout 0:ea44dc9ed014 2 //
joeverbout 0:ea44dc9ed014 3 // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
joeverbout 0:ea44dc9ed014 4 //
joeverbout 0:ea44dc9ed014 5 // By downloading, copying, installing or using the software you agree to this license.
joeverbout 0:ea44dc9ed014 6 // If you do not agree to this license, do not download, install,
joeverbout 0:ea44dc9ed014 7 // copy or use the software.
joeverbout 0:ea44dc9ed014 8 //
joeverbout 0:ea44dc9ed014 9 //
joeverbout 0:ea44dc9ed014 10 // License Agreement
joeverbout 0:ea44dc9ed014 11 // For Open Source Computer Vision Library
joeverbout 0:ea44dc9ed014 12 //
joeverbout 0:ea44dc9ed014 13 // Copyright (C) 2000-2008, Intel Corporation, all rights reserved.
joeverbout 0:ea44dc9ed014 14 // Copyright (C) 2009, Willow Garage Inc., all rights reserved.
joeverbout 0:ea44dc9ed014 15 // Third party copyrights are property of their respective owners.
joeverbout 0:ea44dc9ed014 16 //
joeverbout 0:ea44dc9ed014 17 // Redistribution and use in source and binary forms, with or without modification,
joeverbout 0:ea44dc9ed014 18 // are permitted provided that the following conditions are met:
joeverbout 0:ea44dc9ed014 19 //
joeverbout 0:ea44dc9ed014 20 // * Redistribution's of source code must retain the above copyright notice,
joeverbout 0:ea44dc9ed014 21 // this list of conditions and the following disclaimer.
joeverbout 0:ea44dc9ed014 22 //
joeverbout 0:ea44dc9ed014 23 // * Redistribution's in binary form must reproduce the above copyright notice,
joeverbout 0:ea44dc9ed014 24 // this list of conditions and the following disclaimer in the documentation
joeverbout 0:ea44dc9ed014 25 // and/or other materials provided with the distribution.
joeverbout 0:ea44dc9ed014 26 //
joeverbout 0:ea44dc9ed014 27 // * The name of the copyright holders may not be used to endorse or promote products
joeverbout 0:ea44dc9ed014 28 // derived from this software without specific prior written permission.
joeverbout 0:ea44dc9ed014 29 //
joeverbout 0:ea44dc9ed014 30 // This software is provided by the copyright holders and contributors "as is" and
joeverbout 0:ea44dc9ed014 31 // any express or implied warranties, including, but not limited to, the implied
joeverbout 0:ea44dc9ed014 32 // warranties of merchantability and fitness for a particular purpose are disclaimed.
joeverbout 0:ea44dc9ed014 33 // In no event shall the Intel Corporation or contributors be liable for any direct,
joeverbout 0:ea44dc9ed014 34 // indirect, incidental, special, exemplary, or consequential damages
joeverbout 0:ea44dc9ed014 35 // (including, but not limited to, procurement of substitute goods or services;
joeverbout 0:ea44dc9ed014 36 // loss of use, data, or profits; or business interruption) however caused
joeverbout 0:ea44dc9ed014 37 // and on any theory of liability, whether in contract, strict liability,
joeverbout 0:ea44dc9ed014 38 // or tort (including negligence or otherwise) arising in any way out of
joeverbout 0:ea44dc9ed014 39 // the use of this software, even if advised of the possibility of such damage.
joeverbout 0:ea44dc9ed014 40 //
joeverbout 0:ea44dc9ed014 41 //M*/
joeverbout 0:ea44dc9ed014 42
joeverbout 0:ea44dc9ed014 43 #ifndef __OPENCV_STITCHING_AUTOCALIB_HPP__
joeverbout 0:ea44dc9ed014 44 #define __OPENCV_STITCHING_AUTOCALIB_HPP__
joeverbout 0:ea44dc9ed014 45
joeverbout 0:ea44dc9ed014 46 #include "opencv2/core.hpp"
joeverbout 0:ea44dc9ed014 47 #include "matchers.hpp"
joeverbout 0:ea44dc9ed014 48
joeverbout 0:ea44dc9ed014 49 namespace cv {
joeverbout 0:ea44dc9ed014 50 namespace detail {
joeverbout 0:ea44dc9ed014 51
joeverbout 0:ea44dc9ed014 52 //! @addtogroup stitching_autocalib
joeverbout 0:ea44dc9ed014 53 //! @{
joeverbout 0:ea44dc9ed014 54
joeverbout 0:ea44dc9ed014 55 /** @brief Tries to estimate focal lengths from the given homography under the assumption that the camera
joeverbout 0:ea44dc9ed014 56 undergoes rotations around its centre only.
joeverbout 0:ea44dc9ed014 57
joeverbout 0:ea44dc9ed014 58 @param H Homography.
joeverbout 0:ea44dc9ed014 59 @param f0 Estimated focal length along X axis.
joeverbout 0:ea44dc9ed014 60 @param f1 Estimated focal length along Y axis.
joeverbout 0:ea44dc9ed014 61 @param f0_ok True, if f0 was estimated successfully, false otherwise.
joeverbout 0:ea44dc9ed014 62 @param f1_ok True, if f1 was estimated successfully, false otherwise.
joeverbout 0:ea44dc9ed014 63
joeverbout 0:ea44dc9ed014 64 See "Construction of Panoramic Image Mosaics with Global and Local Alignment"
joeverbout 0:ea44dc9ed014 65 by Heung-Yeung Shum and Richard Szeliski.
joeverbout 0:ea44dc9ed014 66 */
joeverbout 0:ea44dc9ed014 67 void CV_EXPORTS focalsFromHomography(const Mat &H, double &f0, double &f1, bool &f0_ok, bool &f1_ok);
joeverbout 0:ea44dc9ed014 68
joeverbout 0:ea44dc9ed014 69 /** @brief Estimates focal lengths for each given camera.
joeverbout 0:ea44dc9ed014 70
joeverbout 0:ea44dc9ed014 71 @param features Features of images.
joeverbout 0:ea44dc9ed014 72 @param pairwise_matches Matches between all image pairs.
joeverbout 0:ea44dc9ed014 73 @param focals Estimated focal lengths for each camera.
joeverbout 0:ea44dc9ed014 74 */
joeverbout 0:ea44dc9ed014 75 void CV_EXPORTS estimateFocal(const std::vector<ImageFeatures> &features,
joeverbout 0:ea44dc9ed014 76 const std::vector<MatchesInfo> &pairwise_matches,
joeverbout 0:ea44dc9ed014 77 std::vector<double> &focals);
joeverbout 0:ea44dc9ed014 78
joeverbout 0:ea44dc9ed014 79 bool CV_EXPORTS calibrateRotatingCamera(const std::vector<Mat> &Hs, Mat &K);
joeverbout 0:ea44dc9ed014 80
joeverbout 0:ea44dc9ed014 81 //! @} stitching_autocalib
joeverbout 0:ea44dc9ed014 82
joeverbout 0:ea44dc9ed014 83 } // namespace detail
joeverbout 0:ea44dc9ed014 84 } // namespace cv
joeverbout 0:ea44dc9ed014 85
joeverbout 0:ea44dc9ed014 86 #endif // __OPENCV_STITCHING_AUTOCALIB_HPP__
joeverbout 0:ea44dc9ed014 87