Hi Jean-Patrick,

I'm not sure I understand your question. Neither connectivity will allow you to label the skeleton branches. For that, you will need a graph representation of the skeleton, with branch points represented by nodes that have more than two edges.

It would also help if you provide complete code with example expected and actual output. (I don't understand what the middle panels are; full code with the actual matplotlib calls would help.)

Thanks,

Juan.


On Thu, Jun 5, 2014 at 10:24 PM, Jean-Patrick Pommier <jeanpatrick.pommier@gmail.com> wrote:
Hi,
Is it possible to skeletonize a binary 2D shape such that  its skeleton is defined on a neighbourhood of 8 pixels?

When skeletonizing with  : morphology.medial_axis() , I tried two structuring elements (se8 or se4) as mask :

se8 = np.array([[True,True,True],[True,True,True],[True,True,True]])
se4 = np.array([[False,True,False],[True,True,True],[False,True,False]])                      
imK = makeLetterImage('K', 70)
skel = morphology.medial_axis(imK,mask=se8)
Ep_Bp, Bp_Bp, Bp, Ep = SkeletonDecomposition(skel)

The skeletons returned using se8 or se4 are very similar and look defined on a neighbourhood of 4 pixels (left). To me, this is a problem when trying to label the skeleton edges (right).

Jean-Patrick

--
You received this message because you are subscribed to the Google Groups "scikit-image" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scikit-image+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.