OpenEV
Extending OpenCV to event-based vision
Toggle main menu visibility
Loading...
Searching...
No Matches
array.hpp
Go to the documentation of this file.
1
6
#ifndef OPENEV_CONTAINERS_ARRAY_HPP
7
#define OPENEV_CONTAINERS_ARRAY_HPP
8
9
#include "
openev/containers/abstract-container.hpp
"
10
#include "
openev/core/types.hpp
"
11
#include <array>
12
#include <cstddef>
13
#include <opencv2/core/types.hpp>
14
15
namespace
ev {
16
constexpr
bool
USING_ARRAY_HPP =
true
;
17
23
template
<
typename
T, std::
size_t
N>
24
class
Array_
:
public
std::array<Event_<T>, N>,
public
AbstractContainer_
<Array_<T, N>, T> {
25
static_assert
(N > 0,
"ev::Array_: the size must be greater than zero."
);
26
using
std::array<
Event_<T>
, N>::array;
27
using
ResultType = TimeType;
28
};
29
30
template
<std::
size_t
N>
31
using
Arrayi
=
Array_<int, N>
;
32
template
<std::
size_t
N>
33
using
Arrayl
=
Array_<long, N>
;
34
template
<std::
size_t
N>
35
using
Arrayf
=
Array_<float, N>
;
36
template
<std::
size_t
N>
37
using
Arrayd
=
Array_<double, N>
;
38
template
<std::
size_t
N>
39
using
Array
=
Arrayi<N>
;
40
}
// namespace ev
41
42
#endif
// OPENEV_CONTAINERS_ARRAY_HPP
abstract-container.hpp
Statistics shared by all the event containers.
ev::Arrayl
Array_< long, N > Arrayl
Definition
array.hpp:33
ev::Arrayf
Array_< float, N > Arrayf
Definition
array.hpp:35
ev::Arrayd
Array_< double, N > Arrayd
Definition
array.hpp:37
ev::Array
Arrayi< N > Array
Definition
array.hpp:39
ev::Arrayi
Array_< int, N > Arrayi
Definition
array.hpp:31
ev::AbstractContainer_
This is an auxiliary class. This class cannot be instanced.
Definition
abstract-container.hpp:31
ev::Array_
This class extends std::array to implement event arrays. For more information, please refer here.
Definition
array.hpp:24
ev::Event_
This class extends cv::Point_<T> for event data. For more information, please refer here.
Definition
types.hpp:78
types.hpp
Basic event-based vision structures based on OpenCV components.
modules
containers
include
openev
containers
array.hpp
Generated by
1.17.0