Real-time motion artifact removal using a dual-stage median filter. (February 2022)