KJB
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
work
kobus
src
lib
video_cpp
video_background.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$ */
20
21
#ifndef KJB_VIDEO_BACKGROUND_H_
22
#define KJB_VIDEO_BACKGROUND_H_
23
24
#include <
m_cpp/m_matrix.h
>
25
#include <string>
26
#include <vector>
27
28
namespace
kjb {
29
33
void
compute_median_background
34
(
35
const
std::vector<std::string>& frames_fps,
36
Matrix& r_mat,
37
Matrix& g_mat,
38
Matrix& s_mat,
39
size_t
sub_sampling_sz = 1,
40
size_t
rate = 1
41
);
42
43
}
//namespace kjb
44
45
#endif
/*KJB_VIDEO_BACKGROIUND_H */
46
m_matrix.h
Definition for the Matrix class, a thin wrapper on the KJB Matrix struct and its related functionalit...
kjb::compute_median_background
void compute_median_background(const std::vector< std::string > &frames_fps, Matrix &r_mat, Matrix &g_mat, Matrix &s_mat, size_t sub_sampling_sz=1, size_t rate=1)
Compute the background value by a median filter.
Definition:
video_background.cpp:31
Generated by
1.8.6