diff options
author | Wim Vriend <facetracknoir@gmail.com> | 2012-09-29 08:28:56 +0000 |
---|---|---|
committer | Wim Vriend <facetracknoir@gmail.com> | 2012-09-29 08:28:56 +0000 |
commit | 71736d2d3bf639096c3c1b51565fd4c45239e44a (patch) | |
tree | 46f9c9089d424c9b6c2238754b1fa912626737b3 /FTNoIR_Tracker_PT/camera.cpp | |
parent | c1c630b418256bdb385d0eaf938d4002dbd568b5 (diff) |
Unversioning local .vcproj and .sln
git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@183 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb
Diffstat (limited to 'FTNoIR_Tracker_PT/camera.cpp')
-rw-r--r-- | FTNoIR_Tracker_PT/camera.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/FTNoIR_Tracker_PT/camera.cpp b/FTNoIR_Tracker_PT/camera.cpp index a0bae694..c1d0149c 100644 --- a/FTNoIR_Tracker_PT/camera.cpp +++ b/FTNoIR_Tracker_PT/camera.cpp @@ -54,7 +54,7 @@ cv::Mat Camera::get_frame(float dt) if (!frame.empty())
{
dt_mean = dt_smoothing_const * dt_mean + (1.0 - dt_smoothing_const) * dt_valid;
- cam_info.fps = 1.0 / dt_mean;
+ cam_info.fps = 1.0 / (dt_mean + 1e-6);
dt_valid = 0;
}
|