Implementation of an edge detection module on FPGA