LOG: Base-10 Logarithm of an Image

LOG replaces the pixel values in the image 'source' by their base-10 logarithm values. Any pixels whose original values were less than or equal to 0 are replaced by -30 in the resulting image. If the INV keyword is specified, the inverse log is taken