Error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize' occur when runs code on Windows but works fine on Mac

A post was split to a new topic: (-215:Assertion failed) !ssize.empty() in function ‘cv::resize’