dnn: fix build (nullptr issue)
authorAlexander Alekhin <alexander.a.alekhin@gmail.com>
Tue, 23 Feb 2021 03:31:29 +0000 (03:31 +0000)
committerAlexander Alekhin <alexander.a.alekhin@gmail.com>
Tue, 23 Feb 2021 03:31:29 +0000 (03:31 +0000)
modules/dnn/src/layers/proposal_layer.cpp

index 060a94db785b7b966fda57cf03316e2120d5bd55..69660b8d1bd16eb5191651607fe85d1f717c659a 100644 (file)
@@ -287,7 +287,7 @@ public:
         CV_Assert(imInfo.total() >= 2);
         // We've chosen the smallest data type because we need just a shape from it.
         // We don't allocate memory but just need the shape is correct.
-        Mat fakeImageBlob(shape(1, 1, imInfo.at<float>(0), imInfo.at<float>(1)), CV_8UC1, nullptr);
+        Mat fakeImageBlob(shape(1, 1, imInfo.at<float>(0), imInfo.at<float>(1)), CV_8UC1, NULL);
 
         // Generate prior boxes.
         std::vector<Mat> layerInputs(2), layerOutputs(1, priorBoxes);