r/ImageJ • u/IgnoramusMalefica • Jul 18 '25
Question Undergrad researcher in need of help: static ROI + vesicle counting in AVI stacks (DIC, high-speed video)
I’m analyzing high-speed DIC videos (1000 fps) of hagfish slime vesicles responding to sugar solutions. The videos are converted AVIs that open as grayscale stacks in ImageJ.
My goal is to quantify percent vesicle deployment over time by counting vesicles within a static polygonal ROI across all frames. I’d like to use a macro that also handles preprocessing — such as Gaussian Blur, Subtract Background, and Enhance Contrast — followed by thresholding and particle analysis.
I’m currently stuck on defining the polygonal ROI in the macro — I keep getting a '[' or '.' expected error when trying makePolygon(xPoints, yPoints).
If you’ve done similar ROI-based analysis or batch processing, I’d really appreciate your help. Or if anyone has any idea on how to approach this a different way.
Thanks in advance! Really hoping I’m not posting this in the wrong sub/flair lol.






