Wand image.edge function in Python Improve Improve Like Article Like Save Share Report Edge Extraction is an effect after which the edges present in image gets highlighted. It is done in order to detect all the edges present in image. edge() function highlight edges on black and white images with a simple convolution filter. Generally, Edge Detection is used by Computer Vision and Machine Learning. Syntax : wand.image.edge(radius=radius) Parameters : Parameter Input Type Description radius numbers.Real the radius of the, in pixels, not counting the center pixel. Image Used : Example #1: # import Image from wand.image module from wand.image import Image # read image using Image() function with Image(filename ="koala.jpeg") as img: # transform image to grayscale image img.transform_colorspace('gray') # edge extraction using edge() function img.edge(1) img.save(filename ="edgekoala.jpeg") Output: Example #: Increasing radius Value. # import Image from wand.image module from wand.image import Image # read image using Image() function with Image(filename ="koala.jpeg") as img: # transform image to grayscale image img.transform_colorspace('gray') # edge extraction using edge() function img.edge(3) img.save(filename ="edgekoala.jpeg") Output: Last Updated : 22 Apr, 2020 Like Article Save Article Previous Wand sketch() function - Python Next Wand image.despeckle() in Python Share your thoughts in the comments Add Your Comment Please Login to comment... Similar Reads Wand selective_blur() function in Wand python Wand edge() function - Python Wand image - Baseimage.kuwahara() function in Python Python - Image() function in Wand Real-Time Edge Detection using OpenCV in Python | Canny edge detection method Image Edge Detection Operators in Digital Image Processing Wand image.emboss in Python Wand image.despeckle() in Python Wand Pseudo Image - Python Wand function() function in Python Like R RahulSabharwal Follow Article Tags : Image-Processing Python-wand Python Practice Tags : python