Ask Your Question

tenta4's profile - activity

2019-02-15 13:04:33 -0500 received badge  Famous Question (source)
2015-12-07 02:28:40 -0500 received badge  Famous Question (source)
2015-09-25 09:46:42 -0500 received badge  Notable Question (source)
2015-03-17 11:46:58 -0500 received badge  Notable Question (source)
2014-12-05 11:48:34 -0500 received badge  Popular Question (source)
2014-08-01 17:40:06 -0500 received badge  Popular Question (source)
2014-01-13 05:50:11 -0500 commented answer How to create and read image using open CV

It's seems you beginner in programming, if you can't to implement a loop like for x {for y}

2014-01-11 04:01:09 -0500 answered a question How to create and read image using open CV

cv::Mat img(400, 400, CV_8UC3);

// fill by white

img = cv::Scalar(255, 255, 255);

// change the pixel

int x = 50; int y = 100;

img.data[(y * img.size().width + x) * 3] = 0; // r

img.data[(y * img.size().width + x) * 3+1] = 0; //g

img.data[(y * img.size().width + x) * 3+2] = 0; //b

// write

cv::imwrite("myimg.png", img);

// open

cv::Mat opened = cv::imread("myimg.png");

cv::imshow("opened", opened);

cv::waitKey(0);

2013-12-20 08:41:55 -0500 commented question Filtering matches by keypoint coordinates

distance - is not the distance between 2d points. It is Euclidean distance between descriptors of two points.

2013-12-18 09:07:40 -0500 commented question Using solvePnP to work out the pose of my camera in terms of my model's coordinates

solvePnP returns book's translation and rotation in camera coordinate system. You can use it for model rendering. Look here to know how

http://answers.opencv.org/question/23089/opencv-opengl-proper-camera-pose-using-solvepnp/?answer=23123#post-id-23123

2013-12-17 05:21:05 -0500 asked a question Pattern recognition and pose estimation

Hi. I working for augmented reality application. For pattern recognition i use next pipe:

  • orb feature detecting
  • orb descriptor extracting
  • feature matching with Bruteforce matcher
  • pose estimation (SolvePNPRansac)

But it's pipeline works fine only for small distances and not "hard" angles.

Is there the better approach for pose estimation?

Is there additional capabilities for pattern recognition, when it flat?

2013-11-26 04:53:20 -0500 commented question buildOpticalFlowPyramid

yes, it's normal. When set flag withDerivatives, output vector size = purCount * 2

2013-11-26 04:31:16 -0500 asked a question buildOpticalFlowPyramid

Is this normal, that when i build pyramid with level = 4, function creates vector <mat> with size = 8?

It's sample code.

cv::buildOpticalFlowPyramid(queryImage, mQueryData->mPyr, cv::Size(15, 15), 3);

Here size of each mat

D/CMarkerlessRecognitionStrategy(32362): size: 432 240

D/CMarkerlessRecognitionStrategy(32362): size: 432 240

D/CMarkerlessRecognitionStrategy(32362): size: 216 120

D/CMarkerlessRecognitionStrategy(32362): size: 216 120

D/CMarkerlessRecognitionStrategy(32362): size: 108 60

D/CMarkerlessRecognitionStrategy(32362): size: 108 60

D/CMarkerlessRecognitionStrategy(32362): size: 54 30

D/CMarkerlessRecognitionStrategy(32362): size: 54 30

2013-11-22 07:17:01 -0500 asked a question solvePnPRansac returns different results

Hi, i use solvePnPRansac function in in Android application in native. With identical input parameters it returns different results (rvec, tvec and status)

Can this appears or i have memory corruptions?

2013-11-18 02:47:23 -0500 commented question knn matcher fails

maybe you have not enough memory?

2013-11-13 06:20:54 -0500 received badge  Student (source)
2013-11-13 05:47:23 -0500 asked a question OpenCV for Android

Hi. Is there any reason for use OpenCV for Android instead of native library via JNI?

2013-11-04 07:06:37 -0500 commented answer Find point coordinate in a projected rectangle

you also can apply matrix P to point F using perspectiveTransform() function

2013-11-04 07:02:44 -0500 commented question how to make two images only different from the brightness become the same

Try to convert images to HSV color model and subtract only H channel

2013-10-22 07:15:54 -0500 asked a question calcOpticalFlowPyrLK alternatives

Hi. I use calcOpticalFlowPyrLK function for pattern tracking for my Augmented Reality application.

It's very fast and stable, but i found, that Pyramid Optical Flow is not rotation invariant.

Is there alternative methods with the same speed? I tried calcOpticalFlowFarneback, but it is not fast enough

2013-10-15 13:30:33 -0500 commented question calcOpticalFlowPyrLK. Use pyramids instead of Image

I solve this problem. It's cause i used OpenCV 2.4.0. This feature is available in version >= 2.4.5

2013-10-15 05:50:08 -0500 asked a question calcOpticalFlowPyrLK. Use pyramids instead of Image

I try to use built pyramids in the calcOpticalFlowPyrLK function, but it wrote "Assertion failed (0 <= i && i < (int)v.size())"

Why it doesn't want? Documentation says prevImg – first 8-bit input image or pyramid constructed by buildOpticalFlowPyramid().

2013-09-24 14:04:50 -0500 received badge  Nice Answer (source)
2013-08-11 13:04:06 -0500 received badge  Citizen Patrol (source)
2013-08-08 09:15:29 -0500 asked a question cvFindExtrinsicCameraParams2 strange behaviour

I use cvFindExtrinsicCameraParams2 function for determinate rotation matrix and translation vector.
I have a strange situation.
When my pattern close to camera, everything is OK, but when it so far from camera, i have (look at picture) trouble.
It appears when i look at the pattern from angle 90* between optical axis and marker's plane

My question is why this appears and how can i solve it?

image description

2013-08-07 15:18:00 -0500 answered a question Opencv configuration with Qt on windows

If you want to add opencv libraruies in your Qt project, you must do next

2013-08-06 14:29:39 -0500 answered a question OpenCV Assertion Failed for Perspective Transform.

Your
Mat obj_corners = new Mat(4,1,CvType.CV_32FC1);
Mat scene_corners = new Mat(4,1,CvType.CV_32FC1);

must be CvType.CV_32FC2

Its a points 2d, that's why they have 2 (x,y) coordinates.

2013-08-05 02:52:33 -0500 commented answer Kalman filtration for rotation

Thank you, i know this, but quaternion components also interdependent. I found this article (http://www.malcolmdshuster.com/pub_1993f_c_qnorm_mds.pdf), maybe it will be helpful for me but i hoped to find the easyest solution

2013-08-05 02:18:54 -0500 asked a question Kalman filtration for rotation

I want to use Kalman filter for rotation. I have rotation matrix, but i can't use filtration for it, because all it's elements interdependent. That's why i try to convert matrix to euler angles and to filter each of compoments.

My questions:

  • is this filtering of euler angles will be right? (is all components x, y, z independent? I think no) If yes, how to avoid gimbal lock during filtration?

  • is there a better way to filter the rotation?

2013-08-03 08:15:56 -0500 commented answer opencv_core246d.dll is not in your computer

Take your opencv_core246d.dll and copy it to folder, where lies your executed file. For example, i take opencv_core246d.dll here C:\OpenCV\opencv\build\x64\vc10\bin and copy in VS project debug folder C:\Users\pc\Documents\Visual Studio 2010\Projects\opencv_test\Debug

It's easiest way

2013-08-02 13:12:39 -0500 answered a question opencv_core246d.dll is not in your computer

You have 2 variants:
1) Copy all opencv_*.dll to folder with your .exe file (i do so).
2) Add path [opencv]/bin in you PATH in environment variables.

2013-08-01 07:59:36 -0500 received badge  Nice Answer (source)
2013-07-31 08:49:29 -0500 commented answer cv::Rodrigues problem

The ansver is simple: Rotation vector - is not an Euler Angles.

2013-07-31 04:12:50 -0500 commented question Assertion Failed when using FREAK and BFMatcher in real time
2013-07-31 03:17:55 -0500 answered a question Android application to recognize and track object from camera has more false positives?

You should check if the keypoints were found
if (keypoints.size() == 0 || keypointsRef.size() == 0) return mRgba;

Your matchesList must be checked also

2013-07-31 03:10:10 -0500 commented question Assertion Failed when using FREAK and BFMatcher in real time

Are you sure that the images are opened?

2013-07-31 03:04:13 -0500 asked a question OpenCV calibrateCamera function question

image description

I want to use simple artoolkit marker to calibrate my device. Whan i found marker, i have 4 image points and 4 object points (corners of a square). I use calibrateCamera function for my 4 points to try to get intrinsic parameters. But received focals have too big amplitude (if my real fx = 960, it can calculates as 500 and 3000)

Okay, maybe marker too small (hence the large error of calculation) or four points is too few.

I try to use CV_CALIB_USE_INTRINSIC_GUESS flag, and give the initial approximation of intrinsic parameters. But output matrix is absolutely dependent of initial approximation. It means, that if i give it fx = 500, it's returns fx = 500 +/- 20, if i give it 2000, it returns 2000 +/- 20 Here my questions

  1. How i can improve my calibration results.
  2. Why CV_CALIB_USE_INTRINSIC_GUESS flag set so large dependence from initial value of intrinsic parameters?
2013-07-31 01:39:23 -0500 commented question Create a colored image from CMYK grayscale images

You can call mat.data attribute to get uchar* from cv::Mat

2013-07-30 15:41:38 -0500 commented question Create a colored image from CMYK grayscale images

I don't know the best way, but maybe this source will be helpful for you https://code.ros.org/trac/opencv/changeset/564/trunk/opencv/src/highgui/utils.cpp if you will not find the better decision

2013-07-30 02:31:03 -0500 received badge  Nice Answer (source)