# HG changeset patch # User Xavier Glorot # Date 1265051927 18000 # Node ID 7ef8aac2cdb5717de28c994ad3a9b1cd78ebbaac # Parent a8ac3402eb454cfda9da158bb769bd04c15a65bd comment change and useless import removed for contrast.py diff -r a8ac3402eb45 -r 7ef8aac2cdb5 transformations/contrast.py --- a/transformations/contrast.py Mon Feb 01 08:54:10 2010 -0500 +++ b/transformations/contrast.py Mon Feb 01 14:18:47 2010 -0500 @@ -3,12 +3,12 @@ ''' Simple implementation of random contrast. This always switch half the time the polarity. -then it decide of a bias and of a contrast, both of them are dependant of the complexity. +then it decides of a random contrast dependant of the complexity, the mean of the maximum and minimum +pixel value stays 0 (to avoid import bias change between exemples). Author: Xavier Glorot ''' -import scipy.ndimage.morphology import numpy as N import copy