# HG changeset patch # User Xavier Glorot # Date 1272926307 14400 # Node ID d5b2b6397a5a672ffd0bd6c80ee53fe315174258 # Parent bfa349f567e8dcbaa6efb911401eef7128e07d15 added permut pixel diff -r bfa349f567e8 -r d5b2b6397a5a data_generation/transformations/BruitGauss.py --- a/data_generation/transformations/BruitGauss.py Mon May 03 01:07:21 2010 -0400 +++ b/data_generation/transformations/BruitGauss.py Mon May 03 18:38:27 2010 -0400 @@ -51,7 +51,7 @@ self.nb_chng=3+int(numpy.random.rand()*self.nb_chngmax*complexity) self.sigma_gauss=2.0 + numpy.random.rand()*self.sigmamax*complexity self.grandeur=12+int(numpy.random.rand()*self.grandeurmax*complexity) - #creation du noyau gaussien + #creation du noyau gaussien self.gauss=numpy.zeros((self.grandeur,self.grandeur)) x0 = y0 = self.grandeur/2.0 for i in xrange(self.grandeur): diff -r bfa349f567e8 -r d5b2b6397a5a data_generation/transformations/gimp_script.py --- a/data_generation/transformations/gimp_script.py Mon May 03 01:07:21 2010 -0400 +++ b/data_generation/transformations/gimp_script.py Mon May 03 18:38:27 2010 -0400 @@ -52,7 +52,7 @@ setpix(image) if self.mblur_length and self.blur_bool: pdb.plug_in_mblur(img, layer1, 0, self.mblur_length, self.mblur_angle, 0, 0) - if self.pinch: + if self.pinch: pdb.plug_in_whirl_pinch(img, layer1, 0.0, self.pinch, 1.0) image = getpix() diff -r bfa349f567e8 -r d5b2b6397a5a writeup/techreport.tex --- a/writeup/techreport.tex Mon May 03 01:07:21 2010 -0400 +++ b/writeup/techreport.tex Mon May 03 18:38:27 2010 -0400 @@ -162,6 +162,15 @@ This filter has a probability of not being applied, at all, of 60\%. +\subsection{Pixel permutation} + +This filter permuts neighbouring pixels. It selects first $\frac{complexity}{3}$ pixels randomly in the image. Each of them are then sequentially +exchanged to one other pixel in its $V4$ neighbourhood. Number of exchanges to the left, right, top, bottom are equal or does not differ from more than 1 +if the number of selected pixel is not a multiple of 4. + +It has has a probability of not being applied, at all, of 80\%. + + \subsection{Distorsion gauss} This filter simply adds, to each pixel of the image independently, a gaussian noise of mean $0$ and standard deviation $\frac{complexity}{10}$.