This page describes procedure to use OpenCV DSP Acceleration Library in your work
Following is the procedure to use this work in your application
In your application include the header file "beagle_opencv_API.h". The complete path to the header file may be necessary if it is not present in your default directory.
Call DSP_cvStartDSP() at the beginning of your application. This ensures that DSP engine is open before any call to DSP is made using OpenCV_DSP APIs.
Make call to OpenCV_DSP API as needed in the application. Ensure that all input and out buffers are allocated in contigious memory. If you have not used the patch for OpenCV which makes OpenCV allocate memory in continious region, you can use Memory_alloc() and Memory_free() to allocate and deallocate continious memroy. For more reference to it, refer http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/ce/2_25_01_06/exports/codec_engine_2_25_01_06/docs/html/struct_memory___alloc_params.html#ab8113726ac4d721815cd6041ac236e4d
At the end of your application call API DSP_cvEndDSP() to close DSP engine.
OpenCV DSP Acceleration library is provided as shared library. While compiling and linking your application, make sure that you are linking correctly to libopencvdsp.so. Specially, the path to it may need to be specified correctly.