Blender
V3.3
intern
libmv
libmv
autotrack
predict_tracks.h
Go to the documentation of this file.
1
// Copyright (c) 2014 libmv authors.
2
//
3
// Permission is hereby granted, free of charge, to any person obtaining a copy
4
// of this software and associated documentation files (the "Software"), to
5
// deal in the Software without restriction, including without limitation the
6
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
7
// sell copies of the Software, and to permit persons to whom the Software is
8
// furnished to do so, subject to the following conditions:
9
//
10
// The above copyright notice and this permission notice shall be included in
11
// all copies or substantial portions of the Software.
12
//
13
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
18
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
19
// IN THE SOFTWARE.
20
//
21
// Author: mierle@gmail.com (Keir Mierle)
22
23
#ifndef LIBMV_AUTOTRACK_PREDICT_TRACKS_H_
24
#define LIBMV_AUTOTRACK_PREDICT_TRACKS_H_
25
26
namespace
mv
{
27
28
class
Tracks;
29
struct
Marker;
30
31
enum class
PredictDirection
{
32
// Detect direction in which to predict marker position based on an existing
33
// Tracks context. Prediction will happen in the preferred direction of a
34
// missing information.
35
// If markers exists to the both sides of the given one the prediction
36
// direction is preferred to be forward.
37
AUTO
,
38
39
// Predict position of the marker from the past to the future (used for
40
// forward tracking).
41
FORWARD
,
42
43
// Predict position from the future to the past (used for backward tracking).
44
BACKWARD
,
45
};
46
47
// Predict the position of the given marker, and update it accordingly. The
48
// existing position will be overwritten.
49
bool
PredictMarkerPosition
(
const
Tracks&
tracks
,
50
const
PredictDirection
direction,
51
Marker* marker);
52
53
}
// namespace mv
54
55
#endif
// LIBMV_AUTOTRACK_PREDICT_TRACKS_H_
mv
Definition:
libmv/autotrack/autotrack.cc:31
mv::PredictMarkerPosition
bool PredictMarkerPosition(const Tracks &tracks, const PredictDirection direction, Marker *marker)
Definition:
predict_tracks.cc:228
mv::PredictDirection
PredictDirection
Definition:
predict_tracks.h:31
mv::PredictDirection::BACKWARD
@ BACKWARD
mv::PredictDirection::FORWARD
@ FORWARD
mv::PredictDirection::AUTO
@ AUTO
tracks
ListBase tracks
Definition:
tracking.c:60
Generated on Sat Jul 27 2024 14:57:55 for Blender by
doxygen
1.9.1