Wednesday, April 13, 2011

Detecting end points in a skeleton

In order to detect overlapping chromosomes, or to analyse the shape of a chromosome it could be useful to analyse the shape of the particle skeleton.
In the previous post hit-or-miss morphological operator, with the proper structuring element, detects branched points of a skeleton. Those points are indicated to classify overlapping chromosomes, even if pruning the skeleton might be necessary.
Here, with other structuring elements, hit-or-miss operator detects the end points of particle constituted of overlapping and touching chromosomes.

Download python code
 Lower image: green points (branched points of the skeleton), blue points (end points of the skeleton)

No comments: