Tuesday, April 12, 2011

Detecting branched points in a skeleton

 
The image of a segmented chromosome (top left) is thresholded (top right) then used to calculate a skeleton with mahotas.thin() (lower left). The skeleton branched points  are detected by a hit-or-miss operator (lower right).
The python script depends on mahotas, pymorph, scipy.

4 comments:

Anonymous said...

sk=mah.thin(bi1) i got this error: ValueError: too many values to unpack

dip4fish said...

The script cannot be run "as is", you have to modify the path to an image stored on your hard disk

dip4fish said...
This comment has been removed by the author.
dip4fish said...

This code used a newer mahotas version :
http://dip4fish.blogspot.fr/2013/04/detecting-end-points-or-branched-points.html