Lines Matching full:points
55 /* Create feature points on image and return number of them. Array points fills by found points */
56 int icvCreateFeaturePoints(IplImage *image, CvMat *points, CvMat *status) in icvCreateFeaturePoints() argument
68 if( image == 0 || points == 0 ) in icvCreateFeaturePoints()
84 if( !CV_IS_MAT(points) ) in icvCreateFeaturePoints()
86 CV_ERROR( CV_StsUnsupportedFormat, "Input parameter points must be a matrix" ); in icvCreateFeaturePoints()
90 needNumPoints = points->cols; in icvCreateFeaturePoints()
93 CV_ERROR( CV_StsOutOfRange, "Number of need points must be > 0" ); in icvCreateFeaturePoints()
96 if( points->rows != 2 ) in icvCreateFeaturePoints()
111 CV_ERROR( CV_StsUnmatchedSizes, "Size of points and statuses must be the same" ); in icvCreateFeaturePoints()
125 /* Create points */ in icvCreateFeaturePoints()
139 /* Copy found points to result */ in icvCreateFeaturePoints()
143 cvmSet(points,0,i,cornerPoints[i].x); in icvCreateFeaturePoints()
144 cvmSet(points,1,i,cornerPoints[i].y); in icvCreateFeaturePoints()
177 /* Returns number of corresponding points */
184 int useFilter,/*Use fundamental matrix to filter points */ in icvFindCorrForGivenPoints()
185 double threshold)/* Threshold for good points in filter */ in icvFindCorrForGivenPoints()
232 … CV_ERROR( CV_StsUnsupportedFormat, "Input parameters (points and status) must be a matrices" ); in icvFindCorrForGivenPoints()
241 /* Test number of points */ in icvFindCorrForGivenPoints()
252 CV_ERROR( CV_StsUnmatchedSizes, "Number of points and statuses must be the same" ); in icvFindCorrForGivenPoints()
257 CV_ERROR( CV_StsOutOfRange, "Number of points coordinates must be 2" ); in icvFindCorrForGivenPoints()
267 /* Compute number of visible points on image1 */ in icvFindCorrForGivenPoints()
316 /* Copy points good points from input data */ in icvFindCorrForGivenPoints()
346 /* Copy new points and set status */ in icvFindCorrForGivenPoints()
365 /* Filter points using RANSAC */ in icvFindCorrForGivenPoints()
369 /* Use RANSAC filter for found points */ in icvFindCorrForGivenPoints()
372 /* Create array with good points only */ in icvFindCorrForGivenPoints()
376 /* Copy just good points */ in icvFindCorrForGivenPoints()
441 /* Add to existing points and status arrays new points or just grow */ in icvGrowPointsAndStatus()
474 CV_ERROR( CV_StsOutOfRange, "Number of old points must be > 0" ); in icvGrowPointsAndStatus()
477 /* Define if need number of add points */ in icvGrowPointsAndStatus()
481 {/* We have aditional points */ in icvGrowPointsAndStatus()
487 CV_ERROR( CV_StsOutOfRange, "Number of add points and statuses must be the same" ); in icvGrowPointsAndStatus()
521 /* Copy additional points and statuses */ in icvGrowPointsAndStatus()
550 int icvRemoveDoublePoins( CvMat *oldPoints,/* Points on prev image */ in icvRemoveDoublePoins()
551 CvMat *newPoints,/* New points */ in icvRemoveDoublePoins()
552 CvMat *oldStatus,/* Status for old points */ in icvRemoveDoublePoins()
555 float threshold)/* Status for new points */ in icvRemoveDoublePoins()
576 CV_ERROR( CV_StsUnsupportedFormat, "Input parameters points must be a matrices" ); in icvRemoveDoublePoins()
593 CV_ERROR( CV_StsUnmatchedSizes, "Number of old Points and old Statuses must be the same" ); in icvRemoveDoublePoins()
605 CV_ERROR( CV_StsUnmatchedSizes, "Number of new Points and new Statuses must be the same" ); in icvRemoveDoublePoins()
610 … CV_ERROR( CV_StsUnmatchedSizes, "Number of new Points and new original Status must be the same" ); in icvRemoveDoublePoins()
628 /* we have points on image and wants add new points */ in icvRemoveDoublePoins()
629 /* use subdivision for find nearest points */ in icvRemoveDoublePoins()
692 /* Add just exist points */ in icvRemoveDoublePoins()
705 /* Find nearest points */ in icvRemoveDoublePoins()
711 /* Test just exist points */ in icvRemoveDoublePoins()
761 /* Compute number of good points */ in icvComputeProjectMatrixStatus()
825 we have corresponding points on N images
827 reconstructed 4D points
837 … CvMat *oldPoints,// previous 2D points on prev image (some points may be not visible) in icvAddNewImageToPrevious____()
839 CvMat *objPoints4D,//prev 4D points in icvAddNewImageToPrevious____()
840 CvMat *newPoints, //Points on new image corr for prev in icvAddNewImageToPrevious____()
842 CvMat *newFPoints2D1,//new feature points on prev image in icvAddNewImageToPrevious____()
843 CvMat *newFPoints2D2,//new feature points on new image in icvAddNewImageToPrevious____()
856 /* First found correspondence points for images */ in icvAddNewImageToPrevious____()
876 useFilter,/*Use fundamental matrix to filter points */ in icvAddNewImageToPrevious____()
877 threshold);/* Threshold for good points in filter */ in icvAddNewImageToPrevious____()
892 /* Create new points and find correspondence */ in icvAddNewImageToPrevious____()
895 /* Good if we test new points before find corr points */ in icvAddNewImageToPrevious____()
897 /* Find correspondence for new found points */ in icvAddNewImageToPrevious____()
904 useFilter,/*Use fundamental matrix to filter points */ in icvAddNewImageToPrevious____()
905 threshold);/* Threshold for good points in filter */ in icvAddNewImageToPrevious____()
907 /* We generated new points on image test for exist points */ in icvAddNewImageToPrevious____()
909 /* Remove all new double points */ in icvAddNewImageToPrevious____()
913 origNum = icvRemoveDoublePoins( oldPoints,/* Points on prev image */ in icvAddNewImageToPrevious____()
914 newFPoints2D1,/* New points */ in icvAddNewImageToPrevious____()
915 oldPntStatus,/* Status for old points */ in icvAddNewImageToPrevious____()
918 20);/* Status for new points */ in icvAddNewImageToPrevious____()
920 /* Find double points on new image */ in icvAddNewImageToPrevious____()
921 origNum = icvRemoveDoublePoins( newPoints,/* Points on prev image */ in icvAddNewImageToPrevious____()
922 newFPoints2D2,/* New points */ in icvAddNewImageToPrevious____()
923 newPntStatus,/* Status for old points */ in icvAddNewImageToPrevious____()
926 20);/* Status for new points */ in icvAddNewImageToPrevious____()
930 /* Add all new good points to result */ in icvAddNewImageToPrevious____()
953 CvMat **points, in icvDeleteSparsInPoints() argument
957 /* Delete points which no exist on any of images */ in icvDeleteSparsInPoints()
959 /* points - arrays of points for each image. Changing */ in icvDeleteSparsInPoints()
961 /* Function returns number of common points */ in icvDeleteSparsInPoints()
973 if( points == 0 || status == 0 ) in icvDeleteSparsInPoints()
979 numPoints = points[0]->cols; in icvDeleteSparsInPoints()
983 numCoord = points[0]->rows;// !!! may be number of coordinates is not correct !!! in icvDeleteSparsInPoints()
1006 /* Copy points and status */ in icvDeleteSparsInPoints()
1011 /* Copy points */ in icvDeleteSparsInPoints()
1014 … cvmSet(points[currImage],currCoord,currExistPoint, cvmGet(points[currImage],currCoord,i) ); in icvDeleteSparsInPoints()
1031 /* Rest of final status of points must be set to 0 */ in icvDeleteSparsInPoints()
1048 void icvGrowPointsArray(CvMat **points)
1068 /* Add image to existing images and corr points */
1071 /* 0 image was not added. Not enought corr points */
1074 … CvMat *oldPoints,// previous 2D points on prev image (some points may be not visible)
1076 CvMat *objPoints4D,//prev 4D points
1078 CvMat *newPoints,//New corresponding points on new image
1079 CvMat *newPoints2D1,//new points on prev image
1080 CvMat *newPoints2D2,//new points on new image
1084 /* Add new image. Create new corr points */
1085 /* Track exist points from oldImage to newImage */
1095 /* Status has new status of points */
1101 /* If number of corr points is 6 or more can compute projection matrix */
1104 /* Compute projection matrix for new image using corresponding points */
1108 /* Create new points and find correspondence */
1116 /* Set status for all points */
1125 /* !!! Filter points using projection matrices or not ??? */
1127 /* !!! Need to filter nearest points */
1129 /* Add new found points to exist points and optimize again */
1142 /* No new points were found */