Pages

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:

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

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

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

      Delete
  3. This comment has been removed by the author.

    ReplyDelete