Slexy.org is shutting down and stopped accepting new Pastes on May 4th, 2021.
Existing Pastes will stop being available on or after May 10th, 2021.
Author: Not specified Language: python
Description: Not specified Timestamp: 2017-09-16 20:44:08 +0000
View raw paste Reply
  1.     def log_transformation(image,constant = 1):
  2.         height, width = image.shape
  3.         new_image = image.copy()
  4.         for h in range(0,height):
  5.             for w in range(0,width):
  6.                 new_image[h,w] = constant * np.log10(image[h,w] + 1)
  7.         return new_image
View raw paste Reply