We provide a comprehensive 3D spherical-cap fitting procedure (3D-SCFP) to extract morphologic characteristics of complete or truncated spherical caps (sphere-sphere intersection) from experimental data, such as AFM images. Our procedure integrates several advanced digital image analysis techniques to construct a 3D spherical-cap model, from which the geometrical parameters of the nanostructures can be extracted automatically by a simple algorithm. We hope the codes can provide contributions to your work. More details about this procedure can be found in our published paper: H. Tan, S. Peng, C. Sun, X. Zhang, and D. Lohse, Eur. Phys. J. E 39, 106 (2016). Good luck!
tan (2020). 3D spherical-cap fitting procedure (isolated sphere and sphere-Sphere Intersection) (https://www.mathworks.com/matlabcentral/fileexchange/66661-3d-spherical-cap-fitting-procedure-isolated-sphere-and-sphere-sphere-intersection), MATLAB Central File Exchange. Retrieved .