'**SUMMARY**
Get a PIL Image object for use with the Python Image Library
This is handy for some PIL functions.
**RETURNS**
Returns the Python Imaging Library (PIL) version of this image.
**EXAMPLE**
>>> img = Image("lenna")
>>> rawImg  = img.getPIL()
**SEE ALSO**
:py:meth:`getEmpty`
:py:meth:`getBitmap`
:py:meth:`getMatrix`
:py:meth:`getFPMatrix`
:py:meth:`getNumpy`
:py:meth:`getGrayNumpy`
:py:meth:`getGrayscaleMatrix`'

def getPIL(self):

    if (not PIL_ENABLED):
        return None
    if (not self._pil):
        rgbbitmap = self.getEmpty()
        cv.CvtColor(self.getBitmap(), rgbbitmap, cv.CV_BGR2RGB)
        self._pil = pil.fromstring('RGB', self.size(), rgbbitmap.tostring())
    return self._pil
