Les élèves de seconde, en S.N.T., ont appliqué des filtres à un paysage de montagne.

Ce filtre consiste en des manipulations mathématiques (fonctions arithmétiques, trigonométriques et logarithmiques) et échanges de composantes R G B (Red Rouge, Green Vert, Blue Bleu)

Pour les plus curieux -> modèle pour travailler ces filtres : http://moodle.lyceestendhal.it/mod/page/view.php?id=5480

Cliquez sur un effet ci-dessous !

 

 

 

Cartoon - Haut de page

Auteur : Ali Mourid

Filtre :

r , g , b = oldimage.getPixel(col,row)
newpixel = image.Pixel((r-120), g+20, (b-20) )
r , g , b = newpixel
newpixel = image.Pixel((r*g), (r*b), (g*b) )
r , g , b = newpixel
newpixel = image.Pixel( int(r)+15 , int(g)+19 , int(b)+10 )

Rétro - Haut de page

Auteur : Alice Couetil

Filtre :

r , g , b = oldimage.getPixel(col,row)
newpixel = image.Pixel( 300 * math.sin(r * 1.57 / 300) , 300 * math.sin(g * 1.57 / 300) , 300 * math.sin(b * 1.57 / 300) )
r , g , b = newpixel
newpixel = image.Pixel( 300 * math.cos(r * 1.57 / 300) , 300 * math.cos(g * 1.57 / 300) , 300 * math.cos(b * 1.57 / 300) )
r , g , b = newpixel
newpixel = image.Pixel( 210 * math.asin(r / 300) , 210 * math.asin(g / 300) , 210 * math.asin(b / 300) )

Décoloration - Haut de page

Auteur : Axel Cera

Filtre :

r , g , b = oldimage.getPixel(col,row)
newpixel = image.Pixel (255 - math.sqrt(r)*4,  255 - math.sqrt(g)*4, 255 - math.sqrt(b)*4)

Purple Sunset - Haut de page

Auteur : Bertille Locufier

Filtre :

r , g , b = oldimage.getPixel(col,row)
newpixel = image.Pixel( r * 1.5 , g * 1.5 , b * 1.5 )
r , g , b = newpixel
newpixel = image.Pixel( 455 - int(g) , 455 - int(b) , 455 - int(r) )

Planete de feu - Haut de page

Auteur : Carla Martinez-Burgos

Filtre :

r , g , b = oldimage.getPixel(col,row)
newpixel = image.Pixel( ( r - 30 ) * 1.5 , 255 - int(g) , ( b - 40 ) * 2 )
r , g , b = newpixel
newpixel = image.Pixel( r * 1.5 , g * 1.5 , b * 1.5 )
r , g , b = newpixel
newpixel = image.Pixel( 255 - int(g) , 200 - int(b) , 255 - int(r) )

Vie en rose - Haut de page

Auteur : Charlotte De Vismes

Filtre :

r , g , b = oldimage.getPixel(col,row)
newpixel = image.Pixel( ( r + g + b) / 2 , ( r + r) / 2 , ( b + g ) / 2 )
r , g , b = newpixel
newpixel = image.Pixel( 20 * math.exp(r * 2.41 / 255) , 20 * math.exp(g * 2.41 / 255) , 20 * math.exp(b * 2.41 / 255) )
r , g , b = newpixel
newpixel = image.Pixel( r * 1.5 , g * 1.5 , b * 1.5 )

Le mont rose - Haut de page

Auteur : Clémence Ronco

Filtre :

r , g , b = oldimage.getPixel(col,row)
newpixel = image.Pixel( r*8,b*1,g*4 )

Sous l'Océan - Haut de page

Auteur : Clotilde Minetti

Filtre :

r , g , b = oldimage.getPixel(col,row)
newpixel = image.Pixel (r*0.5, b*2, g*1.5)
r , g , b = oldimage.getPixel(col,row)
newpixel = image.Pixel (r*1, b*2, g*1.5)

Intense - Haut de page

Auteur : Elisa Mallie-Pongiluppi

Filtre :

r , g , b = oldimage.getPixel(col,row)
newpixel = image.Pixel( 30 * math.exp(r * 2.41 / 255) , 30 * math.exp(g * 2.41 / 255) , 30 * math.exp(b * 2.41 / 255) )
r , g , b = newpixel
newpixel = image.Pixel( ( r - 60 ) * 1.5 , ( g - 60 ) * 1.5 , ( b - 60 ) * 1.5 )

Le contrastred - Haut de page

Auteur : Emmanuel Coriton

Filtre :

r , g , b = oldimage.getPixel(col,row)
newpixel = image.Pixel(30 * math.exp( r - 127 ) * 1.5 , g * 1.1 , b * 1.1 )

Un monde de lumière et obscurité. - Haut de page

Auteur : Eugénie Aroyo

Filtre :

r , g , b = oldimage.getPixel(col,row)
newpixel = image.Pixel( ( r - 90 ) * 2.5 , ( g - 90 ) * 3.5 , ( b - 50 ) * 1.5 )
r , g , b = newpixel
newpixel = image.Pixel( r * 1.9 , g * 1.9 , b * 1.5 )
r , g , b = newpixel
newpixel = image.Pixel( 300 - int(g) , 274 - int(b) , 289 - int(r) )

Evil paradise - Haut de page

Auteur : Évariste Moquet

Filtre :

r , g , b = oldimage.getPixel(col,row)
newpixel = image.Pixel( 234 - int(b) , 210 - int(r) , 255 - int(g) )

Paysage au clair de lune - Haut de page

Auteur : Flora Champetier

Filtre :

r , g , b = oldimage.getPixel(col,row)
newpixel = image.Pixel( ( r - 50 ) * 1.5 , ( g - 50 ) * 1.5 , ( b - 50 ) * 5.5 )
r , g , b = newpixel
newpixel = image.Pixel( r * 0.5 , g * 1.5 , b * 1.5 )

La vie en jaune - Haut de page

Auteur : Garance Michelez

Filtre :

r , g , b = oldimage.getPixel(col,row)
newpixel = image.Pixel( ( r - 50 ) * 1.50 , ( g - 50 ) * 1.75 , ( b - 50 ) * 0.5 )
r , g , b = newpixel
newpixel = image.Pixel( r * 1.50 , g * 1.50 , b * 0.5)

Crépuscule - Haut de page

Auteur : Gaspard Houssel

Filtre :

r , g , b = oldimage.getPixel(col,row)
newpixel = image.Pixel( r - (g/2), g - 100, b + (g/4))

- Haut de page


Sombre époque - Haut de page

Auteur : Ines Boustouller

Filtre :

r , g , b = oldimage.getPixel(col,row)
newpixel = image.Pixel( ( b - 30 ) * 1.5 , ( r - 50 ) * 1.5 , ( g - 50 ) * 1.5 )
r , g , b = newpixel
newpixel = image.Pixel( r * 4.5 , b * 2, g * 1.25 )
r , g , b = newpixel
newpixel = image.Pixel( 205 - int(r) , 255 - int(b) , 325 - int(g) )

Pourpre espoir - Haut de page

Auteur : Iris Biasin

Filtre :

r , g , b = oldimage.getPixel(col,row)
newpixel = image.Pixel( 255 - int(g) , 255 - int(b) , 255 - int(r) )
r , g , b = newpixel
newpixel = image.Pixel( r * 1.5 , g * 1.5 , b * 1.5 )

La Vie en Rose - Haut de page

Auteur : Jannah Moussa

Filtre :

r , g , b = oldimage.getPixel(col,row)
newpixel = image.Pixel( ( r - 90 ) * 2.5 , ( g - 50 ) * 1.5 , ( b - 20 ) * 3.3 )
r , g , b = newpixel
newpixel = image.Pixel( r * 1.5 , g * 1.5 , b * 1.5 )
r , g , b = newpixel
newpixel = image.Pixel( 450 - int(g) , 255 - int(b) , 255 - int(r) )

Ice - Haut de page

Auteur : Lou Panepinto

Filtre :

r , g , b = oldimage.getPixel(col,row)
newpixel = image.Pixel ( ( g + r ) / 3 , ( b + r ) / 3 , ( g + b ) / 2 , ( r - 10 ) * 0.5 , ( b - 5 ) * 2 )
r , g , b = newpixel
newpixel = image.Pixel ( 210 * math.asin( r / 280 ) , 210 * math.asin( g / 255 ) , 220 * math.asin( b / 280 ) )

Les Monts Immergés - Haut de page

Auteur : Louise Fierling

Filtre :

r , g , b = oldimage.getPixel(col,row)
newpixel = image.Pixel( b * 1 , r * 1,8 , g * 1,9)
r , g , b = newpixel
newpixel = image.Pixel( 200 - int(g) , 255 - int(b) , 200 - int(r) )
r , g , b = newpixel
newpixel = image.Pixel( ( r - 50 ) * 1.5 , ( g - 50 ) * 1.5 , ( b - 50 ) * 1.5 )
r , g , b = newpixel
newpixel = image.Pixel( ( b + g ) / 2 , ( b + r ) / 2 , ( r + g ) / 2 )
r , g , b = newpixel
newpixel = image.Pixel( r * 1.5 , g * 1.5 , b * 1.5 )
r , g , b = newpixel
newpixel = image.Pixel( 50 * math.tan(r * 1.57 / 255) , 50 * math.tan(g * 1.57 / 255) , 50 * math.tan(b * 1.57 / 255) )
r , g , b = newpixel
newpixel = image.Pixel( 255 * math.sin(r * 1.57 / 255) , 255 * math.sin(g * 1.57 / 255) , 255 * math.sin(b * 1.57 / 255) )

Pourpres hauteurs - Haut de page

Auteur : Malo Rizzi

Filtre :

r , g , b = oldimage.getPixel(col,row)     
newpixel = image.Pixel( ( r - 50 ) * 1.5 , 5 - int(g) ,  255 * math.sin(b * 1.57 / 255) )

Ratatouille -> pour comprendre, cliquer ICI ! - Haut de page

Auteur : Margot Barbosa

Filtre :

r , g , b = oldimage.getPixel(col,row)    
newpixel = image.Pixel( ( r - 50 ) * 1.5 , ( g - 50 ) * 1.5 , ( b - 50 ) * 1.5 )

Clair-obscure - Haut de page

Auteur : Mariachiara Pagliara

Filtre :

r , g , b = oldimage.getPixel(col,row)
newpixel = image.Pixel( 10 * math.exp(r * 3 / 230) , 10 * math.exp(g * 3 / 230) , 10 * math.exp(b * 3 / 300) )

t - Haut de page

Auteur : Maximilien Hoffbeck

Filtre :

La vie en bleu - Haut de page

Auteur : Mohamed Ait Oumghar

Filtre :

r , g , b = oldimage.getPixel(col,row)
newpixel = image.Pixel( 255 * math.sin(r * 1.57 / 255) , 255 * math.sin(g * 1.57 / 255) , 255 * math.sin(b * 1.57 / 255) )
r , g , b = newpixel
newpixel = image.Pixel( 255 * math.cos(r * 1.57 / 255) , 255 * math.cos(g * 1.57 / 255) , 255 * math.cos(b * 1.57 / 255) )
r , g , b = newpixel
newpixel = image.Pixel( 50 * math.tan(r * 1.57 / 255) , 50 * math.tan(g * 1.57 / 255) , 50 * math.tan(b * 1.57 / 255) )
r , g , b = newpixel
newpixel = image.Pixel( 50 * math.log(r) , 50 * math.log(g) , 50 * math.log(b) ) # fin du filtre
r , g , b = newpixel
newpixel = image.Pixel( 30 * math.exp(r * 2.41 / 255) , 30 * math.exp(g * 2.41 / 255) , 30 * math.exp(b * 2.41 / 255) )
r , g , b = newpixel
newpixel = image.Pixel( ( b + g ) / 2 , ( b + r ) / 2 , ( r + g ) / 2 )
r , g , b = newpixel
newpixel = image.Pixel( 0 , g * 3 , b * 1.5 )
r , g , b = newpixel
newpixel = image.Pixel( 255 - int(g) , 255 - int(b) , 255 - int(r) )

Bloody Mountains - Haut de page

Auteur : Nour Noujeim

Filtre :

r , g , b = oldimage.getPixel(col,row)
newpixel = image.Pixel( r*1,5 , g*0.5 , b*2 )
r , g , b = newpixel
newpixel = image.Pixel( r*1,5 , g , b*2 )

Lumières urbaines - Haut de page

Auteur : Ottavia Colombo

Filtre :

r , g , b = oldimage.getPixel(col,row)
newpixel = image.Pixel( (g*b)/2 + 3 , (b*r)/2 + 3 , (g*r)/2 + 3 )
r , g , b = newpixel
newpixel = image.Pixel( 255 - int(r) , 255 - int(g) , 255 - int(b))

Dark Snow - Haut de page

Auteur : Quentin Meyer

Filtre :

r , g , b = oldimage.getPixel(col,row)
newpixel = image.Pixel( 250 * math.sin(r * 1.50 / 260) , 260 * math.sin(g * 1.60 / 260) , 260 * math.sin(b * 1.60 / 260))
r , g , b = newpixel
newpixel = image.Pixel( 250 * math.cos(r * 1.60 / 260) , 260 * math.cos(g * 1.60 / 260) , 260 * math.cos(b * 1.60 / 260) )

Nuit violette éclairée par des arbres bioluminescents - Haut de page

Auteur : Thomas Levy

Filtre :

r , g , b = oldimage.getPixel(col,row)
newpixel = image.Pixel( ( r - 20 ) * 1.5 , ( g - 33 ) * 1.5 , ( b - 20 ) * 33 )
r , g , b = newpixel
newpixel = image.Pixel( r * 0.5 , g * 1.5 , b * 0.5 )
r , g , b = newpixel
newpixel = image.Pixel( 170 - int(g) , 170 - int(b) , 170 - int(r) )
r , g , b = newpixel
newpixel = image.Pixel( ( r - 50 ) * 1.5 , ( g - 50 ) * 1.5 , ( b - 50 ) * 1.5 )

La grotte de cristal - Haut de page

Auteur : Vittoria Di Luca

Filtre :

r , g , b = oldimage.getPixel(col,row)
newpixel = image.Pixel( ( r - 50 ) * 2 , ( g - 50 ) * 1 , ( b - 10 ) * 2 )
r , g , b = newpixel
newpixel = image.Pixel( r * 2 , g * 1.5 , b )
r , g , b = newpixel
newpixel = image.Pixel( 200 - int(b) , 255 - int(r) , 215 - int(r) )

Lucifer is back - Haut de page

Auteur : Ysée Parenti

Filtre :

r , g , b = oldimage.getPixel(col,row)
newpixel = image.Pixel( 145 , g*1.5 , 200 )
r , g , b = newpixel
newpixel = image.Pixel( g*0.5 , b*0.5 , 100

Ratatouille - Haut de page

Auteur : Margot Barbosa

Filtre :

r , g , b = oldimage.getPixel(col,row)    
newpixel = image.Pixel( ( r - 50 ) * 1.5 , ( g - 50 ) * 1.5 , ( b - 50 ) * 1.5 )

t - Haut de page

Auteur : 

Filtre :

Modifié le: dimanche 28 juin 2020, 23:12