'**SUMMARY**
This function extracts the exif data from an image file like JPEG or TIFF. The data is returned as a dict.
**RETURNS**
A dictionary of key value pairs. The value pairs are defined in the EXIF.py file.
**EXAMPLE**
>>> img = Image("./SimpleCV/sampleimages/OWS.jpg")
>>> data = img.getEXIFData()
>>> data[\'Image GPSInfo\'].values
**NOTES**
* Compliments of: http://exif-py.sourceforge.net/
* See also: http://en.wikipedia.org/wiki/Exchangeable_image_file_format
**See Also**
:py:class:`EXIF`'

def getEXIFData(self):

    import os, string
    if ((len(self.filename) < 5) or (self.filename is None)):
        return {}
    (fileName, fileExtension) = os.path.splitext(self.filename)
    fileExtension = string.lower(fileExtension)
    if ((fileExtension != '.jpeg') and (fileExtension != '.jpg') and (fileExtension != 'tiff') and (fileExtension != '.tif')):
        return {}
    raw = open(self.filename, 'rb')
    data = process_file(raw)
    return data
