This repository contains MATLAB code that demonstrates image transformation operations on grayscale images. Specifically, it covers:
- Gray Level Slicing (with and without background).
- Bit Plane Slicing.
The transformations highlight specific gray levels in an image and allow for visualization of how different bit planes contribute to the image structure.
-
Gray Level Slicing:
- With background: Highlights pixels in a specific gray level range while retaining the original image.
- Without background: Highlights the selected gray level range and sets the rest of the image to black.
-
Bit Plane Slicing:
- Extracts and displays each of the 8 bit planes from a grayscale image, enabling an analysis of individual bits' influence on image representation.
lab04_UI22EC58.m
: MATLAB script containing the image transformation operations.- Sample image:
coins.png
.
- Clone the repository.
- Place the sample image (
coins.png
) in the same directory as the script. - Open the MATLAB script
lab04_UI22EC58.m
. - Run the script to view the transformations.
- MATLAB (any recent version).
- The provided sample image (
coins.png
).
This project is open for educational purposes and free to use.
Rahul Patel
Roll Number: UI22EC58