Skip to content
Snippets Groups Projects
Commit 14c96884 authored by Clement Dekeister's avatar Clement Dekeister
Browse files

Merge branch 'master' into 'main'

Master

See merge request !2
parents b7a6a0d3 ae4ab2b3
No related branches found
No related tags found
1 merge request!2Master
Showing
with 2032 additions and 27 deletions
This diff is collapsed.
This diff is collapsed.
correction/TP3 Détection de contours¶-20231020/bateaux_nb_bruite.bmp

257 KiB

correction/TP3 Détection de contours¶-20231020/canvas.png

182 KiB

correction/TP3 Détection de contours¶-20231020/cellules.png

41.7 KiB

correction/TP3 Détection de contours¶-20231020/irmCerveau.png

41.3 KiB

correction/tp1/Lena.png

334 KiB

correction/tp1/MBAPPE-CANAL.png

219 KiB

This diff is collapsed.
import numpy as np
import matplotlib.pyplot as plt
import cv2 as cv
image = cv.imread ("Lena.png") # charge le fichier dans une matrice de pixels gris
mbappe = cv.imread ("MBAPPE-CANAL.png") # charge le fichier dans une matrice de pixels gris
def negatif(image):
imageNegatif = 255 - image
plt.imshow ( imageNegatif[... , :: -1])
plt.show()
def luminosite(image,int):
imageLuminosite = cv.convertScaleAbs(image, beta=int)
plt.imshow(imageLuminosite[...,:: -1])
plt.show()
def redimension(image,scale):
width = int(image.shape[1] * scale)
height = int(image.shape[0] * scale)
dim = (width, height)
imageResize = cv.resize(image,dim, interpolation = cv.INTER_AREA)
plt.imshow(imageResize[... , :: -1])
plt.show()
def rotate90(image):
image90 = cv.rotate(image, cv.ROTATE_90_CLOCKWISE)
plt.imshow(image90[... , :: -1])
plt.show()
def rotate180(image):
image180 = cv.rotate(image, cv.ROTATE_180)
plt.imshow(image180[... , :: -1])
plt.show()
def rotate270(image):
image270 = cv.rotate(image, cv.ROTATE_90_COUNTERCLOCKWISE)
plt.imshow(image270[... , :: -1])
plt.show()
negatif(mbappe)
luminosite(mbappe,-50)
redimension(mbappe,2)
rotate90(mbappe)
rotate180(mbappe)
rotate270(mbappe)
\ No newline at end of file
This diff is collapsed.
correction/tp2/bay.png

93.8 KiB

correction/tp2/bay_egalisee.png

172 KiB

correction/tp2/bay_egalisee_hist.png

11.9 KiB

correction/tp2/bay_hist.png

10.3 KiB

correction/tp2/cellules.png

41.7 KiB

correction/tp2/evasion.png

135 KiB

correction/tp2/hist_cell_culm.png

22.1 KiB

correction/tp2/hist_cerveau_culm.png

23.8 KiB

correction/tp2/irmCerveau.png

41.3 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment