Program to record PCL point clouds and image series captured with a Microsoft Kinect camera. Stores all data in a newly created directory.
For recording kinect BGR and depth images with pose tracking and user mask at 20 fps:
PCL_Recorder.ext -c Kinectconfig.xml -d "C:\NewCapture" --fps 20 --maskuser --bgr --depth
The programm uses buffer files to record data. After recording has finished, these buffer files are converted and split into individual files for each frame. Have patience...
There are two definitions in the sourcecode worth noticing:
#define UPPER_QUEUE_SIZE 200
Up to 200 data frames are stored in RAM. If you have more memory available, you can permit more frames to be stored here.
#define MAX_BUFFER_FILE_SIZE 2000
The maximum size of the buffer files written to disk is 2000 MB. Adjust according to your needs.
Skeleton Output to "skeleton_FRAME#.dat". Tracks first available user only.
BGR output to "bgr_FRAME#.tif". Build from a 3 channel 3 x 8 bit BGR image.
Depth output to "depth_FRAME#.tif". Contains the depth data as a 16bit unsigned integer array. To convert to metric, multiply the data by 0.0001f. Messy, but the cv::Filestorage is just too slow for this job.
Cloud output to "cloud_FRAME#.pcd". Contains a pcl::PointXYZRGB pointcloud. Metric, coordinate system centered on the camera.
Compiling:
Running: