'**SUMMARY**
This function returns the RGB value for a particular image pixel given a specific row and column.
.. Warning::
this function will always return pixels in RGB format even if the image is BGR format.
**PARAMETERS**
* *x* - Int the x pixel coordinate.
* *y* - Int the y pixel coordinate.
**RETURNS**
A color value that is a three element integer tuple.
**EXAMPLE**
>>> img = Image(logo)
>>> color = img.getPixel(10,10)
.. Warning::
We suggest that this method be used sparingly. For repeated pixel access use python array notation. I.e. img[x][y].'

def getPixel(self, x, y):

    c = None
    retVal = None
    if ((x < 0) or (x >= self.width)):
        logger.warning('getRGBPixel:    X    value    is    not    valid.')
    elif ((y < 0) or (y >= self.height)):
        logger.warning('getRGBPixel:    Y    value    is    not    valid.')
    else:
        c = cv.Get2D(self.getBitmap(), y, x)
        if (self._colorSpace == ColorSpace.BGR):
            retVal = (c[2], c[1], c[0])
        else:
            retVal = (c[0], c[1], c[2])
    return retVal
