Mercurial > ift6266
changeset 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 | a8ac3402eb45 |
children | 4d4248f7e2fb |
files | transformations/contrast.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
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