logo

Crowdly

Browser

Add to Chrome

#include <opencv2/opencv.hpp> using namespace cv; int main() {     ... ...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

#include <opencv2/opencv.hpp>

using namespace cv;

int main()

{

    ...

    imshow("original Image", image);

    Mat image_gray;

    cvtColor(image, image_gray, COLOR_BGR2GRAY);

    Mat image_blur;

    GaussianBlur(image_gray, image_blur, Size(3, 3), 0);

    Mat image_edges;

    Sobel(image_blur, image_edges, CV_64F, 1, 1, 5);

    imshow("Sobel Edge Detection", image_edges);

    waitKey(0);

    destroyAllWindows();

    return 0;

}

Для наведеного вище коду вкажіть рядок, який треба вставити на місці ..., щоб комп’ютерна програма мовою C++ за допомогою бібліотеки OpenCV реалізовувала до файлу з іменем “image.jpg” з поточної папки застосування Sobel Edge Detection для виявлення країв об’єктів та зберігала результат у файлі з іменем “image_edges.jpg” у поточній папці:

More questions like this

Want instant access to all verified answers on exam.nuwm.edu.ua?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome