comparison transformations/contrast.py @ 31:7ef8aac2cdb5

comment change and useless import removed for contrast.py
author Xavier Glorot <glorotxa@iro.umontreal.ca>
date Mon, 01 Feb 2010 14:18:47 -0500
parents 0b9350998dbe
children
comparison
equal deleted inserted replaced
30:a8ac3402eb45 31:7ef8aac2cdb5
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # coding: utf-8 2 # coding: utf-8
3 3
4 ''' 4 '''
5 Simple implementation of random contrast. This always switch half the time the polarity. 5 Simple implementation of random contrast. This always switch half the time the polarity.
6 then it decide of a bias and of a contrast, both of them are dependant of the complexity. 6 then it decides of a random contrast dependant of the complexity, the mean of the maximum and minimum
7 pixel value stays 0 (to avoid import bias change between exemples).
7 8
8 Author: Xavier Glorot 9 Author: Xavier Glorot
9 ''' 10 '''
10 11
11 import scipy.ndimage.morphology
12 import numpy as N 12 import numpy as N
13 import copy 13 import copy
14 14
15 15
16 class Contrast(): 16 class Contrast():