possibly fixed crash boost caused by the recent modification; slightly improved mlp params in letter_recog sample

This commit is contained in:
Vadim Pisarevsky
2012-06-09 07:05:24 +00:00
parent e86f0aaea1
commit 1e14d84008
2 changed files with 12 additions and 5 deletions

View File

@@ -1250,7 +1250,7 @@ CvBoost::update_weights( CvBoostTree* tree )
if( have_subsample )
{
float* values = (float*)cur_buf_pos;
cur_buf_pos = (uchar*)(values + data->buf->step);
cur_buf_pos = (uchar*)(values + data->buf->cols);
uchar* missing = cur_buf_pos;
cur_buf_pos = missing + data->buf->step;
CvMat _sample, _mask;