Simd Library Documentation.

Home | Release Notes | Download | Documentation | Issues | GitHub

Simd::Motion is C++ framework for motion detection. More...

Namespaces

namespace  Simd::Motion
 Contains Framework for motion detection.
 

Data Structures

struct  Position
 Position structure. More...
 
struct  Object
 Object structure. More...
 
struct  Event
 Event structure. More...
 
struct  Metadata
 Metadata structure. More...
 
struct  Model
 Model structure. More...
 
struct  Options
 Options structure. More...
 
class  Detector
 Class Detector. More...
 

Functions

SIMD_INLINE double ScreenToOnvifX (ptrdiff_t x, ptrdiff_t screenWidth)
 Converts screen X-coordinate to ONVIF X-coordinate. More...
 
SIMD_INLINE double ScreenToOnvifY (ptrdiff_t y, ptrdiff_t screenHeight)
 Converts screen Y-coordinate to ONVIF Y-coordinate. More...
 
SIMD_INLINE FPoint ScreenToOnvif (const Point &point, const Point &screenSize)
 Converts screen 2D-coordinates to ONVIF 2D-coordinates. More...
 
SIMD_INLINE FSize ScreenToOnvifSize (const Size &size, const Point &screenSize)
 Converts screen 2D-size to ONVIF 2D-size. More...
 
SIMD_INLINE ptrdiff_t OnvifToScreenX (double x, ptrdiff_t screenWidth)
 Converts ONVIF X-coordinate to screen X-coordinate. More...
 
SIMD_INLINE ptrdiff_t OnvifToScreenY (double y, ptrdiff_t screenHeight)
 Converts ONVIF Y-coordinate to screen Y-coordinate. More...
 
SIMD_INLINE Point OnvifToScreen (const FPoint &point, const Point &screenSize)
 Converts ONVIF 2D-coordinates to screen 2D-coordinates. More...
 
SIMD_INLINE Size OnvifToScreenSize (const FSize &size, const Point &screenSize)
 Converts ONVIF 2D-size to screen 2D-size. More...
 
SIMD_INLINE String ToString (Id id)
 Converts ID to string. More...
 

Detailed Description

Simd::Motion is C++ framework for motion detection.

Function Documentation

◆ ScreenToOnvifX()

SIMD_INLINE double ScreenToOnvifX ( ptrdiff_t  x,
ptrdiff_t  screenWidth 
)

Converts screen X-coordinate to ONVIF X-coordinate.

Parameters
[in]x- a screen X-coordinate.
[in]screenWidth- a screen width.
Returns
ONVIF X-coordinate.

◆ ScreenToOnvifY()

SIMD_INLINE double ScreenToOnvifY ( ptrdiff_t  y,
ptrdiff_t  screenHeight 
)

Converts screen Y-coordinate to ONVIF Y-coordinate.

Parameters
[in]y- a screen Y-coordinate.
[in]screenHeight- a screen height.
Returns
ONVIF Y-coordinate.

◆ ScreenToOnvif()

SIMD_INLINE FPoint ScreenToOnvif ( const Point point,
const Point screenSize 
)

Converts screen 2D-coordinates to ONVIF 2D-coordinates.

Parameters
[in]point- a screen 2D-coordinates.
[in]screenSize- a screen size (width and height).
Returns
ONVIF 2D-coordinate.

◆ ScreenToOnvifSize()

SIMD_INLINE FSize ScreenToOnvifSize ( const Size size,
const Point screenSize 
)

Converts screen 2D-size to ONVIF 2D-size.

Parameters
[in]size- a screen 2D-size.
[in]screenSize- a screen size (width and height).
Returns
ONVIF 2D-size.

◆ OnvifToScreenX()

SIMD_INLINE ptrdiff_t OnvifToScreenX ( double  x,
ptrdiff_t  screenWidth 
)

Converts ONVIF X-coordinate to screen X-coordinate.

Parameters
[in]x- a ONVIF X-coordinate. ONVIF coordinates are restricted by range [-1, 1].
[in]screenWidth- a screen width.
Returns
screen X-coordinate.

◆ OnvifToScreenY()

SIMD_INLINE ptrdiff_t OnvifToScreenY ( double  y,
ptrdiff_t  screenHeight 
)

Converts ONVIF Y-coordinate to screen Y-coordinate.

Parameters
[in]y- a ONVIF Y-coordinate. ONVIF coordinates are restricted by range [-1, 1].
[in]screenHeight- a screen height.
Returns
screen Y-coordinate.

◆ OnvifToScreen()

SIMD_INLINE Point OnvifToScreen ( const FPoint point,
const Point screenSize 
)

Converts ONVIF 2D-coordinates to screen 2D-coordinates.

Parameters
[in]point- a ONVIF 2D-coordinates. ONVIF coordinates are restricted by range [-1, 1].
[in]screenSize- a screen size (width and height).
Returns
screen 2D-coordinate.

◆ OnvifToScreenSize()

SIMD_INLINE Size OnvifToScreenSize ( const FSize size,
const Point screenSize 
)

Converts ONVIF 2D-size to screen 2D-size.

Parameters
[in]size- a ONVIF 2D-size. ONVIF size is restricted by range [0, 2].
[in]screenSize- a screen size (width and height).
Returns
screen 2D-size.

◆ ToString()

SIMD_INLINE String ToString ( Id  id)

Converts ID to string.

Parameters
[in]id- an ID.
Returns
string representation of ID.