Modify Canny algorithm for generating binary result with multiple objects