Author: Not specified Language: python
Description: Not specified Timestamp: 2017-09-16 17:30:53 +0000
View raw paste Reply
  1. def log_transformation(constant = 1):
  2.     height, width = image.shape
  3.     for h in range(0,height):
  4.         for w in range(0,width):
  5.             image[h,w] = constant * np.log10(image[h,w] + 1)
View raw paste Reply