Howto get a centroid of a section in a slice?

Place fiducial at centroid of current slice - Support - 3D Slicer Community
Get Centroid from Script
Centroid determination
@lassoan@Juicy@jamesobutler @jcfr @pieper@ jmhuie @manjula @szhang