mirror of
https://github.com/opencv/opencv_contrib.git
synced 2025-10-15 20:37:07 +08:00
Merge pull request #1733 from cv3d:minor/umat_getmat_access
This commit is contained in:
@@ -278,7 +278,7 @@ bool ocl_getAllDCTDescriptorsForImage( const Mat *imgCh, std::vector< GPCPatchDe
|
||||
(int)globSize[0], (int)globSize[1], (int)patchRadius )
|
||||
.run( 2, globSize, 0, true ) == false )
|
||||
return false;
|
||||
Mat cpuOut = out.getMat( 0 );
|
||||
Mat cpuOut = out.getMat( ACCESS_READ );
|
||||
for ( int i = 0; i + 2 * patchRadius < sz.height; ++i )
|
||||
for ( int j = 0; j + 2 * patchRadius < sz.width; ++j )
|
||||
descr.push_back( *cpuOut.ptr< GPCPatchDescriptor >( i * globSize[1] + j ) );
|
||||
|
Reference in New Issue
Block a user