libcrn
3.9.5
A document image processing library
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
src
libcrn
CRNFeature
CRNGradientMatching.h
Go to the documentation of this file.
1
/* Copyright 2015 Université Paris Descartes
2
*
3
* This file is part of libcrn.
4
*
5
* libcrn is free software: you can redistribute it and/or modify
6
* it under the terms of the GNU Lesser General Public License as published by
7
* the Free Software Foundation, either version 3 of the License, or
8
* (at your option) any later version.
9
*
10
* libcrn is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU Lesser General Public License for more details.
14
*
15
* You should have received a copy of the GNU Lesser General Public License
16
* along with libcrn. If not, see <http://www.gnu.org/licenses/>.
17
*
18
* file: CRNGradientMatching.h
19
* \author Yann LEYDIER
20
*/
21
22
#ifndef CRNGradientMatching_H
23
#define CRNGradientMatching_H
24
25
#include <
CRNImage/CRNImage.h
>
26
27
namespace
crn
28
{
29
class
ImageGradient;
30
/****************************************************************************/
37
struct
GradientModel
38
{
39
GradientModel
(
const
ImageGradient
&igr);
40
GradientModel
(
const
GradientModel
&) =
default
;
41
GradientModel
(
GradientModel
&&) =
default
;
42
GradientModel
&
operator=
(
const
GradientModel
&) =
default
;
43
GradientModel
&
operator=
(
GradientModel
&&) =
default
;
44
45
ImageAngle
angles
;
46
ImageBW
mask
;
47
ImageBW
dmask
;
48
int
xbar
,
ybar
;
49
50
static
double
Distance
(
const
GradientModel
&img1,
const
GradientModel
&img2,
size_t
window) noexcept;
51
};
52
}
53
54
#endif
55
crn::Image< typename ByteAngle::type >
crn::GradientModel::dmask
ImageBW dmask
Definition:
CRNGradientMatching.h:47
crn::GradientModel::Distance
static double Distance(const GradientModel &img1, const GradientModel &img2, size_t window) noexcept
Definition:
CRNGradientMatching.cpp:102
crn::GradientModel::mask
ImageBW mask
Definition:
CRNGradientMatching.h:46
crn::GradientModel::operator=
GradientModel & operator=(const GradientModel &)=default
crn::GradientModel::GradientModel
GradientModel(const ImageGradient &igr)
Definition:
CRNGradientMatching.cpp:29
crn::GradientModel
Gradient descriptor.
Definition:
CRNGradientMatching.h:37
crn::GradientModel::xbar
int xbar
Definition:
CRNGradientMatching.h:48
CRNImage.h
crn::ImageGradient
Gradient image in polar form.
Definition:
CRNImageGradient.h:39
crn::GradientModel::ybar
int ybar
Definition:
CRNGradientMatching.h:48
crn::GradientModel::angles
ImageAngle angles
Definition:
CRNGradientMatching.h:45
Generated on Thu Sep 7 2017 13:54:25 for libcrn by
1.8.6