Parameter settings Change the Openni2 sample to sample_set_param.cpp and add it to the compile. The result after compiling and running is shown below