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
@@ -2166,7 +2166,7 @@ void perf::sort(std::vector<cv::KeyPoint>& pts, cv::InputOutputArray descriptors
|
||||
for (int i = 0; i < desc.rows; ++i)
|
||||
idxs[i] = i;
|
||||
|
||||
std::sort((int*)idxs, (int*)idxs + desc.rows, KeypointComparator(pts));
|
||||
std::sort(idxs.data(), idxs.data() + desc.rows, KeypointComparator(pts));
|
||||
|
||||
std::vector<cv::KeyPoint> spts(pts.size());
|
||||
cv::Mat sdesc(desc.size(), desc.type());
|
||||
|
||||
Reference in New Issue
Block a user