for the rsm image edge extration project