fixed gpu morphology: now kernel in gpu is passed to npp functions.

warnings in cxcore
added graphcut wrapper
This commit is contained in:
Anatoly Baksheev
2010-09-28 08:45:44 +00:00
parent 5d95cd75f2
commit 60e572bbcf
5 changed files with 108 additions and 16 deletions

View File

@@ -133,7 +133,7 @@ public:
protected:
virtual int test(const Mat& img)
{
Mat kernel(3, 3, CV_8U, Scalar(1));
GpuMat kernel(Mat::ones(3, 3, CV_8U));
Point anchor(1,1);
int iters = 3;
@@ -157,7 +157,7 @@ public:
protected:
virtual int test(const Mat& img)
{
Mat kernel(3, 3, CV_8U, Scalar(1));
GpuMat kernel(Mat::ones(3, 3, CV_8U));
Point anchor(1,1);
int iters = 3;
@@ -185,7 +185,7 @@ protected:
const char *names[] = { "MORPH_OPEN", "CV_MOP_CLOSE", "CV_MOP_GRADIENT", "CV_MOP_TOPHAT", "CV_MOP_BLACKHAT"};
int num = sizeof(ops)/sizeof(ops[0]);
Mat kernel(3, 3, CV_8U, Scalar(1));
GpuMat kernel(Mat::ones(3, 3, CV_8U));
Point anchor(1,1);
int iters = 3;