libcrn  3.9.5
A document image processing library
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Static Public Member Functions | Static Public Attributes | List of all members
crn::GradientShapeContext< ngrad, ntheta, nrho > Class Template Reference

Gradient shape context factory. More...

#include <CRNGradientShapeContext.h>

Classes

struct  SC
 

Static Public Member Functions

static std::vector< SCCreateFixed (const ImageGradient &igr, size_t npoints, size_t ndummy)
 
static std::vector< SCCreateRatio (const ImageGradient &igr, size_t divisor, size_t ndummy)
 
static double Distance (const std::vector< SC > &img1, const std::vector< SC > &img2)
 

Static Public Attributes

static constexpr auto size = ngrad * ntheta * nrho
 
static constexpr auto toffset = ngrad
 
static constexpr auto roffset = toffset * ntheta
 

Detailed Description

template<size_t ngrad, size_t ntheta, size_t nrho>
class crn::GradientShapeContext< ngrad, ntheta, nrho >

Gradient shape context factory.

Author
Yann LEYDIER
Date
October 2015
Version
0.1

Definition at line 42 of file CRNGradientShapeContext.h.

Member Function Documentation

template<size_t ngrad, size_t ntheta, size_t nrho>
std::vector< typename GradientShapeContext< ngrad, ntheta, nrho >::SC > crn::GradientShapeContext< ngrad, ntheta, nrho >::CreateFixed ( const ImageGradient igr,
size_t  npoints,
size_t  ndummy 
)
static

Definition at line 70 of file CRNGradientShapeContext.h.

template<size_t ngrad, size_t ntheta, size_t nrho>
std::vector< typename GradientShapeContext< ngrad, ntheta, nrho >::SC > crn::GradientShapeContext< ngrad, ntheta, nrho >::CreateRatio ( const ImageGradient igr,
size_t  divisor,
size_t  ndummy 
)
static

Definition at line 122 of file CRNGradientShapeContext.h.

template<size_t ngrad, size_t ntheta, size_t nrho>
double crn::GradientShapeContext< ngrad, ntheta, nrho >::Distance ( const std::vector< SC > &  img1,
const std::vector< SC > &  img2 
)
static

Definition at line 132 of file CRNGradientShapeContext.h.

Member Data Documentation

template<size_t ngrad, size_t ntheta, size_t nrho>
constexpr auto crn::GradientShapeContext< ngrad, ntheta, nrho >::roffset = toffset * ntheta
static

Definition at line 47 of file CRNGradientShapeContext.h.

template<size_t ngrad, size_t ntheta, size_t nrho>
constexpr auto crn::GradientShapeContext< ngrad, ntheta, nrho >::size = ngrad * ntheta * nrho
static

Definition at line 45 of file CRNGradientShapeContext.h.

template<size_t ngrad, size_t ntheta, size_t nrho>
constexpr auto crn::GradientShapeContext< ngrad, ntheta, nrho >::toffset = ngrad
static

Definition at line 46 of file CRNGradientShapeContext.h.


The documentation for this class was generated from the following file: