An automatic image-based system for estimating the mass of free-swimming fish