photoneo / phoxi_camera

ROS Package for PhoXi Scanner/Camera. If you like us, STAR US! :P
MIT License
44 stars 32 forks source link

Documentation for pho::api::PFrame is missing. Unable to find ways to extract all the frame data. #57

Open sandeshk-intel opened 2 years ago

sandeshk-intel commented 2 years ago

PrintFrameData example prints the following data: void FullAPIExample::PrintFrameData(const pho::api::PFrame &Frame) { if (Frame->Empty()) { std::cout << "Frame is empty."; return; } std::cout << " Frame data: " << std::endl; if (!Frame->PointCloud.Empty()) { std::cout << " PointCloud: (" << Frame->PointCloud.Size.Width << " x " << Frame->PointCloud.Size.Height << ") Type: " << Frame->PointCloud.GetElementName() << std::endl; } if (!Frame->NormalMap.Empty()) { std::cout << " NormalMap: (" << Frame->NormalMap.Size.Width << " x " << Frame->NormalMap.Size.Height << ") Type: " << Frame->NormalMap.GetElementName() << std::endl; } if (!Frame->DepthMap.Empty()) { std::cout << " DepthMap: (" << Frame->DepthMap.Size.Width << " x " << Frame->DepthMap.Size.Height << ") Type: " << Frame->DepthMap.GetElementName() << std::endl; } if (!Frame->ConfidenceMap.Empty()) { std::cout << " ConfidenceMap: (" << Frame->ConfidenceMap.Size.Width << " x " << Frame->ConfidenceMap.Size.Height << ") Type: " << Frame->ConfidenceMap.GetElementName() << std::endl; } if (!Frame->Texture.Empty()) { std::cout << " Texture: (" << Frame->Texture.Size.Width << " x " << Frame->Texture.Size.Height << ") Type: " << Frame->Texture.GetElementName() << std::endl; } }

How to extract the frame blob ?

How to extract the x y z values of PointCloud ?