Video deraining and desnowing using temporal correlation and low-rank matrix completion