when I'm executing one of code that I found from the web it's given me "AttributeError: module 'skimage.measure' has no attribute 'marching_cubes'". Do you have any idea to fix this?
Executed code segment:
from skimage import measure
def make_mesh(image, threshold=+30, step_size=1):
print "Transposing surface"
p = image.transpose(2, 1, 0)
print "Calculating surface"
verts, faces, norm, val = measure.marching_cubes(p, threshold, step_size=step_size, allow_degenerate=True)
return verts, faces