Continuous maximum flow segmentation method for nanoparticle interaction analysis