KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
kjb::Integral_flow Class Reference

#include <flow_integral_flow.h>

Public Member Functions

 Integral_flow (const Matrix &flow, size_t subsample_rate=1)
 Construct an integral flow object from the given flow matrix and sub-sampling rate. More...
 
 Integral_flow (const std::string &fname)
 Construct an integral flow from input file. More...
 
double flow_sum (double x, double y) const
 Returns the (interpolated) value of the integral flow at (x, y); i.e., computes the sum of flow in the box with corners at (0, 0) and (x, y). More...
 
double flow_sum (const Axis_aligned_rectangle_2d &box) const
 Returns the sum of flows inside the given box. More...
 
void write (const std::string &fname)
 
size_t img_width () const
 
size_t img_height () const
 

Detailed Description

Class that represents the summed area table for optical flow features.

Constructor & Destructor Documentation

Integral_flow::Integral_flow ( const Matrix flow,
size_t  subsample_rate = 1 
)

Construct an integral flow object from the given flow matrix and sub-sampling rate.

Integral_flow::Integral_flow ( const std::string &  fname)

Construct an integral flow from input file.

Member Function Documentation

double Integral_flow::flow_sum ( double  x,
double  y 
) const

Returns the (interpolated) value of the integral flow at (x, y); i.e., computes the sum of flow in the box with corners at (0, 0) and (x, y).

double kjb::Integral_flow::flow_sum ( const Axis_aligned_rectangle_2d box) const
inline

Returns the sum of flows inside the given box.

size_t kjb::Integral_flow::img_height ( ) const
inline
size_t kjb::Integral_flow::img_width ( ) const
inline
void Integral_flow::write ( const std::string &  fname)

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