Hand (To) Eye calibration with sphere

calibrateHandEye function implies 6dof target for detection by scanner, i.e. t - translation and R - rotation, chessboard etc. Could this calibration be accomplished by means of center of sphere? i.e. 3dof instead of 6dof.

Sphere can be detected on the 3d scene and center of sphere can be calculated.

Does opencv has a ready to use calibration function for that method?