mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 09:30:25 +08:00
Fixed NMS seg fault #1064
This commit is contained in:
@@ -2155,7 +2155,7 @@ void NMS(
|
|||||||
{
|
{
|
||||||
for(int j = -dist_thresh; j < (dist_thresh+1); j++)
|
for(int j = -dist_thresh; j < (dist_thresh+1); j++)
|
||||||
{
|
{
|
||||||
if(j==0 && k==0)
|
if((j==0 && k==0) || grid.at<unsigned char>(vv + k, uu + j) == 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if ( confidence.at<float>(vv + k - dist_thresh, uu + j - dist_thresh) <= c )
|
if ( confidence.at<float>(vv + k - dist_thresh, uu + j - dist_thresh) <= c )
|
||||||
|
|||||||
Reference in New Issue
Block a user