1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-25 21:33:04 +04:00

core: deprecate MatCommaInitializer_

This commit is contained in:
Maksim Shabunin
2026-05-19 06:11:12 +03:00
parent cd4d732442
commit 201381e019
24 changed files with 324 additions and 337 deletions
@@ -41,7 +41,7 @@ int main(int, char**)
{
for (int j = 0; j < image.cols; j++)
{
Mat sampleMat = (Mat_<float>(1,2) << j,i);
Mat sampleMat = Mat_<float>({1,2}, {(float)j,(float)i});
float response = svm->predict(sampleMat);
if (response == 1)
@@ -96,7 +96,7 @@ int main()
{
for (int j = 0; j < I.cols; j++)
{
Mat sampleMat = (Mat_<float>(1,2) << j, i);
Mat sampleMat = Mat_<float>({1,2}, {(float)j, (float)i});
float response = svm->predict(sampleMat);
if (response == 1) I.at<Vec3b>(i,j) = green;