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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user