Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
biotracker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bioroboticslab
biotracker
biotracker
Commits
3afcd52e
Commit
3afcd52e
authored
8 years ago
by
anjoer
Browse files
Options
Downloads
Patches
Plain Diff
Added classes for Tracking
parent
baf227a7
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
biotracker/BioTracker3ProxyMat.cpp
+6
-0
6 additions, 0 deletions
biotracker/BioTracker3ProxyMat.cpp
biotracker/BioTracker3ProxyMat.h
+39
-0
39 additions, 0 deletions
biotracker/BioTracker3ProxyMat.h
with
45 additions
and
0 deletions
biotracker/BioTracker3ProxyMat.cpp
0 → 100644
+
6
−
0
View file @
3afcd52e
#include
"BioTracker3ProxyMat.h"
BioTracker3ProxyMat
::
BioTracker3ProxyMat
()
{
}
This diff is collapsed.
Click to expand it.
biotracker/BioTracker3ProxyMat.h
0 → 100644
+
39
−
0
View file @
3afcd52e
#ifndef BIOTRACKER3PROXYMAT_H
#define BIOTRACKER3PROXYMAT_H
#include
"Interfaces/imodel.h"
#include
<boost/optional.hpp>
#include
<opencv2/opencv.hpp>
class
BioTracker3ProxyMat
{
public:
BioTracker3ProxyMat
(
cv
::
Mat
const
&
mat
)
:
m_originalMat
(
mat
)
{
}
BioTracker3ProxyMat
(
const
BioTracker3ProxyMat
&
)
=
delete
;
BioTracker3ProxyMat
&
operator
=
(
const
BioTracker3ProxyMat
&
)
=
delete
;
cv
::
Mat
&
getMat
()
{
if
(
!
isModified
())
{
m_modifiedMat
=
m_originalMat
.
clone
();
}
return
m_modifiedMat
.
get
();
}
void
setMat
(
cv
::
Mat
mat
)
{
m_modifiedMat
=
mat
;
}
bool
isModified
()
const
{
return
m_modifiedMat
.
is_initialized
();
}
private
:
cv
::
Mat
const
&
m_originalMat
;
boost
::
optional
<
cv
::
Mat
>
m_modifiedMat
;
};
#endif // BIOTRACKER3PROXYMAT_H
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment