Home | History | Annotate | Download | only in src

Lines Matching refs:desc

186 CvFeatureTree* cvCreateFeatureTree(CvMat* desc) {
190 if (CV_MAT_TYPE(desc->type) != CV_32FC1 &&
191 CV_MAT_TYPE(desc->type) != CV_64FC1)
194 return new CvFeatureTree(desc);
204 // desc is m x d set of candidate points.
207 void cvFindFeatures(CvFeatureTree* tr, CvMat* desc,
216 if (desc->cols != dims)
217 CV_ERROR(CV_StsUnmatchedSizes, "desc columns be equal feature dimensions");
218 if (results->rows != desc->rows && results->cols != k)
219 CV_ERROR(CV_StsUnmatchedSizes, "results and desc must be same height");
220 if (dist->rows != desc->rows && dist->cols != k)
221 CV_ERROR(CV_StsUnmatchedSizes, "dist and desc must be same height");
227 if (CV_MAT_TYPE(type) != CV_MAT_TYPE(desc->type)) {
228 CvMat* old_desc = desc;
229 desc = cvCreateMat(desc->rows, desc->cols, type);
230 cvConvert(old_desc, desc);
234 tr->find_nn(desc, k, emax, results, dist);
239 cvReleaseMat(&desc);