logo

Crowdly

Browser

Add to Chrome

#include "opencv2/opencv.hpp" using namespace cv; int main(int argc, char** ...

✅ 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(int argc, char** argv)

{

    Mat src = imread("image_threshold.png", IMREAD_GRAYSCALE);

    imshow("Original image", src);

    Mat dst;

    threshold(dst, src, 0, 255, THRESH_BINARY);

    imwrite("image_threshold.jpg", dst);

    imshow("Threshold image", dst);

    waitKey(0);

    destroyAllWindows();

    return 0;

}

Вкажіть номер рядка, в якому допущено помилку, у коді комп’ютерної програми мовою C++, в якій за допомогою бібліотеки OpenCV до файлу з іменем “image.png” з поточної папки здійснюється застосування бінарного порогового перетворення при thresh_value = 0 та max_value = 255 та збереження результату у файлі з іменем “image_threshold.jpg” у поточній папці:

0%
100%
0%
0%
0%
0%
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