mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 07:13:02 +04:00
opencv: Use cv::AutoBuffer<>::data()
This commit is contained in:
committed by
Alexander Alekhin
parent
135ea264ef
commit
b09a4a98d4
@@ -335,7 +335,7 @@ public:
|
||||
CatMapHash ofshash;
|
||||
|
||||
AutoBuffer<uchar> buf(nsamples);
|
||||
Mat non_missing(layout == ROW_SAMPLE ? Size(1, nsamples) : Size(nsamples, 1), CV_8U, (uchar*)buf);
|
||||
Mat non_missing(layout == ROW_SAMPLE ? Size(1, nsamples) : Size(nsamples, 1), CV_8U, buf.data());
|
||||
bool haveMissing = !missing.empty();
|
||||
if( haveMissing )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user