Fix bug in Objective C OpenCV based Sobel edge detector code 1

Completed Posted 5 years ago Paid on delivery
Completed Paid on delivery

hi I have a openCV based Objective C project for video which works correctly by itself, where I am trying to calculate intensity gradient using Sobel operator using the stack overflow example ([login to view URL]) but it is giving me error. I need to calculate average gradient and resulting direction of image from phone. Can you please fix the error.

STACK OVERFLOW CODE

Mat img = imread("[login to view URL]", IMREAD_GRAYSCALE);

// compute the image derivatives for both the x and y direction

Mat dx, dy;

Sobel(img, dx, CV_32F, 1, 0);

Sobel(img, dy, CV_32F, 0, 1);

Scalar average_dx = mean(dx);

Scalar average_dy = mean(dy);

double average_gradient = atan2(-average_dy[0], average_dx[0]);

cout

C Programming C# Programming C++ Programming CUDA OpenGL

Project ID: #18712491

About the project

7 proposals Remote project Active 5 years ago

Awarded to:

KanSmith

Hello! I am a computer vision developer who worked in developing many opencv projects. sobel operation is edge calculate operation using soble math function. I am very familiar of sobel operation. Regards. More

$75 USD in 10 days
(4 Reviews)
2.4

7 freelancers are bidding on average $113 for this job

letsstartcoding

Yes i can solve this error, send me your opencv expert and i will expert right away...................................................................

$100 USD in 1 day
(23 Reviews)
5.6
ludwig333

Hi! I have read your description in more details and have interested in your project. I am a full stack developer for over 5 years on freelancer. I think that I can fix this calculating code. I am a star in this f More

$83 USD in 2 days
(1 Review)
4.3
malikasad079

i can do this for you i have an experience of 1.5-2 years in this field sir i did projects like this kindly reply i want to discuss it with you

$155 USD in 3 days
(9 Reviews)
3.7
TD888

Hi. How are you? I have read your project description carefully and as an excellent iOS (SWIFT and Objective-C) and Android developer, My experience: -Social Networking app -Chat & Dating app -Health & Fitne More

$155 USD in 3 days
(1 Review)
2.2
seyitdoganx9

i m not much opencv coder but if there s errors. it means there s some logical problems. and i m good with fixing logical code issues ............................. ......................... ......................... More

$75 USD in 7 days
(1 Review)
2.4