Add super resolution's OpenCL implementation.
Accuracy and performance tests are also provided.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user