adding edge detection and RB interpolation

coding