Homework Help Question & Answers

Given an image of a puck, write a program to get a white outline around the blue object. Save and...

Given an image of a puck, write a program to get a white outline around the blue object.
Save and display the image with the outline. The outline should be approximately similar
to the test case outputs shown below. Hint: Use binary image.

LANGUAGE : MATLAB ~~~~~ MATLAB ~~~~~~~~~MATLAB

0 0
ReportAnswer #1

//read image and display

I=imread('image.pmg');

imshow(I)

//convert to binary image

BW=im2bw(I);

imshow(BW)

//determine row and column

dim=size(BW)

col=round(dim(2)/2)-90;

row=min(find(BW(:,col)))

imshow(I)

hold on;

plot(boundary(:,2),boundary(:,1),'w','Linewidth',3);

Add Homework Help Answer
Add Answer of:
Given an image of a puck, write a program to get a white outline around the blue object. Save and...
Your Answer: Your Name: What's your source?
Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
More Homework Help Questions Additional questions in this topic.
Need Online Homework Help?
Ask a Question
Get FREE EXPERT Answers
WITHIN MINUTES
Related Questions