Comments (5)
Hi sujithrobinson,
Please tell us about the situation in detail.
It will help to solve the problem.
- How did you install the PCL?
If you used All-in-one installer, Please tell your version that installed PCL All-in-one Installer. (“MSVC2012 Win32″ or “MSVC2012 x64″) - Please tell Visual Studio build log.
(It is the text that is displayed after build in Output window.)
from kinectgrabber.
Thanks UnaNancyOwen,
Yes, you are right i have installed MSVC2012 X64.So now i am downloading MSVC2012 Win32 and will check it and let you know.
from kinectgrabber.
If you installed PCL 1.7.2 All-in-one Installer "MSVC2012 x64", You need set the target platform of your project to “x64″ in Visual Studio.
(If you installed "MSVC2012 Win32", It is all right with the default settings.)
Please refer to the following.
How to: Configure Visual C++ Projects to Target 64-Bit Platforms | MSDN Library
from kinectgrabber.
Thanks UnaNancyOwen,
Now i could compile pcl1.7.2 in my win32 application.Again i caught up in another error,
i have used pcl1.7.2 for my win32 apps and passed my colorbuffer and depthbuffer obtained from my kinect v2 sensor to convertRGBDepthToPointXYZRGB() of kinectv2_grabber application.I get the cloud points,but it is returning only 4000 bytes.Actually my colorbuffer is of size 2073600(1920*1080).
So here i am passing my colorbuffer and depthbuffer into kinect2_grabber function:
UINT16* pDepthBuffer;
BYTE* pColorBuffer;
grabber->signal_PointXYZRGB->operator()( cloudFirst= grabber->convertRGBDepthToPointXYZRGB( reinterpret_cast<RGBQUAD*>(pColorBuffer),pDepthBuffer) );
This is how i am receving the pointcloud data according to my logic:
BYTE* pColorBuffer;
pColorBuffer=reinterpret_cast<BYTE*>(&cloudFirst);
so i will display point cloud like this,
for (int i = 0; i < 1920; i++)
{
for (int j = 0; j < 1080; j++)
{
int colorIndex = i + (j * 1920);
glColor4ub(pColorBuffer[4 * colorIndex], pColorBuffer[4 * colorIndex + 1],pColorBuffer[4 * colorIndex + 2], pColorBuffer[4 * colorIndex + 3]);
glVertex3f(xx, -yy, rPt.Z); //this is my depth values of pointcloud
}
}
since i couldn't get full color bytes the above loop results in error.
Please suggest me how can i get full color bytes.
Thanks
Sujith
from kinectgrabber.
Probably, Your usage is incorrect.
This Grabber is derived class that derived from pcl::Grabber.
How to use this Grabber, Please refer to the sample and official tutorials.
Incidentally, The Point Cloud size retrieved using Kinect2Grabber is 512x424, and format is pcl::PointXYZRGB.
The Point Cloud size is 512x424, because it is based on Depth data,
Alpha channel is not included in the Point Cloud, because Alpha channel has been destroyed in Grabber.
I think, You need to learn about pcl::PointCloud.
It can learn in the official documents (API reference, tutorials).
If you have more questions, I recommend that you post to the PCL mailing list.
from kinectgrabber.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kinectgrabber.