The code of RPSA submitted to PAMI