OpenCV 4.5.3(日本語機械翻訳)
motempl.hpp
1 /*
2 By downloading, copying, installing or using the software you agree to this
3 license. If you do not agree to this license, do not download, install,
4 copy or use the software.
5
6
7 License Agreement
8 For Open Source Computer Vision Library
9 (3-clause BSD License)
10
11 Copyright (C) 2013, OpenCV Foundation, all rights reserved.
12 Third party copyrights are property of their respective owners.
13
14 Redistribution and use in source and binary forms, with or without modification,
15 are permitted provided that the following conditions are met:
16
17 * Redistributions of source code must retain the above copyright notice,
18 this list of conditions and the following disclaimer.
19
20 * Redistributions in binary form must reproduce the above copyright notice,
21 this list of conditions and the following disclaimer in the documentation
22 and/or other materials provided with the distribution.
23
24 * Neither the names of the copyright holders nor the names of the contributors
25 may be used to endorse or promote products derived from this software
26 without specific prior written permission.
27
28 This software is provided by the copyright holders and contributors "as is" and
29 any express or implied warranties, including, but not limited to, the implied
30 warranties of merchantability and fitness for a particular purpose are
31 disclaimed. In no event shall copyright holders or contributors be liable for
32 any direct, indirect, incidental, special, exemplary, or consequential damages
33 (including, but not limited to, procurement of substitute goods or services;
34 loss of use, data, or profits; or business interruption) however caused
35 and on any theory of liability, whether in contract, strict liability,
36 or tort (including negligence or otherwise) arising in any way out of
37 the use of this software, even if advised of the possibility of such damage.
38 */
39
40 #ifndef __OPENCV_OPTFLOW_MOTEMPL_HPP__
41 #define __OPENCV_OPTFLOW_MOTEMPL_HPP__
42
43 #include "opencv2/core.hpp"
44
45 namespace cv
46{
47 namespace motempl
48{
49
52
71 CV_EXPORTS_W void updateMotionHistory( InputArray silhouette, InputOutputArray mhi,
72 double timestamp, double duration );
73
102 CV_EXPORTS_W void calcMotionGradient( InputArray mhi, OutputArray mask, OutputArray orientation,
103 double delta1, double delta2, int apertureSize = 3 );
104
119 CV_EXPORTS_W double calcGlobalOrientation( InputArray orientation, InputArray mask, InputArray mhi,
120 double timestamp, double duration );
121
137 CV_EXPORTS_W void segmentMotion( InputArray mhi, OutputArray segmask,
138 CV_OUT std::vector<Rect>& boundingRects,
139 double timestamp, double segThresh );
140
141
143
144}
145}
146
147 #endif
Definition: mat.hpp:386
This type is very similar to InputArray except that it is used for input/output and output function p...
Definition: mat.hpp:295
CV_EXPORTS_W void segmentMotion(InputArray mhi, OutputArray segmask, CV_OUT std::vector< Rect > &boundingRects, double timestamp, double segThresh)
Splits a motion history image into a few parts corresponding to separate independent motions (for exa...
CV_EXPORTS_W void calcMotionGradient(InputArray mhi, OutputArray mask, OutputArray orientation, double delta1, double delta2, int apertureSize=3)
Calculates a gradient orientation of a motion history image.
CV_EXPORTS_W void updateMotionHistory(InputArray silhouette, InputOutputArray mhi, double timestamp, double duration)
Updates the motion history image by a moving silhouette.
CV_EXPORTS_W double calcGlobalOrientation(InputArray orientation, InputArray mask, InputArray mhi, double timestamp, double duration)
Calculates a global motion orientation in a selected region.
cv
"black box" representation of the file storage associated with a file on disk.
Definition: aruco.hpp:75