Calculate particle size from TEM image and fit distribution curve on histogram