Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Corryvreckan
Corryvreckan
Commits
a6b4162d
Commit
a6b4162d
authored
Jun 07, 2021
by
Jens Kroeger
Browse files
Cluster: cleaner to use numeric_limits::lowest
parent
f04f3fa8
Pipeline
#2694609
passed with stages
in 25 minutes and 38 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/objects/Cluster.cpp
View file @
a6b4162d
...
...
@@ -51,7 +51,7 @@ std::vector<const Pixel*> Cluster::pixels() const {
const
Pixel
*
Cluster
::
getSeedPixel
()
const
{
Pixel
*
seed
=
nullptr
;
double
maxcharge
=
-
std
::
numeric_limits
<
double
>::
max
();
double
maxcharge
=
std
::
numeric_limits
<
double
>::
lowest
();
// loop overall pixels and find the one with the largest charge:
for
(
auto
&
px
:
m_pixels
)
{
auto
pxl
=
dynamic_cast
<
Pixel
*>
(
px
.
GetObject
());
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment