The document proposes a robust edge detection method using Moore's algorithm with median filtering. It performs foreground detection on input images to segment the foreground from background. Moore's neighbor algorithm is then used to trace boundaries and detect edges. Median filtering is also applied to remove noise while preserving edges. The method is tested on BSD dataset images and evaluated based on metrics like PSNR, SNR, RMSE, etc. Results show the proposed method performs better edge detection compared to modified Moore's algorithm, Canny Moore, and Sobel Moore approaches.