1 | initial version |
As you can see from the name of error 'std::bad_alloc' is not an error of OpenCV library but an error of STD library (which is used by OpenCV for some operations). If STD was unable to allocate the memory it means you just don't have enough. Normally computers don't have 10GB RAM so they won't be able to perform operations on images of this size (at least not all at once). How much RAM do you have?