I am currently trying to port a code which is based on opencv 2.x to opencv 3.x (higher than 3.1). Within this code a function, namely cvGetMat(...) is being used. Since this function doesn't exist in opencv 3.x, I need a proper replacement. Does anyone know, how to replace this function properly? I already looked for it both in the opencv documentation and here at stackoverflow but couldn't find anything.
Here's a snipped code segment using this function
void cvCanny3( const void* srcarr, void* dstarr,
void* dxarr, void* dyarr,
int aperture_size )
{
CvMat srcstub, *src = cvGetMat( srcarr, &srcstub );
CvMat dststub, *dst = cvGetMat( dstarr, &dststub );
CvMat dxstub, *dx = cvGetMat( dxarr, &dxstub );
CvMat dystub, *dy = cvGetMat( dyarr, &dystub );
...
...
...
}
When I run this code I just get following error as expected:
‘cvGetMat’ was not declared in this scope CvMat srcstub, *src = cvGetMat( srcarr, &srcstub ); ^~~~~~~~