Home | History | Annotate | Download | only in traincascade

Lines Matching full:sparse

1186         const CvSparseMat* sparse = (const CvSparseMat*)sample;
1189 node = cvInitSparseMatIterator( sparse, &mat_iterator );
1206 int idx = *CV_NODE_IDX( sparse, node );
1213 row_sample[idx] = *(float*)CV_NODE_VAL( sparse, node );
1222 int idx = *CV_NODE_IDX( sparse, node );
1230 ptr->val = *(float*)CV_NODE_VAL( sparse, node );
1480 CV_ERROR( CV_StsBadArg, "predict_input should be a matrix or a sparse matrix" );
1554 CvSparseMat* sparse = (CvSparseMat*)predict_input;
1577 // hack: to decrease memory footprint, make all the sparse matrices
1585 // put each row (or column) of predict_input into separate sparse matrix.
1586 node = cvInitSparseMatIterator( sparse, &mat_iterator );
1589 int* idx = CV_NODE_IDX( sparse, node );
1597 *(float*)cvPtrND( sparse, &idx1, 0, 1, 0 ) = *(float*)CV_NODE_VAL( sparse, node );