|
| 1 | +/* |
| 2 | + By downloading, copying, installing or using the software you agree to this |
| 3 | + license. If you do not agree to this license, do not download, install, |
| 4 | + copy or use the software. |
| 5 | + License Agreement |
| 6 | + For Open Source Computer Vision Library |
| 7 | + (3-clause BSD License) |
| 8 | + Copyright (C) 2013, OpenCV Foundation, all rights reserved. |
| 9 | + Third party copyrights are property of their respective owners. |
| 10 | + |
| 11 | + Redistribution and use in source and binary forms, with or without modification, |
| 12 | + are permitted provided that the following conditions are met: |
| 13 | + |
| 14 | + * Redistributions of source code must retain the above copyright notice, |
| 15 | + this list of conditions and the following disclaimer. |
| 16 | + |
| 17 | + * Redistributions in binary form must reproduce the above copyright notice, |
| 18 | + this list of conditions and the following disclaimer in the documentation |
| 19 | + and/or other materials provided with the distribution. |
| 20 | + |
| 21 | + * Neither the names of the copyright holders nor the names of the contributors |
| 22 | + may be used to endorse or promote products derived from this software |
| 23 | + without specific prior written permission. |
| 24 | + |
| 25 | + This software is provided by the copyright holders and contributors "as is" and |
| 26 | + any express or implied warranties, including, but not limited to, the implied |
| 27 | + warranties of merchantability and fitness for a particular purpose are |
| 28 | + disclaimed. In no event shall copyright holders or contributors be liable for |
| 29 | + any direct, indirect, incidental, special, exemplary, or consequential damages |
| 30 | + (including, but not limited to, procurement of substitute goods or services; |
| 31 | + loss of use, data, or profits; or business interruption) however caused |
| 32 | + and on any theory of liability, whether in contract, strict liability, |
| 33 | + or tort (including negligence or otherwise) arising in any way out of |
| 34 | + the use of this software, even if advised of the possibility of such damage. |
| 35 | + */ |
| 36 | + |
| 37 | +/** Information Flow algorithm implementaton for alphamatting */ |
| 38 | + |
| 39 | +#ifndef _OPENCV_ALPHAMAT_HPP_ |
| 40 | +#define _OPENCV_ALPHAMAT_HPP_ |
| 41 | + |
| 42 | +/** |
| 43 | + * @defgroup alphamat Alpha Matting |
| 44 | + * This module is dedicated to compute alpha matting of images, given the input image and an input trimap. |
| 45 | + * The samples directory includes easy examples of how to use the module. |
| 46 | + * |
| 47 | + * The implementation is based on Designing Effective Inter-Pixel Information Flow for Natural Image Matting by Yağız Aksoy, Tunç Ozan Aydın and Marc Pollefeys, CVPR 2019. |
| 48 | + * |
| 49 | + * This module has been originally developed by Muskaan Kularia and Sunita Nayak as a project |
| 50 | + * for Google Summer of Code 2019 (GSoC 19). |
| 51 | + * |
| 52 | + */ |
| 53 | + |
| 54 | +namespace cv{ namespace alphamat{ |
| 55 | + |
| 56 | +CV_EXPORTS_W void infoFlow(Mat& image, Mat& tmap, Mat& result); |
| 57 | + |
| 58 | +}} |
| 59 | +#endif |
0 commit comments