Skip to main content
. 2019 Aug 30;10(9):666. doi: 10.3390/genes10090666
Algorithm 5: Single Particle Detection and Picking
1. Input: Ics /* cleaned cluster image with square shapes only */
2. Return: Icps /* cleaned cluster image with perfect square shapes */
3. LbwlabelIc1 /* label each object in the cluster image */
4. for i = 1 to L do /* for each object in the clustered image */
5.  Stats  regionpropsIcs/* 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 i = 1 to sizekeeperObjects do/* for each particle object */
9.  x,ycentroidkeeperObjects/* 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