Automated Image Based Tracking And Its Application In Ecology