mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 07:13:02 +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)
|
||||
|
||||
Reference in New Issue
Block a user