mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 09:30:25 +08:00
NMS: optimized descriptor copy by rows
This commit is contained in:
@@ -2197,10 +2197,7 @@ void NMS(
|
|||||||
|
|
||||||
for (size_t i=0; i<select_indice.size(); i++)
|
for (size_t i=0; i<select_indice.size(); i++)
|
||||||
{
|
{
|
||||||
for (int j=0; j < 256; j++)
|
descriptorsIn.row(select_indice[i]).copyTo(descriptorsOut.row(i));
|
||||||
{
|
|
||||||
descriptorsOut.at<float>(i, j) = descriptorsIn.at<float>(select_indice[i], j);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user