Fixed several bugs in CUDA Canny implementation