Identification of 2D colloidal assemblies in images: a threshold processing method versus machine learning | Synapse