-
Notifications
You must be signed in to change notification settings - Fork 770
First prototype of computeCoordinates of point cloud, yet to be tested #397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
I don't think you need to use C++11 features for this. |
what you mean ? the use of STL array is overkill ?! |
Yes |
Ok, you are probably right, i'll remove std::array. Also i was thinking that probably it is more efficient to create a function that computes coordinates of a single point, given the indexs. something like this: If you agree i'll modify it accordingly |
Starting with a basic one should be good. void getPointXYZRGB(Frame* undistorted, Frame* registered, int row, int col, float& x, float& y, float& z, unsigned int& rgb) |
Noise around borders is a known artifact of TOF cameras AFAIK. The registration might also get a bit better once #379 has been merged. |
First prototype of computeCoordinates of point cloud
Firstly thanks for your hard work.
After that I saved in Obj file and I opened it in cloudcompare. However the result is not good. |
i think you inverted rows and columns: i mean what you called xi should iterate through rows, i.e. the height (424). Something like this:
|
Thanks . Here I have one more question. Image described by points is not dense and even rough. Is it maximum resolution kinect v2 can do ? or is there anyway to Increase resolution ? |
Yes it is not dense, cause it could contain NaN values. If that is what you need there's another package (that uses libfreenect2) that does exactly this upsampling, giving you point clouds at quarter-hd or full hd (1920x1200). https://github.com/code-iai/iai_kinect2, definitely worth a try. |
Ah I see ! Sorry for annoying you again . How about RGB values ? For visualization, R,G and B values are needed separately but here I can get only rgb value . |
umh, not sure but you could try unpacking as described here http://docs.pointclouds.org/1.7.0/structpcl_1_1_point_x_y_z_r_g_b.html |
@moonsh Maybe reflection is too strong and exceeds the sensing limit. Some of the low quality data is also removed from output. I have also seen flat surface with patches without data. I wonder if there is any way to get around this. Maybe you can try using a filter to lower IR intensity. |
I started the PR mentioned in #392 so you can see the changes, i'll test the function tomorrow and let you know. You can wait to merge until some tests are performed.
Cheers