Renesas GR-PEACH OpenCV Development / gr-peach-opencv-project-sd-card_update

Fork of gr-peach-opencv-project-sd-card by the do

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers bif.hpp Source File

bif.hpp

00001 /*
00002 By downloading, copying, installing or using the software you agree to this license.
00003 If you do not agree to this license, do not download, install,
00004 copy or use the software.
00005 
00006 
00007                           License Agreement
00008                For Open Source Computer Vision Library
00009                        (3-clause BSD License)
00010 
00011 Copyright (C) 2000-2015, Intel Corporation, all rights reserved.
00012 Copyright (C) 2009-2011, Willow Garage Inc., all rights reserved.
00013 Copyright (C) 2009-2015, NVIDIA Corporation, all rights reserved.
00014 Copyright (C) 2010-2013, Advanced Micro Devices, Inc., all rights reserved.
00015 Copyright (C) 2015, OpenCV Foundation, all rights reserved.
00016 Copyright (C) 2015, Itseez Inc., all rights reserved.
00017 Third party copyrights are property of their respective owners.
00018 
00019 Redistribution and use in source and binary forms, with or without modification,
00020 are permitted provided that the following conditions are met:
00021 
00022   * Redistributions of source code must retain the above copyright notice,
00023     this list of conditions and the following disclaimer.
00024 
00025   * Redistributions in binary form must reproduce the above copyright notice,
00026     this list of conditions and the following disclaimer in the documentation
00027     and/or other materials provided with the distribution.
00028 
00029   * Neither the names of the copyright holders nor the names of the contributors
00030     may be used to endorse or promote products derived from this software
00031     without specific prior written permission.
00032 
00033 This software is provided by the copyright holders and contributors "as is" and
00034 any express or implied warranties, including, but not limited to, the implied
00035 warranties of merchantability and fitness for a particular purpose are disclaimed.
00036 In no event shall copyright holders or contributors be liable for any direct,
00037 indirect, incidental, special, exemplary, or consequential damages
00038 (including, but not limited to, procurement of substitute goods or services;
00039 loss of use, data, or profits; or business interruption) however caused
00040 and on any theory of liability, whether in contract, strict liability,
00041 or tort (including negligence or otherwise) arising in any way out of
00042 the use of this software, even if advised of the possibility of such damage.
00043 */
00044 
00045 #ifndef __OPENCV_BIF_HPP__
00046 #define __OPENCV_BIF_HPP__
00047 
00048 #include "opencv2/core.hpp"
00049 
00050 namespace cv {
00051 namespace face {
00052 
00053 /** Implementation of bio-inspired features (BIF) from the paper:
00054  *  Guo, Guodong, et al. "Human age estimation using bio-inspired features."
00055  *  Computer Vision and Pattern Recognition, 2009. CVPR 2009.
00056  */
00057 class CV_EXPORTS_W BIF : public Algorithm {
00058 public:
00059     /** @returns The number of filter bands used for computing BIF. */
00060     CV_WRAP virtual int getNumBands() const = 0;
00061 
00062     /** @returns The number of image rotations. */
00063     CV_WRAP virtual int getNumRotations() const = 0;
00064 
00065     /** Computes features sby input image.
00066      *  @param image Input image (CV_32FC1).
00067      *  @param features Feature vector (CV_32FC1).
00068      */
00069     CV_WRAP virtual void compute(InputArray image,
00070                                  OutputArray features) const = 0;
00071 };
00072 
00073 /**
00074  * @param num_bands The number of filter bands (<=8) used for computing BIF.
00075  * @param num_rotations The number of image rotations for computing BIF.
00076  * @returns Object for computing BIF.
00077  */
00078 CV_EXPORTS_W cv::Ptr<BIF> createBIF(int num_bands = 8, int num_rotations = 12);
00079 
00080 }  // namespace cv
00081 }  // namespace face
00082 
00083 #endif  // #ifndef __OPENCV_FACEREC_HPP__
00084