'**SUMMARY**
This function returns a single row of RGB values from the image.
This is handy if you want to crawl the image looking for an edge.
**PARAMETERS**
* *row* - the row number working from top=0 to bottom=img.height.
**RETURNS**
A a lumpy numpy array of the pixel values. Ususally this is in BGR format.
**EXAMPLE**
>>> img = Image("lenna")
>>> myColor = [0,0,0]
>>> sl = img.getHorzScanline(422)
>>> sll = sl.tolist()
>>> for p in sll:
>>>    if( p == myColor ):
>>>        # do something
**SEE ALSO**
:py:meth:`getHorzScanlineGray`
:py:meth:`getVertScanlineGray`
:py:meth:`getVertScanline`'

def getHorzScanline(self, row):

    retVal = None
    if ((row < 0) or (row >= self.height)):
        logger.warning('getHorzRGBScanline:    row    value    is    not    valid.')
    else:
        retVal = cv.GetRow(self.getBitmap(), row)
        retVal = np.array(retVal)
        retVal = retVal[0, :, :]
    return retVal
