Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
wolf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
mobile_robotics
wolf_projects
wolf_lib
wolf
Merge requests
!322
WIP: Resolve "Remove folder association/ completely"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
WIP: Resolve "Remove folder association/ completely"
255-replace-matrixx-by-some-other-standard-class
into
devel
Overview
0
Commits
1
Pipelines
2
Changes
10
Merged
Joan Solà Ortega
requested to merge
255-replace-matrixx-by-some-other-standard-class
into
devel
5 years ago
Overview
0
Commits
1
Pipelines
2
Changes
10
Expand
Closes
#255 (closed)
0
0
Merge request reports
Compare
devel
version 1
93b1a787
5 years ago
devel (base)
and
latest version
latest version
93b1a787
1 commit,
5 years ago
version 1
93b1a787
1 commit,
5 years ago
10 files
+
0
−
1115
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
10
Search (e.g. *.vue) (Ctrl+P)
include/core/association/association_nnls.h deleted
100644 → 0
+
0
−
83
Options
#ifndef association_nnls_H
#define association_nnls_H
//std
#include
<iostream>
#include
<vector>
//pipol tracker
#include
"core/association/association_solver.h"
namespace
wolf
{
//consts
const
double
MAX_DIST_DEFAULT
=
0.5
;
//units (meters in pt case)
/** \brief Nearest neighbour linear search
*
* Nearest neighbour linear search to solve data association problems, given a table of distances
*
*/
class
AssociationNNLS
:
public
AssociationSolver
{
protected:
double
max_dist_
;
//maximum distance to allow association
std
::
vector
<
bool
>
i_mask_
;
// mask already allocated detections (rows)
std
::
vector
<
bool
>
j_mask_
;
// mask already allocated targets (columns)
public:
/** \brief Constructor
*
* Constructor
*
*/
AssociationNNLS
();
/** \brief Destructor
*
* Destructor
*
*/
virtual
~
AssociationNNLS
();
/** \brief Sets max_dist_
*
* Sets max_dist_
*
**/
void
setMaxDist
(
const
double
_max_dist
);
/** \brief Resets problem
*
* Resets problem
*
*/
void
reset
();
/** \brief Resizes the problem
*
* Resizes the problem
*
*/
void
resize
(
const
unsigned
int
_n_det
,
const
unsigned
int
_n_tar
);
/** \brief Solves the problem
*
* Solves the association problem following nearest neighbor linear search.
* Return values are:
* \param _pairs Returned pairs: vector of pairs (d_i, t_j)
* \param _associated_mask Resized to nd_. Marks true at i if detection d_i has been associated, otherwise marks false
*
* Assumes i/j_mask_ vector class members and scores_ matrix are correctly sized, by a previous call to resize()
*
**/
//void solve(std::vector<std::pair<unsigned int, unsigned int> > & _pairs, std::vector<unsigned int> & _unassoc);
void
solve
(
std
::
vector
<
std
::
pair
<
unsigned
int
,
unsigned
int
>
>
&
_pairs
,
std
::
vector
<
bool
>
&
_associated_mask
);
};
}
// namespace wolf
#endif
Loading