openvx

OpenVx immediate code and Graphs not giving similar results

橙三吉。 提交于 2019-12-23 04:39:09
问题 I have converted the following OpenVx Sobel immediate code to Graph based . But the results done match. Immediate code works fine, it gives proper result. Whereas Graph code takes "longer" than the immediate code for a single image and produces wrong results too. So is my conversion correct ? Immediate Code : /* Intermediate images. */ vx_image dx = vxCreateImage(context, width, height, VX_DF_IMAGE_S16); vx_image dy = vxCreateImage(context, width, height, VX_DF_IMAGE_S16); vx_image mag =

Why is OpenCV Gpu module performing faster than VisionWorks?

别说谁变了你拦得住时间么 提交于 2019-12-13 15:26:45
问题 I have tried several functions of OpenCv gpu module and compared the same behavior with visionWorks immediate code. And surprisingly, it all circumstances the OpenCv Gpu Module is performing significantly faster than VisionWorks. e-g a Gaussian pyramid of level 4 implemented manually using opencv #include <iostream> #include <stdio.h> #include <stdio.h> #include <queue> /* OPENCV RELATED */ #include <cv.h> #include <highgui.h> #include "opencv2/highgui/highgui.hpp" #include "opencv2/imgproc

Set and get data from vx_image

笑着哭i 提交于 2019-12-10 19:22:34
问题 I have two vx_image 's src and dst , I need to get each pixel from the src vx_image and do some operation and set that to dst vx image. vx_image src; vx_image dst; I couldn't find the proper documentation for doing this. May I know how to do this ?. Thank you. 回答1: There is a section "Host Memory Data Object Access Patterns" in the specification : https://www.khronos.org/registry/OpenVX/specs/1.2/html/page_design.html#sec_host_memory It shows examples of accessing different data objects