我正在尝试在点云显示中选择和区域,我也实现了回调函数,但我不知道可以在 PCL 可视化窗口中选择区域的键或鼠标单击组合。我的回调如下:
void onSelectArea (const pcl :: visualization :: AreaPickingEvent & event, void * args)
{
std::cout << "[INFO] Area picking event occurred." << std::endl;
std :: vector < int > indices;
if (event.getPointsIndices (indices) == false )
return ;
}
以下是回调注册命令:
viewer_3D->registerAreaPickingCallback(onSelectArea, (void*)&viewer_3D);