April 2020
Intermediate to advanced
438 pages
12h 2m
English
Perform the following steps to implement edge detection with Canny using SimpleItk library functions:
image = sitk.ReadImage('images/cameraman.png') # 8-bit cameraman grayscale imageimage = sitk.Cast(image, sitk.sitkFloat64)
edges1 = sitk.CannyEdgeDetection(image, lowerThreshold=5, \ upperThreshold=10, variance=[1, 1])edges2 = sitk.CannyEdgeDetection(image, lowerThreshold=5, \ upperThreshold=10, variance=[3, 3])
image = sitk.GetArrayFromImage(image)edges1 = sitk.GetArrayFromImage(edges1) ...
Read now
Unlock full access