How can I colour my sketch using pen tool within the limited edge boundaries using sobel edge detection/canny edge detection in ios swift?
问题 I am using GPUImage to detect the edge and applying GPUImageSobelEdgeDetectionFilter or GPUImageCannyEdgeDetectionFilter . Now my requirement is: How can I take the coordinate points from that image so that I can make drawing within the closed boundaries. Detect Edges from Image var image_p: GPUImagePicture? var filterImageview: UIImageView! // to display images let inputImage = filterImageview.image if let anImage = inputImage { image_p = GPUImagePicture(image: anImage) } let filter1 =