When opencv with c++ is used, it may happen this runtime error problem when feeding some container (eg:vector) to the opencv built-in function. So it is good to use Mat datatype to save the output received by the opencv built-in function and then transfer them to whatever datatype you need.
Fix for Debug Assertion Failed! Expression: __acrt_first_block == header
