ofxOpenNI - what is the setRegister() function for?

Hi everyone, I am new with this addon and computer vision as well. I uncommented this line on my examples and there’s no difference in the results. It is used in some ofxOpenNI examples too.
I was seeing the code of setRegister, it sets the bUserRegistration variable according to the results of certain function calls.
I don’t know what the purpose of the parameter passed is, because is never used to set anything within the function.

I haven’t seen any example who uses this value (calling getRegister()), and haven’t seen when toggleRegister is used (it negates the bUserRegister value).

Thanks

Sorry, I was digging deeper, it seems it calibrates the camera. Am I right?

yes, it calibrates the rgb camera to the depth camera so the rgb pixels correspond to the depth pixels.