|
Algorithm 5: Single Particle Detection and Picking
|
| 1. Input:
/* cleaned cluster image with square shapes only */ |
| 2. Return:
/* cleaned cluster image with perfect square shapes */ |
| 3. /* label each object in the cluster image */ |
| 4. for i = 1 to
do /* for each object in the clustered image */ |
| 5. /* measure properties of particle region */ |
| 6. Areas ← [props.Area /* compute all the shape measurements and the pixel value measurements as well */ |
| 7. end for
|
| 8. for
= 1 to
do/* for each particle object */ |
| 9. /* extract the centroid is the horizontal coordinate (or x-coordinate) and vertical coordinate (or y-coordinate) */ |
| 10. Draw all bounding box for a discontinuous region |
| 11. end for
|