In ImageJ, I’ve found the need recently for determining the index (i.e., slice number) of the maximum value at each [x,y] position in a stack. The use case here is getting predicted labels from a convolutional neural net output. In this case, the prediction usually consists of an x/y/z stack, where at each [x,y] the pixel values along the z-axis give the probabilities of being in the associated classes. The z-projection for the sum is always 1 in this case.
The argmax function in what I’d use in python/numpy to do this, and it would be great to be able to do the same thing in ImageJ.
I think this use case is becoming a lot more common now and would be a very useful (and hopefully straightforward) addition to the “Image/Stacks/Z-project…” menu. Hopefully others (and Wayne Rasband!) will too.