First time here? Check out the FAQ!
answered 2014-04-02 12:39:28 -0600
If you have opencv_gpu, you could try cv::gpu::alphaComp(), which is likely quite efficient!