Research on High Speed Image Processing Algorithm and FPGA Implementation in Machine Vision