Home | History | Annotate | Download | only in cpp

Lines Matching refs:Size

17 void sample_neg( const vector< Mat > & full_neg_lst, vector< Mat > & neg_lst, const Size & size );
18 Mat get_hogdescriptor_visu(const Mat& color_origImg, vector<float>& descriptorValues, const Size & size );
19 void compute_hog( const vector< Mat > & img_lst, vector< Mat > & gradient_lst, const Size & size );
22 void test_it( const Size & size );
47 * TrainData is a matrix of size (#samples x max(#cols,#rows) per samples), in 32FC1.
53 const int rows = (int)train_samples.size();
107 void sample_neg( const vector< Mat > & full_neg_lst, vector< Mat > & neg_lst, const Size & size )
110 box.width = size.width;
111 box.height = size.height;
134 Mat get_hogdescriptor_visu(const Mat& color_origImg, vector<float>& descriptorValues, const Size & size )
136 const int DIMX = size.width;
137 const int DIMY = size.height;
140 resize(color_origImg, visu, Size( (int)(color_origImg.cols*zoomFac), (int)(color_origImg.rows*zoomFac) ) );
292 void compute_hog( const vector< Mat > & img_lst, vector< Mat > & gradient_lst, const Size & size )
295 hog.winSize = size;
305 hog.compute( gray, descriptors, Size( 8, 8 ), Size( 0, 0 ), location );
308 imshow( "gradient", get_hogdescriptor_visu( img->clone(), descriptors, size ) );
351 void test_it( const Size & size )
360 my_hog.winSize = size;
420 labels.assign( pos_lst.size(), +1 );
421 const unsigned int old = (unsigned int)labels.size();
423 sample_neg( full_neg_lst, neg_lst, Size( 96,160 ) );
424 labels.insert( labels.end(), neg_lst.size(), -1 );
425 CV_Assert( old < labels.size() );
427 compute_hog( pos_lst, gradient_lst, Size( 96, 160 ) );
428 compute_hog( neg_lst, gradient_lst, Size( 96, 160 ) );
432 test_it( Size( 96, 160 ) ); // change with your parameters