Merge pull request #16604 from Volskig:mp/ocv-gapi-zero-height-mat

G-API: Zero-height mat is cause of crash

* Added check for zero-height Mat case

* Refactoring, added validate_input_arg func

* No bool function now
This commit is contained in:
Maxim Pashchenkov
2020-03-10 14:44:16 +03:00
committed by GitHub
parent 27b71d6368
commit 3befdb4ae8
4 changed files with 65 additions and 0 deletions
@@ -126,6 +126,10 @@ bool GAPI_EXPORTS can_describe(const GMetaArgs& metas, const GRunArgs& args);
// coincides with output arguments passed to computation in cpu and ocl backends
bool GAPI_EXPORTS can_describe(const GMetaArg& meta, const GRunArgP& argp);
// Validates input arguments
void GAPI_EXPORTS validate_input_arg(const GRunArg& arg);
void GAPI_EXPORTS validate_input_args(const GRunArgs& args);
} // namespace cv
#endif // OPENCV_GAPI_GPROTO_HPP