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

Slutfört Publicerat 5 år sedan Betalades vid leverans
Slutfört Betalades vid leverans

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-programmering C#-programmering C++-programmering CUDA OpenGL

Projekt-id: #18712491

About the project

7 offerter Distansprojekt Aktivt 5 år sedan

Tilldelades:

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. Mer

$75 USD inom 10 dagar
(4 omdömen)
2.4

7 frilansare har lagt bud på i genomsnitt $113 för det här jobbet

letsstartcoding

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

$100 USD inom 1 dag
(23 omdömen)
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 Mer

$83 USD inom 2 dagar
(1 omdöme)
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 inom 3 dagar
(9 omdömen)
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 Mer

$155 USD inom 3 dagar
(1 omdöme)
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 ............................. ......................... ......................... Mer

$75 USD inom 7 dagar
(1 omdöme)
2.4