Is there a way to determine if OpenCV was built with support for CUDA, either at compile time or at run-time?
For example, is there a #define I can look for? Or maybe a function I can call that will let me know if certain features like DNN+CUDA are available?