Remove unnecessary conversion step to numpy array

This commit is contained in:
Johannes Schönberger
2013-04-13 20:12:13 +02:00
parent 3c038f8db3
commit 9eabaf3cd9
+1 -1
View File
@@ -94,7 +94,7 @@ def skeletonize(image):
2,3,0,1,0,0,0,1,0,0,0,0,0,0,0,0,3,3,0,1,0,0,0,0,2,2,0,0,2,0,0,0]
# convert to unsigned int (this should work for boolean values)
skeleton = np.array(image).astype(np.uint8)
skeleton = image.astype(np.uint8)
# check some properties of the input image:
# - 2D