roi process: move some preprocessing in the `run` function

7 jobs for !74 with refactor_roi_widget in 6 minutes and 48 seconds (queued for 1 second)
latest merge request