(vision SDK version : PROCESSOR_SDK_VISION_03_03_00_00)
Hi
I'm newbie of using TDA2x evb board and vision App board
I'd like to implement my algorithm which is using openCV and implement it by modifying the sample usecase&alg_plugins ( vip_single_cam_opencvopencldilation / opencvopencldilation)
[ Question ]
I want to apply my alogirhtm code and display it to the monitor.
Where the points that I should modify the code?
I started modifying like below, however when I remove the "cv::dilate" code, it displays black image with processor usage.
|
prior code <openclDilation.cpp> |
modified code <openclDilation.cpp> |
|
void* openclDilationThreadFunc(void* args) if(!gOpenCLDilationThreadStarted) /* wait for the produce thread to point to the current input pthread_mutex_lock(&gOpenCLDilationMtx); /* openCLDilationInputUMat = openCLDilationInputMat.getUMat(cv::ACCESS_RW); cv::dilate(openCLDilationInputUMat, openCLDilationOutputUMat, cv::Mat());
g_cac = 0; pthread_mutex_unlock(&gOpenCLDilationMtx); |
void* openclDilationThreadFunc(void* args) if(!gOpenCLDilationThreadStarted) /* wait for the produce thread to point to the current input pthread_mutex_lock(&gOpenCLDilationMtx); /* openCLDilationInputUMat = openCLDilationInputMat.getUMat(cv::ACCESS_RW);
g_cac = 0; pthread_mutex_unlock(&gOpenCLDilationMtx); |