Lines Matching refs:avg

1592     CvMat astub, *avg = (CvMat*)avg_arr;  in cvCalcPCA()  local
1601 if( !CV_IS_MAT(avg) ) in cvCalcPCA()
1602 CV_CALL( avg = cvGetMat( avg, &astub )); in cvCalcPCA()
1610 if( CV_MAT_CN(data->type) != 1 || CV_MAT_CN(avg->type) != 1 || in cvCalcPCA()
1614 if( CV_MAT_DEPTH(avg->type) < CV_32F || !CV_ARE_DEPTHS_EQ(avg, evals) || in cvCalcPCA()
1615 !CV_ARE_DEPTHS_EQ(avg, evects) ) in cvCalcPCA()
1624 if( avg->cols != 1 || avg->rows != len ) in cvCalcPCA()
1636 if( avg->rows != 1 || avg->cols != len ) in cvCalcPCA()
1663 CV_CALL( cvConvert( avg, tmp_avg ) ); in cvCalcPCA()
1737 cvConvert( tmp_avg, avg ); in cvCalcPCA()
1763 CvMat astub, *avg = (CvMat*)avg_arr; in cvProjectPCA() local
1775 if( !CV_IS_MAT(avg) ) in cvProjectPCA()
1776 CV_CALL( avg = cvGetMat( avg, &astub )); in cvProjectPCA()
1784 if( CV_MAT_CN(data->type) != 1 || CV_MAT_CN(avg->type) != 1 ) in cvProjectPCA()
1787 if( (CV_MAT_TYPE(avg->type) != CV_32FC1 && CV_MAT_TYPE(avg->type) != CV_64FC1) || in cvProjectPCA()
1788 !CV_ARE_TYPES_EQ(avg, evects) || !CV_ARE_TYPES_EQ(avg, result) ) in cvProjectPCA()
1792 if( (avg->cols != 1 || avg->rows != data->rows) && in cvProjectPCA()
1793 (avg->rows != 1 || avg->cols != data->cols) ) in cvProjectPCA()
1797 if( avg->cols == 1 ) in cvProjectPCA()
1828 elem_size = CV_ELEM_SIZE(avg->type); in cvProjectPCA()
1829 convert_data = CV_MAT_DEPTH(data->type) < CV_MAT_DEPTH(avg->type); in cvProjectPCA()
1845 as_cols ? block_count0 : len, avg->type, buffer ); in cvProjectPCA()
1846 cvRepeat( avg, &avg_repeated ); in cvProjectPCA()
1850 avg_repeated = *avg; in cvProjectPCA()
1861 norm_data = cvMat( len, block_count, avg->type, tmp_data_ptr ); in cvProjectPCA()
1867 norm_data = cvMat( block_count, len, avg->type, tmp_data_ptr ); in cvProjectPCA()
1901 CvMat astub, *avg = (CvMat*)avg_arr; in cvBackProjectPCA() local
1911 if( !CV_IS_MAT(avg) ) in cvBackProjectPCA()
1912 CV_CALL( avg = cvGetMat( avg, &astub )); in cvBackProjectPCA()
1920 if( (CV_MAT_TYPE(avg->type) != CV_32FC1 && CV_MAT_TYPE(avg->type) != CV_64FC1) || in cvBackProjectPCA()
1921 … !CV_ARE_TYPES_EQ(avg, data) || !CV_ARE_TYPES_EQ(avg, evects) || !CV_ARE_TYPES_EQ(avg, result) ) in cvBackProjectPCA()
1925 if( (avg->cols != 1 || avg->rows != result->rows) && in cvBackProjectPCA()
1926 (avg->rows != 1 || avg->cols != result->cols) ) in cvBackProjectPCA()
1930 if( avg->cols == 1 ) in cvBackProjectPCA()
1957 elem_size = CV_ELEM_SIZE(avg->type); in cvBackProjectPCA()
1972 as_cols ? block_count0 : len, avg->type, buffer ); in cvBackProjectPCA()
1973 cvRepeat( avg, &avg_repeated ); in cvBackProjectPCA()
1976 avg_repeated = *avg; in cvBackProjectPCA()