Ask Your Question

Josky's profile - activity

2017-10-19 13:39:09 -0600 received badge  Nice Question (source)
2016-04-08 09:46:03 -0600 received badge  Student (source)
2016-04-08 08:56:55 -0600 commented answer linearPolar problem with UMat

The code works with setUseOpenCL(false) (as it works with Mat instead of UMat), but still not works with setUseOpenCL(true). Any suggestion?

2016-04-08 07:24:52 -0600 commented answer linearPolar problem with UMat

I try your implementation but the problem is not been solved: the image after the resize is still full-black.

2016-04-08 05:08:10 -0600 asked a question linearPolar problem with UMat

I have some problems with cv::linearPolar using UMat in openCV 3.0.

The destination UMat is correct but I can't use it anymore in any other cv function (e.g. when I try to resize it I get a full-black image)

Here's the code:

UMat u1, u2, u3;
u1 = imread("path", CV_LOAD_IMAGE_GRAYSCALE).GetUMat(ACCESS_RW);
linearPolar(u1, u2, Point(u1.cols / 2, u1.rows / 2), u1.rows / 2,  CV_WARP_FILL_OUTLIERS + CV_INTER_LINEAR);
//correct image
resize(u2, u3, Size(u2.cols * 2, u2.rows * 2));
//completely black image

Another issue: linearPolar seems different from the old cvLinearPolar: with linearPolar I can't set the destination Mat to a precise Size as I did with cvLinearPolar.

Thanks in advance.