Hi Doan, it would help if you post an example of the picture you have.
At least one frame to set the analysis, so somebody could try to write down a draft of the macro.
Best regards,
Rocco
Senior Microscopist
Crick Advanced Light Microscopy facility (CALM)
The Francis Crick Institute
1 Midland Road, NW1 1AT, London (UK)
https://roccodant.github.io/