mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-07 01:08:52 +08:00
Use nearest neighbour interpolation to avoid different labels
This commit is contained in:
@@ -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, [
|
||||
|
||||
Reference in New Issue
Block a user