point-cloud-library

Stream of Cloud Point Visualization using PCL

北战南征 提交于 2019-11-30 12:56:59
问题 I am doing some processing on RGB and Depth data and constructing cloud points that are to be visualized, I currently use PCL Visualizer and it works fine. I want to have the visualizer in a different thread (real time so it will redraw the global cloud point, I tried boost threads but I get a runtime error "VTK bad lookup table" Anyone knows how to visualize stream of cloud points in a different thread ? 回答1: OK, I got it to work now, maybe I did something wrong before, here is how I did it

Embedding PCL Viewer on a Qt GUI Main Window

不羁岁月 提交于 2019-11-30 10:05:05
I am trying to develop a user interface using QtCreator on a Windows 7 64-bit machine. This user interface will be deployed on a 32-bit Windows 7 machine, and will control a projector and a camera for a structured-light application. For reasons beyond my control (compatibility with camera and projector's APIs), I will use the MS VS 2010 32bit compiler for this. After a couple of weeks trying to have everything I need working together (Qt 4.8.4, QtCreator and Point Cloud Library), I am now facing a slight problem. Is there a way that I can embed the PCL Point Cloud Viewer inside my main Qt GUI

How to convert cv::Mat to pcl::pointcloud

别说谁变了你拦得住时间么 提交于 2019-11-30 07:28:36
How to get from a opencv Mat pointcloud to a pcl::pointcloud? The color is not important for me only the points itself. you can do this like: pcl::PointCloud<pcl::PointXYZ>::Ptr SimpleOpenNIViewer::MatToPoinXYZ(cv::Mat OpencVPointCloud) { /* * Function: Get from a Mat to pcl pointcloud datatype * In: cv::Mat * Out: pcl::PointCloud */ //char pr=100, pg=100, pb=100; pcl::PointCloud<pcl::PointXYZ>::Ptr point_cloud_ptr(new pcl::PointCloud<pcl::PointXYZ>);//(new pcl::pointcloud<pcl::pointXYZ>); for(int i=0;i<OpencVPointCloud.cols;i++) { //std::cout<<i<<endl; pcl::PointXYZ point; point.x =

Stream of Cloud Point Visualization using PCL

安稳与你 提交于 2019-11-30 03:50:01
I am doing some processing on RGB and Depth data and constructing cloud points that are to be visualized, I currently use PCL Visualizer and it works fine. I want to have the visualizer in a different thread (real time so it will redraw the global cloud point, I tried boost threads but I get a runtime error "VTK bad lookup table" Anyone knows how to visualize stream of cloud points in a different thread ? OK, I got it to work now, maybe I did something wrong before, here is how I did it using boost threads and mutex bool update; boost::mutex updateModelMutex; pcl::PointCloud<pcl::PointXYZRGB>:

How to project point cloud onto the ground plane and transfer it into an 2D image (OpenCV Mat) in Point Cloud Library?

徘徊边缘 提交于 2019-11-30 00:03:13
问题 I want to segment stones on the ground and count the area of the stones like this : I have written OpenCV for 2 years and find it's really hard to segment the stones only using OpenCV RGB picture, so I use kinect fusion to scan the ground and get a point cloud, in which the stones is higher than the ground. I use the Point Cloud Library to segment the ground plane (in green color) like this: Now I am trying to project the rest points onto the ground plane and get a 2D image in OpenCV Mat

Embedding PCL Viewer on a Qt GUI Main Window

你说的曾经没有我的故事 提交于 2019-11-29 15:10:44
问题 I am trying to develop a user interface using QtCreator on a Windows 7 64-bit machine. This user interface will be deployed on a 32-bit Windows 7 machine, and will control a projector and a camera for a structured-light application. For reasons beyond my control (compatibility with camera and projector's APIs), I will use the MS VS 2010 32bit compiler for this. After a couple of weeks trying to have everything I need working together (Qt 4.8.4, QtCreator and Point Cloud Library), I am now

How to convert cv::Mat to pcl::pointcloud

守給你的承諾、 提交于 2019-11-29 09:41:00
问题 How to get from a opencv Mat pointcloud to a pcl::pointcloud? The color is not important for me only the points itself. 回答1: you can do this like: pcl::PointCloud<pcl::PointXYZ>::Ptr SimpleOpenNIViewer::MatToPoinXYZ(cv::Mat OpencVPointCloud) { /* * Function: Get from a Mat to pcl pointcloud datatype * In: cv::Mat * Out: pcl::PointCloud */ //char pr=100, pg=100, pb=100; pcl::PointCloud<pcl::PointXYZ>::Ptr point_cloud_ptr(new pcl::PointCloud<pcl::PointXYZ>);//(new pcl::pointcloud<pcl::pointXYZ>

Cmake is Unable to Configure Project for Visual Studios 10 amd64

人盡茶涼 提交于 2019-11-29 07:19:41
I am trying to get CMAKE to create a project for msvc 10 express edition for x64 architecture. I have both MSVC 2010 Express and Windows SDK 7.1 installed. If I start CMake Normally I can create a 32 bit project, however it fails to make a 64 bit project. I have also Tried starting CMAKE from within the Windows SDK Command Prompt (cl cmd maps to x64 version) however It still fails with the following. Found Windows SDK v7.1: C:\Program Files\Microsoft SDKs\Windows\v7.1\ Check for working C compiler using: Visual Studio 10 Win64 Check for working C compiler using: Visual Studio 10 Win64 --

RANSAC-like implementation for arbitrary 2D sets

久未见 提交于 2019-11-29 06:46:01
TL;DR : Is there a C++ implementation of RANSAC or other robust correspondence algorithms that is freely usable with arbitrary 2D point sets? I know that many implementations exist that include or make use of correspondence algorithms such as RANSAC (Random Sampling Consensus). They are often used in computer vision applications and found in libraries such as OpenCV , PCL , etc. The general algorithm is well known and various site lists the different steps. Now, all the "advanced" implementations (done for OpenCV, PCL, etc.) I have found are for specific types of problem with an underlying set

How to Display a 3D image when we have Depth and rgb Mat's in OpenCV (captured from Kinect)

折月煮酒 提交于 2019-11-29 04:51:55
We captured a 3d Image using Kinect with OpenNI Library and got the rgb and depth images in the form of OpenCV Mat using this code. main() { OpenNI::initialize(); puts( "Kinect initialization..." ); Device device; if ( device.open( openni::ANY_DEVICE ) != 0 ) { puts( "Kinect not found !" ); return -1; } puts( "Kinect opened" ); VideoStream depth, color; color.create( device, SENSOR_COLOR ); color.start(); puts( "Camera ok" ); depth.create( device, SENSOR_DEPTH ); depth.start(); puts( "Depth sensor ok" ); VideoMode paramvideo; paramvideo.setResolution( 640, 480 ); paramvideo.setFps( 30 );