KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
flow_dense.h
Go to the documentation of this file.
1 /* =========================================================================== *
2  |
3  | Copyright (c) 1994-2011 by Kobus Barnard (author)
4  |
5  | Personal and educational use of this code is granted, provided that this
6  | header is kept intact, and that the authorship is not misrepresented, that
7  | its use is acknowledged in publications, and relevant papers are cited.
8  |
9  | For other use contact the author (kobus AT cs DOT arizona DOT edu).
10  |
11  | Please note that the code in this file has not necessarily been adequately
12  | tested. Naturally, there is no guarantee of performance, support, or fitness
13  | for any particular task. Nonetheless, I am interested in hearing about
14  | problems that you encounter.
15  |
16  | Author: Jinyan Guan
17  * =========================================================================== */
18 
19 /* $Id: flow_dense.h 14083 2013-03-12 18:41:07Z jguan1 $ */
20 
21 #ifndef KJB_FLOW_DENSE_H
22 #define KJB_FLOW_DENSE_H
23 
24 #include <m_cpp/m_matrix.h>
26 
27 #include <string>
28 #include <vector>
29 
30 namespace kjb
31 {
32 
37 Vector average_flow
38 (
39  const Matrix& x_flows,
40  const Matrix& y_flows,
41  const Axis_aligned_rectangle_2d& roi
42 );
43 
48 Matrix flow_magnitude(const Matrix& x_flows, const Matrix& y_flows);
49 
50 } // namespace kjb
51 
52 #endif
Definition for the Matrix class, a thin wrapper on the KJB Matrix struct and its related functionalit...
Class representing an axis-aligned, 2D rectangle.
Vector average_flow(const Matrix &x_flows, const Matrix &y_flows, const Axis_aligned_rectangle_2d &roi)
Get the average optical flow inside a rectangle region.
Definition: flow_dense.cpp:30
Matrix flow_magnitude(const Matrix &x_flows, const Matrix &y_flows)
Compute the flow magnitude.
Definition: flow_dense.cpp:76