0% found this document useful (0 votes)
6 views2 pages

Dip 10

The document outlines an experiment on bit plane slicing of color images using MATLAB R2024a. It explains the theory behind bit plane slicing, detailing how an 8-bit grayscale image is decomposed into individual bit planes and their significance in image reconstruction, compression, feature extraction, and watermarking. The provided MATLAB code demonstrates the process of extracting and reconstructing bit planes from an image, confirming the successful execution of the experiment.

Uploaded by

s kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views2 pages

Dip 10

The document outlines an experiment on bit plane slicing of color images using MATLAB R2024a. It explains the theory behind bit plane slicing, detailing how an 8-bit grayscale image is decomposed into individual bit planes and their significance in image reconstruction, compression, feature extraction, and watermarking. The provided MATLAB code demonstrates the process of extracting and reconstructing bit planes from an image, confirming the successful execution of the experiment.

Uploaded by

s kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Experiment 10

Aim: Write a program to perform bit slicing of colour image and plot them.

Software Used: MATLAB R2024a

Theory

Bit Plane Slicing is an image processing technique that decomposes a grayscale image into its
individual bit planes.

• Each pixel in an 8-bit grayscale image consists of 8 bits, where the MSB carries the
most image details, while the LSB mainly represents noise or fine variations.

• The image is separated into 8 different planes, with each plane representing a specific
bit position across all pixels.

• Higher-order bit planes (e.g., 7th and 8th) contribute significantly to the image
structure. Lower-order bit planes (e.g., 1st and 2nd) capture finer details and noise.

Image Reconstruction:

• By combining selected bit planes, the original image can be reconstructed.

• The higher bit planes alone can reconstruct a recognizable version of the image, as
they contain most of the significant information.

Applications

• Image Compression: Removing lower bit planes reduces file size while preserving
essential image details.

• Feature Extraction: High-order bit planes help in identifying patterns, edges, and
structures in an image.

• Image Watermarking: LSB planes are commonly used for embedding hidden
information in digital images.

MATLAB Code

clc, close all;

img=imread('paper.jpg');

img_gray=rgb2gray(img);

[m, n]=size(img_gray);

subplot (3,4,1), imshow(img_gray), title ('Original Image 20224151');


recover=uint8(zeros(m,n));

for i=1:8

bit_plane=bitget(img_gray,i);

subplot (3,4,i+1),

imshow(logical(bit_plane));

title (['Bit Plane',num2str(i)]);

recover=recover+uint8(bit_plane)*(2^(i-1));

end

subplot (3,4,10), imshow(recover),title('Recovered Image 20224151');

Output

Fig 10.1 Original Image, Extracted Bit Planes and Recovered Image

Result

Bit slicing of a given image is successfully performed.

You might also like