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
5b702052
Commit
5b702052
authored
Jan 13, 2020
by
Edwin Carlinet
Browse files
fixup! Make ndimage use ndpoint<short> by default for storage.
parent
c3409a63
Changes
2
Hide whitespace changes
Inline
Side-by-side
bench/BMAlgorithms.cpp
View file @
5b702052
...
...
@@ -357,16 +357,17 @@ int accumulate_accu(const mln::experimental::image2d<uint8_t>& ima)
return
mln
::
accumulate
(
ima
,
mln
::
accu
::
features
::
sum
<
int
>
());
}
using
point_t
=
mln
::
image_point_t
<
mln
::
experimental
::
image2d
<
uint8_t
>>
;
std
::
vector
<
mln
::
experimental
::
point2d
>
sort_points
(
const
mln
::
experimental
::
image2d
<
uint8_t
>&
ima
)
std
::
vector
<
point_t
>
sort_points
(
const
mln
::
experimental
::
image2d
<
uint8_t
>&
ima
)
{
return
mln
::
experimental
::
sort_points
(
ima
);
}
std
::
vector
<
mln
::
experimental
::
point2d
>
sort_points
(
const
mln
::
experimental
::
image2d
<
int
>&
ima
)
std
::
vector
<
point_t
>
sort_points
(
const
mln
::
experimental
::
image2d
<
int
>&
ima
)
{
return
mln
::
experimental
::
sort_points
(
ima
);
}
std
::
vector
<
mln
::
experimental
::
point2d
>
sort_points
(
const
mln
::
experimental
::
image2d
<
mln
::
rgb8
>&
ima
)
std
::
vector
<
point_t
>
sort_points
(
const
mln
::
experimental
::
image2d
<
mln
::
rgb8
>&
ima
)
{
return
mln
::
experimental
::
sort_points
(
ima
,
mln
::
lexicographicalorder_less
<
mln
::
rgb8
>
());
}
bench/BMAlgorithms_main.cpp
View file @
5b702052
...
...
@@ -54,9 +54,11 @@ int accumulate_baseline(const mln::experimental::image2d<uint8_t>& ima);
int
accumulate_accu
(
const
mln
::
experimental
::
image2d
<
uint8_t
>&
ima
);
int
accumulate
(
const
mln
::
experimental
::
image2d
<
uint8_t
>&
ima
);
std
::
vector
<
mln
::
experimental
::
point2d
>
sort_points
(
const
mln
::
experimental
::
image2d
<
uint8_t
>&
ima
);
std
::
vector
<
mln
::
experimental
::
point2d
>
sort_points
(
const
mln
::
experimental
::
image2d
<
int
>&
ima
);
std
::
vector
<
mln
::
experimental
::
point2d
>
sort_points
(
const
mln
::
experimental
::
image2d
<
mln
::
rgb8
>&
ima
);
using
point_t
=
mln
::
image_point_t
<
mln
::
experimental
::
image2d
<
uint8_t
>>
;
std
::
vector
<
point_t
>
sort_points
(
const
mln
::
experimental
::
image2d
<
uint8_t
>&
ima
);
std
::
vector
<
point_t
>
sort_points
(
const
mln
::
experimental
::
image2d
<
int
>&
ima
);
std
::
vector
<
point_t
>
sort_points
(
const
mln
::
experimental
::
image2d
<
mln
::
rgb8
>&
ima
);
class
BMAlgorithms
:
public
benchmark
::
Fixture
{
...
...
Write
Preview
Markdown
is supported
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