Création du Noise.redme et début de recherche, ajout des docs

This commit is contained in:
xdrm-brackets 2015-09-10 21:24:26 +02:00
parent 3494ecec32
commit 592d19184d
9 changed files with 21 additions and 3 deletions

15
code/Noise.readme Normal file
View File

@ -0,0 +1,15 @@
Classes:
/******************/
/** COLORIZATION **/
/******************/
Principe: colorer en modifiant les pixels (n&b) dans un ton (teinte) précisée
restitue la contraste mais recentre la couleur autour de la teinte
/************ ALGO **************/
i = 50 // incertitude
t = RGBPixel(1,2,3) // teinte souhaitée
p = RGBPixel(1,2,3) // couleur actuelle
/************ CODE **************/
def colorize(pixel, tint):

View File

@ -29,13 +29,16 @@ def testFileIntegrity():
# Parsing
img.parse( binFile );
inct = 50; # incertitude
# MODIFICATIONS des pixels
for line in img.content.map:
for pixel in line:
pixel.setRGB(
( 255 - pixel.r ) % 256,
( 255 - pixel.g ) % 256,
( 255 - pixel.b ) % 256
(230-25) + (2*25*pixel.r/256), # 230 ± 25
(170-inct) + (2*inct*pixel.g/256), # 170 ± 50
(100-inct) + (2*inct*pixel.b/256), # 100 ± 50
bpp=24
)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 768 KiB

BIN
code/new.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 768 KiB

BIN
docs/colorization.pdf Normal file

Binary file not shown.

BIN
docs/doc1.pdf Normal file

Binary file not shown.

BIN
docs/doc2.pdf Normal file

Binary file not shown.

BIN
docs/doc3.pdf Normal file

Binary file not shown.

BIN
docs/sujet.pdf Normal file

Binary file not shown.