|
Hi forum,
This is my first post. I am wondering if anyone knows how to use macro code to edit a list of ROIs from ROI manager. Here is the task I want to achieve:
1) Generated ROIs of cells using analyze particles from ImageA.
2) Use the ROIs to measure grey value of a cell marker in imageB.
3) If an individual ROI has measurement of grey greater than 20, then delete this ROI.
4) Finalize the list of ROIs (which will all have value =<20 if measured against imageB).
I keep getting bug message after running these line below
for (i=1;i<roiManager("count");i++) {
roiManager("Measure", i)>20;
roiManager("Delete"); }
Really appreciate if anyone can help with this.
Lihong
|