Shutdown the threadpool when finished.
Updated the calculation using markers for faster spot identification
using floats to store the ROI bounds.