Improvement of Canny algorithm and its hardware implementation.