i am creating 4-dimensional blob from image cv::dnn::blobFromImage() function but it is giving rows = -1, cols = -1 and data = " ". i am using simple code as shown below.
Mat inImage = imread("A_1.ppm, 1);
Mat rgbImage;
cvtColor(inImage, rgbImage, COLOR_BGRA2RGB );
Mat 4DImage(rgbImage, 1.0, Size(rgbImage.rows, rgbImage.cols), Scalar(0, 0, 0), false, false);
return 0;