├── README.md ├── matlab └── python /README.md: -------------------------------------------------------------------------------- 1 | # Image-Processing-Playground -------------------------------------------------------------------------------- /matlab: -------------------------------------------------------------------------------- 1 | % Example code for image processing in MATLAB 2 | image = imread('image.jpg'); 3 | grayscale_image = rgb2gray(image); 4 | imshow(grayscale_image); 5 | -------------------------------------------------------------------------------- /python: -------------------------------------------------------------------------------- 1 | # Example code for image processing in Python 2 | from PIL import Image 3 | 4 | def grayscale(image_path): 5 | image = Image.open(image_path) 6 | grayscale_image = image.convert('L') 7 | grayscale_image.show() 8 | 9 | grayscale('image.jpg') 10 | --------------------------------------------------------------------------------