-
-
Notifications
You must be signed in to change notification settings - Fork 56.5k
Check type in blobFromImages and blobFromImagesWithParams #23759
Copy link
Copy link
Closed
Labels
Milestone
Description
Describe the feature and motivation
Everything is described here https://forum.opencv.org/t/how-to-use-blobfromimageswithparams/13430
Additional context
I propose to check InputArraysOfArray type in blobFromImages and blobFromImageWithParams:
if (images_.kind() != _InputArray::STD_VECTOR_MAT && images_.kind() != _InputArray::STD_ARRAY_MAT &&
images_.kind() != _InputArray::STD_VECTOR_VECTOR) {
String error_message = "The data is expected as InputArray::STD_VECTOR_MAT (a std::vector<Mat>) or _InputArray::STD_VECTOR_VECTOR (a std::vector< std::vector<...> >).";
CV_Error(Error::StsBadArg, error_message);
}
Reactions are currently unavailable