Skip to content

Commit 1070e70

Browse files
committed
Merge pull request #1733 from cv3d:minor/umat_getmat_access
2 parents 97878da + 271f2bc commit 1070e70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/optflow/src/sparse_matching_gpc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ bool ocl_getAllDCTDescriptorsForImage( const Mat *imgCh, std::vector< GPCPatchDe
278278
(int)globSize[0], (int)globSize[1], (int)patchRadius )
279279
.run( 2, globSize, 0, true ) == false )
280280
return false;
281-
Mat cpuOut = out.getMat( 0 );
281+
Mat cpuOut = out.getMat( ACCESS_READ );
282282
for ( int i = 0; i + 2 * patchRadius < sz.height; ++i )
283283
for ( int j = 0; j + 2 * patchRadius < sz.width; ++j )
284284
descr.push_back( *cpuOut.ptr< GPCPatchDescriptor >( i * globSize[1] + j ) );

0 commit comments

Comments
 (0)