Text this: An image segmentation algorithm for measurement of flotation froth bubble size distributions