Skip to content

This repository contains MATLAB scripts for performing advanced image processing techniques, including gray-level slicing (with and without background) and bit-plane slicing on grayscale images. These transformations help in analyzing image intensity variations and highlighting specific features.

Notifications You must be signed in to change notification settings

RAHULPATEL2002/GrayAndBitPlaneSlicing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Image Transformations Lab - MATLAB

Overview

This repository contains MATLAB code that demonstrates image transformation operations on grayscale images. Specifically, it covers:

  1. Gray Level Slicing (with and without background).
  2. 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.

Features

  • 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.

Files

  • lab04_UI22EC58.m: MATLAB script containing the image transformation operations.
  • Sample image: coins.png.

How to Run

  1. Clone the repository.
  2. Place the sample image (coins.png) in the same directory as the script.
  3. Open the MATLAB script lab04_UI22EC58.m.
  4. Run the script to view the transformations.

Example Output

Input Image

  • Grayscale Image (coins.png):

    image

Output Images

  1. Gray Level Slicing:

    • With Background: Without Background:

    image

  2. Bit Plane Slicing:

    image

Requirements

  • MATLAB (any recent version).
  • The provided sample image (coins.png).

License

This project is open for educational purposes and free to use.


Author

Rahul Patel
Roll Number: UI22EC58

About

This repository contains MATLAB scripts for performing advanced image processing techniques, including gray-level slicing (with and without background) and bit-plane slicing on grayscale images. These transformations help in analyzing image intensity variations and highlighting specific features.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages