So I have this square wave plot which I have generated from a binary image (first image). From this I use the BAR toolbar -> Data Analysis -> Find Peaks. That returns me the same square plot with the minimum and maximums labeled along with a table called “Plot Values” (following two images).
The BAR installation instructions can be found at: https://imagej.net/BAR#Installation
My only question right now is How do I save the values in Columns X1 and X2 in arrays called “X1” and “X2” using an ImageJ macro? Because I need this data to perform lots of different data analysis, And I have 100s of images to work with so I want to automate this process so that I do not need to keep manually copying pasting data from the data table into an excel file. If anyone is able to help me how to get these values stored in arrays, I am good from there. Because then I can just directly do all my analysis in ImageJ macro and print only the final results my prof needs to an excel file, making the process efficient and simple and clean.