EXCTRS2 - kpmoorse/sim_reg GitHub Wiki

centroids = exctrs2(img, varargin)
Extract centroids from label matrix

Take as inputs:

  • img [NxM numeric array]: image containing footprints from the anatomical image
  • varargin:
    • XData [Nx1 or 1xM numeric array]: x-coordinates of pixel locations; default is pixel indices
    • YData [Nx1 or 1xM numeric array]: y-coordinates of pixel locations; default is pixel indices