A novel matrix-based method for face recognition