parameters: (pts, number_of_pixels_per_unit=1)
return_statement: return xs_maxima, ys_maxima
docstring: Get the local maximums of curvature
docstring_summary: Get the local maximums of curvature
docstring_tokens: Get the local maximums of curvature
function: def local_maxima_of_curvature(pts, number_of_pixels_per_unit=1):
      '''Get the local maximums of curvature'''
  
      # set the scale
      input_x = pts[:, 0] / number_of_pixels_per_unit
      input_y = pts[:, 1] / number_of_pixels_per_unit
  
      # parameterize the function W.R.T. arc length
      xs, ys, curvature = parameterize_function_wrt_arc_length(input_x, input_y)
  
      # get the local maximums of curvature
      local_maxima = argrelextrema(curvature, np.greater, order=2)
  
      local_maxima_indexes = local_maxima[0]
      xs_maxima = xs[local_maxima_indexes]
      ys_maxima = ys[local_maxima_indexes]
  
      # fin_pts += zip(xs_maxima, ys_maxima)
  
      return xs_maxima, ys_maxima
function_tokens: def local_maxima_of_curvature ( pts , number_of_pixels_per_unit = 1 ) : # set the scale input_x = pts [ : , 0 ] / number_of_pixels_per_unit input_y = pts [ : , 1 ] / number_of_pixels_per_unit # parameterize the function W.R.T. arc length xs , ys , curvature = parameterize_function_wrt_arc_length ( input_x , input_y ) # get the local maximums of curvature local_maxima = argrelextrema ( curvature , np . greater , order = 2 ) local_maxima_indexes = local_maxima [ 0 ] xs_maxima = xs [ local_maxima_indexes ] ys_maxima = ys [ local_maxima_indexes ] # fin_pts += zip(xs_maxima, ys_maxima) return xs_maxima , ys_maxima