1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 07:43:03 +04:00

Add super resolution's OpenCL implementation.

Accuracy and performance tests are also provided.
This commit is contained in:
peng xiao
2013-06-26 08:43:23 +08:00
parent c244f000ab
commit 9b3c318e85
12 changed files with 1483 additions and 16 deletions
+13 -1
View File
@@ -119,11 +119,23 @@ namespace
{
vc_ >> _frame.getMatRef();
}
else
else if(_frame.kind() == _InputArray::GPU_MAT)
{
vc_ >> frame_;
arrCopy(frame_, _frame);
}
else if(_frame.kind() == _InputArray::OCL_MAT)
{
vc_ >> frame_;
if(!frame_.empty())
{
arrCopy(frame_, _frame);
}
}
else
{
//should never get here
}
}
class VideoFrameSource : public CaptureFrameSource