src/opencl/openclwrapper.cpp
static cl_int pixOpenCL(l_int32 hsize, l_int32 vsize, l_int32 wpl, l_int32 h) {
  cl_int status;
  cl_mem pixtemp;

  // Erode followed by Dilate
  status = pixErodeCL(hsize, vsize, wpl, h);

  pixtemp = pixsCLBuffer;
  pixsCLBuffer = pixdCLBuffer;
  pixdCLBuffer = pixtemp;

  status = pixDilateCL(hsize, vsize, wpl, h);

  return status;
}
// Morphology Open operation. Invokes the relevant OpenCL kernels
Morphology Open operation. Invokes the relevant OpenCL kernels
Morphology Open operation . Invokes the relevant OpenCL kernels
static cl_int pixOpenCL(l_int32 hsize, l_int32 vsize, l_int32 wpl, l_int32 h) {
  cl_int status;
  cl_mem pixtemp;
  status = pixErodeCL(hsize, vsize, wpl, h);
  pixtemp = pixsCLBuffer;
  pixsCLBuffer = pixdCLBuffer;
  pixdCLBuffer = pixtemp;
  status = pixDilateCL(hsize, vsize, wpl, h);
  return status;
}
static cl_int pixOpenCL ( l_int32 hsize , l_int32 vsize , l_int32 wpl , l_int32 h ) { cl_int status ; cl_mem pixtemp ; status = pixErodeCL ( hsize , vsize , wpl , h ) ; pixtemp = pixsCLBuffer ; pixsCLBuffer = pixdCLBuffer ; pixdCLBuffer = pixtemp ; status = pixDilateCL ( hsize , vsize , wpl , h ) ; return status ; }
Morphology Open operation.
Morphology Open operation .
// Erode followed by Dilate