HW 55
HW 55
:Name: Trainee ID
Question1: please Do the following steps using MATLAB After fishing the lab
experiment Make a report it must includes the code the figure and comment about
.your work
Look at example 3.2 on page 44 of your textbook (Biomedical Signal and Image
.Processing Najarian and Splinter ). follow the steps
This program is used for bit level slicing use the figure of Fluoroscopy that given to you
with attachment (p_3_4.jpg)
b) Open a new file at desktop and save your work name it by your initials
d) the figure should be include your name (-use insert-textbox) (use insert - title name it
as FS) also use (insert x label name is as Day of today ) and( y label as date of today )
e) Attach the program and images (original and final) to your solution file in a word
document.
MATLAB Command
clc
close all
clear all
I = imread('peppers.png');
imshow(I,[0 255]);
S=size (I);
I=double(I);
I=dec2base(I,2);
newS=size(I);
J = zeros(S(1),S(2));
for i= 1:newS(1)
k=char(I(i,:));
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: 22)
end
J(b,a)=k;
end
figure
imshow(J,[0 255]);