# Revision history [back]

### findCorners to Matrix

Hi, I am attempting to use a solvePnp example that uses a chessboard, with points in place of the chessboard.

So I have this:

bool found = findChessboardCorners(gray, cbSize, imagePoints, CALIB_CB_FAST_CHECK);

which fills the imagepoints matrix that is initiated here:

vector< Point2d > imagePoints;

However, because i want to use non-chessboard points, i need to fill imagepoints with data from a cvGoodFeaturesToTrack operation.

So I find the markers, then i need to do something like...

for (int i = 0; i < corner_count; i++) {

//add to imagepoints matrix (corners[i].x, corners[i].y); }

How would i go about doing this? Apologies if this is a stupid question, Matrix stuff is new to me!

many thanks!

 2 No.2 Revision FooBar 2938 ●9 ●37 http://magazino.eu/

### findCorners to Matrix

Hi, I am attempting to use a solvePnp example that uses a chessboard, with points in place of the chessboard.

So I have this:

bool found = findChessboardCorners(gray, cbSize, imagePoints, CALIB_CB_FAST_CHECK);CALIB_CB_FAST_CHECK);


which fills the imagepoints matrix that is initiated here:

vector< Point2d > imagePoints;imagePoints;


However, because i want to use non-chessboard points, i need to fill imagepoints with data from a cvGoodFeaturesToTrack operation.

So I find the markers, then i need to do something like...

for (int i = 0; i < corner_count; i++) { {
//add to imagepoints matrix (corners[i].x, corners[i].y);
}}


How would i go about doing this? Apologies if this is a stupid question, Matrix stuff is new to me!

many thanks!