added CV_16UC(1, 3, 4), CV_16SC(1, 3, 4) data types support in ocl::pyrUp and ocl::pyrDown

This commit is contained in:
Ilya Lavrenov
2013-09-10 11:53:34 +04:00
parent 747f7178ca
commit 6b9c451938
5 changed files with 791 additions and 138 deletions

View File

@@ -61,6 +61,11 @@ namespace cv
extern const char *pyr_up;
void pyrUp(const cv::ocl::oclMat &src, cv::ocl::oclMat &dst)
{
int depth = src.depth(), channels = src.channels();
CV_Assert(depth == CV_8U || depth == CV_16U || depth == CV_16S || depth == CV_32F);
CV_Assert(channels == 1 || channels == 3 || channels == 4);
dst.create(src.rows * 2, src.cols * 2, src.type());
Context *clCxt = src.clCxt;