mirror of
https://github.com/opencv/opencv.git
synced 2024-11-25 11:40:44 +08:00
decreased size of the buffer used in CvBoost::update_weights (ticket #1803)
This commit is contained in:
parent
517fc5e2d2
commit
bc54195199
@ -1132,7 +1132,7 @@ CvBoost::update_weights( CvBoostTree* tree )
|
||||
else
|
||||
{
|
||||
if( have_subsample )
|
||||
_buf_size += data->buf->step*(sizeof(float)+sizeof(uchar));
|
||||
_buf_size += data->buf->cols*(sizeof(float)+sizeof(uchar));
|
||||
}
|
||||
inn_buf.allocate(_buf_size);
|
||||
uchar* cur_buf_pos = (uchar*)inn_buf;
|
||||
|
Loading…
Reference in New Issue
Block a user