Example #1
0
 /// <summary>
 /// Create an opencl kernel
 /// </summary>
 /// <param name="kernelName">The name of the kernel</param>
 /// <param name="programSource">The program source code</param>
 /// <param name="buildOps">The build options</param>
 /// <param name="errMsg">Option error message container that can be passed to this function</param>
 /// <returns>True if the kernel can be created</returns>
 public bool Create(String kernelName, ProgramSource programSource, String buildOps = null, CvString errMsg = null)
 {
     using (CvString cs = new CvString(kernelName))
         using (CvString buildOptStr = new CvString(buildOps))
         {
             return(OclInvoke.oclKernelCreate(_ptr, cs, programSource, buildOptStr, errMsg));
         }
 }