Hello, Nathan,
These parameters control the smoothness property of underlying stereo algorithms (depth map generation stage). The greater values produce more smooth surfaces, while the smaller values produce more noisy, but in some cases more accurate surface reconstruction.
The values for these parameters should be less then 2048, and the P2 value should be greater than P1.
Please note, that mesh generation stage adds some smoothness constraints, so the changes in these parameters will not necessarily affect the smoothness of the results, but will more likely affect the stability of the reconstruction.
I don't recommend changing P1 and P2 parameters, as they are preset to the optimal values according to our tests.
With best regards,
Dmitry Semyonov
AgiSoft LLC