Function getExtrema

  • Checks the surrounding values of a point. If they are all bigger or smaller than the pixel in question then this point is considered an extremum.

    Parameters

    Returns Point[]

    Array of Points.