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");

// how to add a colum of filename ?

1 Like

Got it.

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


Click on display label in ser measurements window.

don’t forget to updateResults();

1 Like