'**SUMMARY**
The function the local minima in the line scan. Local minima
are defined as points that are less than their neighbors to
the left and to the right.
**RETURNS**
Returns a list of tuples of the format:
(LineScanIndex,MinimaValue,(image_position_x,image_position_y))
**EXAMPLE**
>>>> import matplotlib.pyplot as plt
>>>> img = Image(\'lenna\')
>>>> sl = img.getLineScan(y=128)
>>>> minima = sl.smooth().minima()
>>>> plt.plot(sl)
>>>> for m in minima:
>>>>    plt.plot(m[0],m[1],\'ro\')
>>>> plt.show()'

def localMinima(self):

    temp = np.array(self)
    idx = (np.r_[(True, (temp[1:] < temp[:(-1)]))] & np.r_[((temp[:(-1)] < temp[1:]), True)])
    idx = np.where((idx == True))[0]
    values = temp[idx]
    pts = np.array(self.pointLoc)
    pts = pts[idx]
    pts = [(p[0], p[1]) for p in pts]
    return zip(idx, values, pts)
