KJB
|
#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 |
Class that represents the summed area table for optical flow features.
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.
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).
|
inline |
Returns the sum of flows inside the given box.
|
inline |
|
inline |
void Integral_flow::write | ( | const std::string & | fname | ) |