Measuring the size of individual particles from three-dimensional imaging experiments