How to Add a Calculation Column in the Results Table

I have over 100 images which contain particles which I am trying to determine the size etc. I am in the process of writing a macro to automatically process the data.

The results file gives me a the X Y co-ordinates of each particle which is great. I am struggling to work out how to add a column which is a calculation. For example I want a column which is X + a input value from a dialog box, the calculation should be carried out for each row in the results table.

Does anyone know if this is possible, or is this beyond the capabilities of ImageJ?

Thanks in advance.

… it is possible by using macro functions:
https://imagej.nih.gov/ij/developer/macro/functions.html

However, be aware that ImageJ is for images; it isn’t a spreadsheet program for numeric data manipulations.

Best

Herbie

1 Like

Hey @R_maclachlan

Herbie is right - you can use the ImageJ macro language… and you should be able to create a customized results table. I just did a quick google search and found a link to an old ImageJ mailing list thread that might have an answer in there for you.

Hope this helps!

eta :slight_smile:

1 Like