CoreFlow 1.0.0
A modern orchestration and execution runtime
Loading...
Searching...
No Matches
optical_flow.cpp File Reference
#include <VX/vx.h>
#include <opencv2/highgui.hpp>
#include <opencv2/opencv.hpp>
#include <opencv2/videoio.hpp>

Macros

#define DEFAULT_WAITKEY_DELAY
 
#define ERROR_CHECK_STATUS(status)
 
#define ERROR_CHECK_OBJECT(obj)
 

Functions

void VX_CALLBACK log_callback (vx_context context, vx_reference ref, vx_status status, const vx_char string[])
 
void drawPoint (cv::Mat m_imgBGR, int x, int y)
 
void drawArrow (cv::Mat m_imgBGR, int x0, int y0, int x1, int y1)
 
void drawText (cv::Mat m_imgBGR, int x, int y, const char *text)
 
bool abortRequested ()
 
int main (int argc, char *argv[])
 

Macro Definition Documentation

◆ DEFAULT_WAITKEY_DELAY

#define DEFAULT_WAITKEY_DELAY
Value:
1 /* waitKey delay time in milliseconds after each frame processing \
*/

◆ ERROR_CHECK_OBJECT

#define ERROR_CHECK_OBJECT ( obj)
Value:
{ \
vx_status status_ = vxGetStatus((vx_reference)(obj)); \
if (status_ != VX_SUCCESS) \
{ \
printf("ERROR: failed with status = (%d) at " __FILE__ "#%d\n", status_, __LINE__); \
exit(1); \
} \
}
vx_enum vx_status
A formal status type with known fixed size.
Definition vx_types.h:550
VX_API_ENTRY vx_status VX_API_CALL vxGetStatus(vx_reference reference)
Provides a generic API to return status values from Object constructors if they fail.
@ VX_SUCCESS
No error.
Definition vx_types.h:543
struct Reference * vx_reference
Definition vx_types.h:173

◆ ERROR_CHECK_STATUS

#define ERROR_CHECK_STATUS ( status)
Value:
{ \
vx_status status_ = (status); \
if (status_ != VX_SUCCESS) \
{ \
printf("ERROR: failed with status = (%d) at " __FILE__ "#%d\n", status_, __LINE__); \
exit(1); \
} \
}

Function Documentation

◆ abortRequested()

bool abortRequested ( )
Examples
optical_flow.cpp.

◆ drawArrow()

void drawArrow ( cv::Mat m_imgBGR,
int x0,
int y0,
int x1,
int y1 )
Examples
optical_flow.cpp.

◆ drawPoint()

void drawPoint ( cv::Mat m_imgBGR,
int x,
int y )
Examples
optical_flow.cpp.

◆ drawText()

void drawText ( cv::Mat m_imgBGR,
int x,
int y,
const char * text )
Examples
optical_flow.cpp.

◆ log_callback()

void VX_CALLBACK log_callback ( vx_context context,
vx_reference ref,
vx_status status,
const vx_char string[] )

◆ main()

int main ( int argc,
char * argv[] )