Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

clear close all imtool close all workspace; fontsize = 16; grayImage=imread(LorenVisaImage.png ); [rows, columns, numberofColorBands]=size(grayImage); subplot(1,2,1) imshow(grayImage) title(Original Image,'FontSize',fontsize) set(gcf,'Position',get(0,'Screensize' )) message=sprintf(Hold the Left Click

clear
close all
imtool close all
workspace;
fontsize = 16;
grayImage=imread("LorenVisaImage.png"
);
[rows, columns, numberofColorBands]=size(grayImage);
subplot(1,2,1)
imshow(grayImage)
title("Original
Image",'FontSize',fontsize)
set(gcf,'Position',get(0,'Screensize' ))
message=sprintf("Hold the Left Click and Draw the Boundary . When you are finished, lift the click");
uiwait(msgbox(message)) hfH=drawfreehand(); binaryImage=hfH.createMask();
maskedRgbImage = bsxfun(@times,
grayImage, cast(binaryImage, 'like',
grayImage));
maskedRgbImage(~maskedRgbImage) =
255;
subplot(1,2,2);
imshow(maskedRgbImage,[])
title("Image with Removed Background",'FontSize',fontsize)
that's a matlab can you explain it

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

Advanced MySQL 8 Discover The Full Potential Of MySQL And Ensure High Performance Of Your Database

Authors: Eric Vanier ,Birju Shah ,Tejaswi Malepati

1st Edition

1788834445, 978-1788834445

More Books

Students also viewed these Databases questions

Question

c. What groups were least represented? Why do you think this is so?

Answered: 1 week ago

Question

7. Describe phases of multicultural identity development.

Answered: 1 week ago