Limit scalarFilter to detection window only