mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 23:33:05 +04:00
opencv: Use cv::AutoBuffer<>::data()
This commit is contained in:
committed by
Alexander Alekhin
parent
135ea264ef
commit
b09a4a98d4
@@ -205,7 +205,7 @@ public:
|
||||
int nvars = (int)varIdx.size();
|
||||
double sumw = 0., C = 1.;
|
||||
cv::AutoBuffer<double> buf(n + nvars);
|
||||
double* result = buf;
|
||||
double* result = buf.data();
|
||||
float* sbuf = (float*)(result + n);
|
||||
Mat sample(1, nvars, CV_32F, sbuf);
|
||||
int predictFlags = bparams.boostType == Boost::DISCRETE ? (PREDICT_MAX_VOTE | RAW_OUTPUT) : PREDICT_SUM;
|
||||
|
||||
Reference in New Issue
Block a user