Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
trex
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
swp21_biotracker
trex
Commits
1bc8ed9a
Commit
1bc8ed9a
authored
4 years ago
by
Tristan Walter
Browse files
Options
Downloads
Patches
Plain Diff
* use infinity in situations where its preferable to max()
parent
cfd1d5e0
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Application/src/tracker/tracking/DatasetQuality.h
+1
-1
1 addition, 1 deletion
Application/src/tracker/tracking/DatasetQuality.h
Application/src/tracker/tracking/Individual.h
+1
-1
1 addition, 1 deletion
Application/src/tracker/tracking/Individual.h
with
2 additions
and
2 deletions
Application/src/tracker/tracking/DatasetQuality.h
+
1
−
1
View file @
1bc8ed9a
...
@@ -26,7 +26,7 @@ namespace track {
...
@@ -26,7 +26,7 @@ namespace track {
long_t
number_frames
;
long_t
number_frames
;
Single
(
idx_t
id
=
std
::
numeric_lim
it
s
<
idx_t
>
::
max
())
Single
(
idx_t
id
=
infin
it
y
<
idx_t
>
())
:
id
(
id
),
midline_len
(
0
),
midline_std
(
0
),
distance_travelled
(
0
),
grid_cells_visited
(
0
),
median_angle_var
(
0
),
number_frames
(
0
)
:
id
(
id
),
midline_len
(
0
),
midline_std
(
0
),
distance_travelled
(
0
),
grid_cells_visited
(
0
),
median_angle_var
(
0
),
number_frames
(
0
)
{
}
{
}
...
...
This diff is collapsed.
Click to expand it.
Application/src/tracker/tracking/Individual.h
+
1
−
1
View file @
1bc8ed9a
...
@@ -114,7 +114,7 @@ namespace track {
...
@@ -114,7 +114,7 @@ namespace track {
class
Identity
{
class
Identity
{
public:
public:
static
constexpr
auto
InvalidID
=
std
::
numeric_lim
it
s
<
uint32_t
>
::
max
();
static
constexpr
auto
InvalidID
=
infin
it
y
<
uint32_t
>
();
protected:
protected:
GETTER_SETTER
(
gui
::
Color
,
color
)
GETTER_SETTER
(
gui
::
Color
,
color
)
...
...
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