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