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

Ολοκληρωμένο Αναρτήθηκε Πριν 5 χρόνια Πληρώθηκε κατά την παράδοση
Ολοκληρωμένο Πληρώθηκε κατά την παράδοση

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 Γλώσσα Προγραμματισμού C# Προγραμματισμός C++ CUDA OpenGL

Ταυτότητα Εργασίας: #18712491

Σχετικά με την εργασία

7 προτάσεις Απομακρυσμένη εργασία Ενεργό Πριν 5 χρόνια

Ανατέθηκε στον:

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. Περισσότερα

$75 USD σε 10 μέρες
(4 Αξιολογήσεις)
2.4

7 freelancers κάνουν προσφορές κατά μέσο όρο $113 για αυτή τη δουλειά

letsstartcoding

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

$100 USD σε 1 μέρα
(23 Αξιολογήσεις)
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 Περισσότερα

$83 USD σε 2 μέρες
(1 Κριτική)
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 σε 3 μέρες
(9 Αξιολογήσεις)
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 Περισσότερα

$155 USD σε 3 μέρες
(1 Κριτική)
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 ............................. ......................... ......................... Περισσότερα

$75 USD σε 7 μέρες
(1 Κριτική)
2.4