Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Olena
pylene
Commits
5cf99865
Commit
5cf99865
authored
Jun 15, 2021
by
Quentin Kaci
Browse files
Try to fix Windows pipeline
parent
a5e32199
Pipeline
#28559
failed with stages
in 28 minutes and 57 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
pylene/include/mln/morpho/watershed_hierarchy.hpp
View file @
5cf99865
...
...
@@ -28,7 +28,7 @@ namespace mln::morpho
template
<
typename
W
,
typename
A
>
std
::
vector
<
A
>
get_computed_attribute
(
const
component_tree
<
W
>&
tree
,
const
std
::
vector
<
A
>&
attribute
,
int
nb_leaves
)
{
int
n
=
tree
.
parent
.
size
();
int
n
=
static_cast
<
int
>
(
tree
.
parent
.
size
()
)
;
std
::
vector
<
A
>
res
(
n
,
std
::
numeric_limits
<
A
>::
min
());
std
::
fill_n
(
res
.
end
()
-
nb_leaves
,
nb_leaves
,
0
);
...
...
@@ -52,9 +52,9 @@ namespace mln::morpho
watershed
(
const
component_tree
<
W
>&
tree
,
image_ch_value_t
<
I
,
int
>
node_map
,
std
::
vector
<
E
>
mst
,
const
std
::
vector
<
A
>&
attribute
,
std
::
size_t
nb_leaves
)
{
auto
computed_attribute
=
get_computed_attribute
(
tree
,
attribute
,
nb_leaves
);
auto
computed_attribute
=
get_computed_attribute
(
tree
,
attribute
,
static_cast
<
int
>
(
nb_leaves
)
)
;
int
n
=
tree
.
parent
.
size
();
int
n
=
static_cast
<
int
>
(
tree
.
parent
.
size
()
)
;
std
::
vector
<
A
>
min_computed_attributes
(
n
,
std
::
numeric_limits
<
A
>::
max
());
for
(
int
i
=
n
-
1
;
i
>
0
;
--
i
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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