KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
psi_background.h
Go to the documentation of this file.
1 /* $Id: psi_background.h 17393 2014-08-23 20:19:14Z predoehl $ */
2 /* =========================================================================== *
3  |
4  | Copyright (c) 1994-2011 by Kobus Barnard (author)
5  |
6  | Personal and educational use of this code is granted, provided that this
7  | header is kept intact, and that the authorship is not misrepresented, that
8  | its use is acknowledged in publications, and relevant papers are cited.
9  |
10  | For other use contact the author (kobus AT cs DOT arizona DOT edu).
11  |
12  | Please note that the code in this file has not necessarily been adequately
13  | tested. Naturally, there is no guarantee of performance, support, or fitness
14  | for any particular task. Nonetheless, I am interested in hearing about
15  | problems that you encounter.
16  |
17  | Author: Jinyan Guan
18  * =========================================================================== */
19 
20 #ifndef PSI_BACKGROUND_H
21 #define PSI_BACKGROUND_H
23 #include <video_cpp/video.h>
24 
25 namespace kjb
26 {
27 namespace psi
28 {
29 
34 (
35  const Video& video,
36  Matrix& s_mat,
37  Matrix& r_mat,
38  Matrix& g_mat,
39  size_t rate = 1
40 );
41 
47 (
48  const Video& video,
49  const pt::Box_trajectory_map& btrajs,
50  Matrix& s_mat,
51  Matrix& s_count,
52  Matrix& r_mat,
53  Matrix& r_count,
54  Matrix& g_mat,
55  Matrix& g_count
56 );
57 
58 
59 } //namespace psi
60 } //namespace kjb
61 
62 #endif /* PSI_BACKGROUND_H */
63 
Generic_trajectory_map< Bbox > Box_trajectory_map
Definition: pt_box_trajectory.h:44
void compute_median_background(const Video &video, Matrix &s_mat, Matrix &r_mat, Matrix &g_mat, size_t rate)
Compute the background using the median value.
Definition: psi_background.cpp:30