if( k == OCL_MAT )
{
- CV_Error(-1, "Not implemented");
+ CV_Error(CV_StsNotImplemented, "This method is not implemented for oclMat yet");
}
CV_Assert( k == STD_VECTOR_MAT );
if( k == OCL_MAT )
{
- CV_Error(-1, "Not implemented");
+ CV_Error(CV_StsNotImplemented, "This method is not implemented for oclMat yet");
}
CV_Assert( k == STD_VECTOR_MAT );
if( k == OCL_MAT )
{
- CV_Error(-1, "Not implemented");
+ CV_Error(CV_StsNotImplemented, "This method is not implemented for oclMat yet");
}
CV_Assert( k == GPU_MAT );
if( k == OCL_MAT )
{
- CV_Error(-1, "Not implemented");
+ CV_Error(CV_StsNotImplemented, "This method is not implemented for oclMat yet");
}
CV_Assert( k == GPU_MAT );
if( k == OCL_MAT )
{
- CV_Error(-1, "Not implemented");
+ CV_Error(CV_StsNotImplemented, "This method is not implemented for oclMat yet");
}
if( k == NONE )
if( k == OCL_MAT )
{
- CV_Error(-1, "Not implemented");
+ CV_Error(CV_StsNotImplemented, "This method is not implemented for oclMat yet");
}
CV_Assert( k == STD_VECTOR_MAT );
int wholecols;
};
- // convert InputArray/OutputArray to oclMat
- CV_EXPORTS oclMat& getOclMat(InputArray src);
- CV_EXPORTS oclMat& getOclMat(OutputArray src);
+ // convert InputArray/OutputArray to oclMat references
+ CV_EXPORTS oclMat& getOclMatRef(InputArray src);
+ CV_EXPORTS oclMat& getOclMatRef(OutputArray src);
///////////////////// mat split and merge /////////////////////////////////
//! Compose a multi-channel array from several single-channel arrays
return newOutputArray;
}
-cv::ocl::oclMat& cv::ocl::getOclMat(InputArray src)
+cv::ocl::oclMat& cv::ocl::getOclMatRef(InputArray src)
{
CV_Assert(src.flags & cv::_InputArray::OCL_MAT);
return *reinterpret_cast<oclMat*>(src.obj);
}
-cv::ocl::oclMat& cv::ocl::getOclMat(OutputArray src)
+cv::ocl::oclMat& cv::ocl::getOclMatRef(OutputArray src)
{
CV_Assert(src.flags & cv::_InputArray::OCL_MAT);
return *reinterpret_cast<oclMat*>(src.obj);