'**SUMMARY**
The function finds the global maxima in the line scan.
**RETURNS**
Returns a list of tuples of the format:
(LineScanIndex,MaximaValue,(image_position_x,image_position_y))
**EXAMPLE**
>>>> import matplotlib.pyplot as plt
>>>> img = Image(\'lenna\')
>>>> sl = img.getLineScan(y=128)
>>>> maxima = sl.smooth().maxima()
>>>> plt.plot(sl)
>>>> for m in maxima:
>>>>    plt.plot(m[0],m[1],\'ro\')
>>>> plt.show()'

def maxima(self):

    maxvalue = np.max(self)
    idxs = np.where((np.array(self) == maxvalue))[0]
    maxvalue = (np.ones((1, len(idxs))) * maxvalue)
    maxvalue = maxvalue[0]
    pts = np.array(self.pointLoc)
    pts = pts[idxs]
    pts = [(p[0], p[1]) for p in pts]
    return zip(idxs, maxvalue, pts)
