Mercurial > ift6266
diff 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 |
line wrap: on
line diff
--- 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