this is a very basic question from a beginner.
I am analyzing a stack to get the integrated density for each slice and am placing the results in the “results” table.
What I need to do now is to find which slice has the maximum integrated intensity value so that I can continue with my workflow.
I am not seeing a straightforward way of doing what seems to be a rather easy thing to do - so my guess is that I am probably overlooking something. Need help!
So far, the only thing I can think of is:
- to create two arrays, one that stores the slice numbers, and another that stores the measured property for each slice.
- Then, find the maximum within second array.
- Use an If/else statement to go through that second array one position at a time, until it finds the maximum value.
- When there is a match get the position of the slice.
One can consider to do this without generating a slice array, but I still find this very complicated for something that appears very basic. Can anyone say if there is a more elegant way to do this?