Use nearest neighbour interpolation to avoid different labels

This commit is contained in:
Johannes Schönberger
2013-03-17 10:48:59 +01:00
parent 874c5647bc
commit 96f08e68d0
+1 -1
View File
@@ -22,7 +22,7 @@ image = np.zeros((600, 600))
rr, cc = ellipse(300, 350, 100, 220)
image[rr,cc] = 1
image = rotate(image, angle=15) > 0
image = rotate(image, angle=15, order=0)
label_img = label(image)
props = regionprops(label_img, [