Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Look at example 3.2 on page 44 of your textbook (second edition). This program is used for bit level slicing. Make the following_change to

image text in transcribed
image text in transcribed
1. Look at example 3.2 on page 44 of your textbook (second edition). This program is used for bit level slicing. Make the following_change to the code given to you already in the book: Apply it to the image p_1_4_a.jpg (the picture of a lady "Lena") instead of 2.jpg Instead of slicing the last 4 bits, slice off the last three bits (k(6) = 0, k(7) = 0, k(8) = 0), Now Instead of slicing the last 4 bits, slice off the last 5 bits. Make sure to include your name in the script. Print out the Script, the Original Image and the Final Image (with 3, 4 and 5 bits sliced, off). What difference do you observe? I=imread ('2.jpg'); I=rgb2gray (I); imshow (I, [O 255]) ; S=size (I); I=double (I); I=dec2base (1,2); newS=size (I); J= zeros (S(1),s(2)); for I = 1:news (1) k=char (I(i,:)); k (5) = '0'; k(6)='0'; k (7) ='0'; k (8) = '0'; k=base2 dec (k, 2); a=fix (i/s(1) ) +1; b=mod (i,S(1)); ifb==0 b=S (1); a=a-1; end Jb, a) =k; end figure, imshow (J, [O 255])

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Information And Database Systems 6th Asian Conference Aciids 2014 Bangkok Thailand April 7 9 2014 Proceedings Part I 9 2014 Proceedings Part 1 Lnai 8397

Authors: Ngoc-Thanh Nguyen ,Boonwat Attachoo ,Bogdan Trawinski ,Kulwadee Somboonviwat

2014th Edition

3319054759, 978-3319054759

More Books

Students also viewed these Databases questions

Question

explain what is meant by redundancy

Answered: 1 week ago