FPGA implementation of eight-direction Sobel edge detection algorithm based on adaptive threshold