Merge functionality to limit calculation to an ROI