segmentation
All Data Structures Namespaces Files Functions Variables Modules Pages
lbp.h
1 #ifndef LBP_HPP_
2 #define LBP_HPP_
3 
6 /*
7  * Copyright (C) 2015 Department of iCub Facility - Istituto Italiano di Tecnologia
8  * Author: Vadim Tikhanoff
9  * email: vadim.tikhanoff@iit.it
10  * Permission is granted to copy, distribute, and/or modify this program
11  * under the terms of the GNU General Public License, version 2 or any
12  * later version published by the Free Software Foundation.
13  *
14  * A copy of the license can be found at
15  * http://www.robotcub.org/icub/license/gpl.txt
16  *
17  * This program is distributed in the hope that it will be useful, but
18  * WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
20  * Public License for more details
21  */
22 
23 #include <opencv2/opencv.hpp>
24 #include <limits>
25 
26 namespace lbp {
27 
28 // templated functions
29 template <typename _Tp>
30 void OLBP_(const cv::Mat& src, cv::Mat& dst);
31 
32 template <typename _Tp>
33 void ELBP_(const cv::Mat& src, cv::Mat& dst, int radius = 1, int neighbors = 8);
34 
35 template <typename _Tp>
36 void VARLBP_(const cv::Mat& src, cv::Mat& dst, int radius = 1, int neighbors = 8);
37 
38 // wrapper functions
39 void OLBP(const cv::Mat& src, cv::Mat& dst);
40 void ELBP(const cv::Mat& src, cv::Mat& dst, int radius = 1, int neighbors = 8);
41 void VARLBP(const cv::Mat& src, cv::Mat& dst, int radius = 1, int neighbors = 8);
42 
43 // Mat return type functions
44 cv::Mat OLBP(const cv::Mat& src);
45 cv::Mat ELBP(const cv::Mat& src, int radius = 1, int neighbors = 8);
46 cv::Mat VARLBP(const cv::Mat& src, int radius = 1, int neighbors = 8);
47 
48 }
49 #endif
Original code by philipp <bytefish[at]gmx[dot]de>
Definition: histogram.h:27
void VARLBP_(const cv::Mat &src, cv::Mat &dst, int radius=1, int neighbors=8)
Definition: lbp.cpp:83
void OLBP_(const cv::Mat &src, cv::Mat &dst)
Original code by philipp <bytefish[at]gmx[dot]de>
Definition: lbp.cpp:27