Function to Calculate Image Center

Is there a Function to Calculate Image Center?

It’s not hard to calculate, but it seems that I need to do it often, so I’d like a function to do it. I know I could create a AS or JS function, but that seems like a lot of overhead for such a simple calculation.

Is there a way to create/save functions in KM, or is AS/JS the means to do it?

I just remembered that I could create what I call a “sub” macro, and do the calc there. The Find Image returns 5 values to a variable – can I add to them? If so, how do I get the two new values I appended?

OK, figured out how to GET the additional values:
%Calculate%ImageLoc[6]%

Just use a index into the "array".

This was buried about half way down the 10-screen wiki FAQ

One more thing to note, variables can contain an array of comma separated numbers, like the image size (123,456) or window frame (100,120,600,550). In a calculation field, you can refer to these using a normal (1-based) index notation, like Variable[2]. So you can use ClipboardImageSize[1] and ClipboardImageSize[2].

This is where it would really be helpful to have a synonym list for the wiki:
array: arrays, list, lists

Looks like we could also use a "variables" page in the wiki, since there is none.
The above quote would be easier to find on a "variables" page.