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=base2dec (k, 2); a=fix (i/s(1) ) +1; b=mod (i,s(1)); if b==0 b=S (1); a=a-1; end J(b, 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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2016 Riva Del Garda Italy September 19 23 2016 Proceedings Part 1 Lnai 9851

Authors: Paolo Frasconi ,Niels Landwehr ,Giuseppe Manco ,Jilles Vreeken

1st Edition

3319461273, 978-3319461274

More Books

Students also viewed these Databases questions