This class extends cv::Rect_<T> for event data. For more information, please refer here.
More...
#include <types.hpp>
|
| Rect3_ () |
|
| Rect3_ (const T x, const T y, const T t, const T w, const T h, const T l) |
|
| Rect3_ (const Rect2_< T > &rect, const T t, const T l) |
|
| Rect3_ (const cv::Point3_< T > &pt, const Size3_< T > sz) |
|
| Rect3_ (const cv::Point3_< T > &pt1, const cv::Point3_< T > &pt2) |
|
bool | empty () const |
| Check if empty.
|
|
template<typename Te > |
bool | contains (const Event_< Te > &e) const |
| Check if the rectangular cuboid contains an event.
|
|
Size3_< T > | size () const |
| Size of the rectangular cuboid.
|
|
T | volume () const |
| Compute the volume.
|
|
template<typename T>
class ev::Rect3_< T >
This class extends cv::Rect_<T> for event data. For more information, please refer here.
Analogously to OpenCV library, the following aliases are defined for convenience:
This class extends cv::Rect_<T> for event data. For more information, please refer here.
Definition types.hpp:430
◆ Rect3_() [1/5]
◆ Rect3_() [2/5]
template<typename T >
ev::Rect3_< T >::Rect3_ |
( |
const T | x, |
|
|
const T | y, |
|
|
const T | t, |
|
|
const T | w, |
|
|
const T | h, |
|
|
const T | l ) |
|
inline |
Contructor using x, y, t, width, height, and length.
- Parameters
-
x | Origin spatial coordinate x |
y | Origin spatial coordinate y |
t | Origin temporal coordinate t |
w | Width |
h | Height |
l | Length (time) |
◆ Rect3_() [3/5]
Contructor using rectangle, t, and length.
- Parameters
-
rect | Spatial position as a rectangle |
t | Origin temporal coordinate t |
l | Length (time) |
◆ Rect3_() [4/5]
Contructor using 3D point and 3D size.
- Parameters
-
◆ Rect3_() [5/5]
template<typename T >
ev::Rect3_< T >::Rect3_ |
( |
const cv::Point3_< T > & | pt1, |
|
|
const cv::Point3_< T > & | pt2 ) |
|
inline |
Contructor using two 3D points.
- Parameters
-
pt1 | Origin point |
pt2 | Farthest point |
◆ contains()
template<typename T >
template<typename Te >
Check if the rectangular cuboid contains an event.
- Parameters
-
- Returns
- True if the event is inside
- Warning
- OpenCV typically assumes that the top and left boundary of the rectangle are inclusive, while the right and bottom are not.
◆ empty()
Check if empty.
- Returns
- True if empty
◆ size()
Size of the rectangular cuboid.
- Returns
- Size
◆ volume()
Compute the volume.
Volume is computed as \( w \cdot h \cdot l \).
- Returns
- Volume
◆ length
The documentation for this class was generated from the following file: