How to add filename to Results window in a macro

I am thresholding a image, then create a roi based on thresholding results, and measure the area of total roi to Results window.

In order to track the image with area, is there a way to add a new colum with filename?

run("Create Selection");
run("Measure");

// how to add a colum of filename ?
Thanks

1 Like

Got it.

setResult(“filename”, nResults-1, myFinalResultsPath);

2 Likes

Click on display label in ser measurements window.

don’t forget to updateResults();

1 Like