Skip to content

关于分割后并查集聚类中的Traverse函数 #7

Description

@hzdsdhr

@YannZyl 您好!非常感谢您的分享,学到很多。有一个问题问一下,在obstacles_lidar_2_cnn.md中分析的并查集部分中的Traverse函数,“每棵树只有一条path的is_center=true", 其他都是false,导致后续合并时一棵树只与另一棵树的指定支路去合并。” 不太明白为什么不把所有的path的is_center设为true,这样相近的所有树及分支都能够合并,只与一个path合并的话,不会漏掉与这一个path距离远而与其他path距离较近的同一个物体上的点吗?如果我想尝试合并所有相近的树和分支,是不是应该把if (x->traversed == 2)改为if(x->traversed == 2 || x->traversed == 1)?
谢谢!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions