Click here to Skip to main content
15,887,344 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm trying to make kernel.cl with opencv

C#
for (i = 0; i < cols; i += 5) {
        for (j = 0; j < rows; j += 5) {
        dx = (int) cvGetReal2D (velx, j, i);
        dy = (int) cvGetReal2D (vely, j, i);
        cvLine (dst_img2, cvPoint (i, j), cvPoint (i + dx, j + dy), CV_RGB (255, 0, 0), 1,
        CV_AA, 0);
        }
    }


data types above code [ int cols,rows,dx,dy IplImage* dst_img2 ]

Parallelizing above code, do I have to redefine opencv functions? (cvGetReal2D, cvLine etc..)
Otherwise, is there any method to use opencv function?
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900