mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 15:23:05 +04:00
opencv: Use cv::AutoBuffer<>::data()
This commit is contained in:
committed by
Alexander Alekhin
parent
135ea264ef
commit
b09a4a98d4
@@ -1579,7 +1579,7 @@ public:
|
||||
return;
|
||||
|
||||
AutoBuffer<double> vbuf(var_count);
|
||||
double* v = vbuf;
|
||||
double* v = vbuf.data();
|
||||
Mat new_sv(df_count, var_count, CV_32F);
|
||||
|
||||
vector<DecisionFunc> new_df;
|
||||
@@ -1914,7 +1914,7 @@ public:
|
||||
int class_count = !svm->class_labels.empty() ? (int)svm->class_labels.total() : svmType == ONE_CLASS ? 1 : 0;
|
||||
|
||||
AutoBuffer<float> _buffer(sv_total + (class_count+1)*2);
|
||||
float* buffer = _buffer;
|
||||
float* buffer = _buffer.data();
|
||||
|
||||
int i, j, dfi, k, si;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user