I want to get matlab codes of this question and learn the technic thank you.
I can't upload orginal image and random image is okey for me i just want to learn tecnic on matlab to do this question. This is the question that's it
A = imread('brain1.tif'); % import the image
img=double(A(:,:,1)); % take one of
the R G B value to make it grayscale , also convert values to
double for later convenience
[y x] = size(img);
% get the dimension of the image
k =
de2bi(img,8);
% convert the double image into binary. the reason to get double
values was to use this function
bit7 = vec2mat(k(:,1),x); % it will extract the MSB of matrix in
vector form and then converted into matrix form using vec2mat
inbuild function
bit6 = vec2mat(k(:,2),x);
bit5 = vec2mat(k(:,3),x);
bit4 = vec2mat(k(:,4),x);
bit3 = vec2mat(k(:,5),x);
bit2 = vec2mat(k(:,6),x);
bit1 = vec2mat(k(:,7),x);
bit0 = vec2mat(k(:,8),x); % it will do the same for LSB
figure; % a figure plotted
subplot(2,4,1); % subplot created
imshow(bit0); % plot put on figure
title('bit0'); %title added
subplot(2,4,2);
imshow(bit1);
title('bit1');
subplot(2,4,3);
imshow(bit2);
title('bit2');
subplot(2,4,4);
imshow(bit3);
title('bit3');
subplot(2,4,5);
imshow(bit4);
title('bit4');
subplot(2,4,6);
imshow(bit5);
title('bit5');
subplot(2,4,7);
imshow(bit6);
title('bit6');
subplot(2,4,8);
imshow(bit7);
title('bit7'); % MSB bit matrix plane
========================================================
Above code will import tif image into matlab.
Image is converted into grayscale and then its double value is used as previous uint8 is not for much use.
This image is converted into binary using deb2bi inbuilt function. This function converts it into vector so again vec2mat converts it to matrix form of column size x.
subplot function is used to plot the bit planes in a figure in 2 x 4 format.
---------------------------------------------------------------------------------------------------------------------------
output is :-
I want to get matlab codes of this question and learn the technic thank you. I...
use MATLAB to upload the following: an image that you want to process (can be taken yourself or downloaded from the internet) a script that processes the image in TWO ways. manipulates the colors averages pixels together Please make sure the script displays the images (like how I did with the 40 and 80 pixel averaging) so I can easily compare them to the original. Make sure to COMMENT your code as well. Homework 13 Please upload the following: an...
Please show me the calculation too, because I want to learn. Thank you Question 32 1 pts Cake Creations incurred the following costs (in alphabetical order) during 2020 related to making its famous chocolate mousse cake: Administrative costs $ 2000 Advertising costs 1000 Direct materials purchased 8000 Cake Bakers wages 20 000 Factory equipment depreciation 1000 Factory rent 5000 Indirect labour 3000 Indirect materials 2000 In addition, the following information is also available: Beginning Ending Direct materials $ 2 000...