Skip to content

Check type in blobFromImages and blobFromImagesWithParams #23759

@LaurentBerger

Description

@LaurentBerger

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);
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions