Ecole Supérieure Informatique Sidi Bel Abbes
Second Cycle
Recherche Opérationnelle
LAb -1-: Point Processing in Image Processing
October 17, 2023
1. Objective:
• To understand the basic concepts of point processing in image processing.
• To implement simple point processing operations on images.
• To observe the effects of various image processing techniques on images
2. Programming Language and Library
• Python .
• matplotlib library.
• Jupyter Notebook or a code editor for Python
3. Lab Procedure:
• Select an image from your directory.
• Load the image using matplotlib.
• NumPy for Images
– Matplotlib imread under Python returns a NumPy array,
– The shape atribute keeps the array’s dimensions,
– A RGB color image can be represented by a M×N×3 uint8 array,
– The color triplet can be retrived indexing the pixel position,
– Indexing can be used to retrieve a specifig channel.
• Print the shape of the grayscale image
– Print the shape of a grayscale image
• Slicing
– Slicing can retrieve parts of an array,
– Employs the convention start:stop:step.
• RGB Channels
– RGB channels are the essential components that collectively create the full spec-
trum of colors in digital images.
– Stacking them together
• Motion Difference
– Load and plot the two images named (t4,t5) using matplotlib,
– Subtract the pixel values of t4.png from t5.png to create a new image.
– Create a figure with a subplot to display the resulting image.
• Apply various point processing techniques to the loaded image.
– Making the image overall darker,
– Reduce the difference between light and dark areas,
– Change all the pixel values from dark to light and vice versa,
– Increase the brightness of the pixels, making the image overall brighter,
– Increasing the difference between light and dark areas.
4. Homework Assignment: Provide a report on the outcomes, including the code used
and the purpose of applying these techniques to the chosen images.
Page 2