Merge pull request #3566 from jet47:cuda-imgproc-refactoring

This commit is contained in:
Vadim Pisarevsky
2015-01-13 11:21:51 +00:00
12 changed files with 161 additions and 162 deletions

View File

@@ -130,6 +130,12 @@ namespace cv { namespace cuda
class NppStreamHandler
{
public:
inline explicit NppStreamHandler(Stream& newStream)
{
oldStream = nppGetStream();
nppSetStream(StreamAccessor::getStream(newStream));
}
inline explicit NppStreamHandler(cudaStream_t newStream)
{
oldStream = nppGetStream();