skeletonize question
karoyakani
tj.takei at gmail.com
Mon Dec 12 17:27:14 EST 2011
Hi,
I'm new to this mailing list.
skimage version 0.4.2 has morphology.skeletonize() that works almost
as good as Matlab bwmorph('thin').
However the output seems transposed when I tested a Matlab's example
image 'circles.png':
http://www.mathworks.com/help/toolbox/images/ref/bwmorph.html
Is this a bug?
########
import numpy as np
from scipy import ndimage
from scipy.io import loadmat
from skimage.morphology import skeletonize
import matplotlib.pyplot as plt
# test image from Matlab bwmorph('skel') demo
bw = loadmat('circles.mat')['BW']
sk = skeletonize(bw)
plt.figure()
plt.imshow(bw+sk.transpose(), cmap=plt.cm.gray,
interpolation='nearest')
plt.show()
########
Thanks,
- TJ
More information about the scikit-image
mailing list