Develop algorithm to separate the different parts of house
Course:- Computer Graphics
Reference No.:- EM131469722

Assignment Help
Expertsmind Rated 4.9 / 5 based on 47215 reviews.
Review Site
Assignment Help >> Computer Graphics

1. Here we will design our own k-means clustering algorithm. Write a program to perform the following steps:

i. Read the image 'peppers.jpg' [I=imread('peppers.jpg');]

ii. The RGB intensity component of each pixel is used as a feature vector. Now perform k-means clustering for K=3 clusters. Plot the scatter plot of the intensity values in 3D showing the 3 clusters and their centers clearly. Report the cluster centers.

iii. Show the image where pixels from each cluster belong to a single color plane (RGB). Identify which cluster corresponds to red, which one is blue and which one is green, respectively.

iv. Now perform RGB2HSV conversion of the image and use the 3D feature vector as the HSV values. Repeat k-means clustering for all the pixels. Show the scatter plot of the 3 clusters in a 3D plot and report the new cluster centers. Show the image where pixels of each cluster belong to a separate RGB plane. Comment on the difference between part iii and iv.

2. Develop an algorithm to separate the different parts of the house image below e.g. windows, roof, wall, door. Comment on your strategy and justify your reason to select this strategy.

Attachment:- Assignment Files.rar

Put your comment

Ask Question & Get Answers from Experts
Browse some more (Computer Graphics) Materials
You are to create an Internet site to market a Hot Air ballooning business called "Hot Air - We're Full of It!" that operates in the Melbourne market, but books exclusively
Attached is a code file that works accept when a correct dollar amount an location number is entered, the result flashes on the screen and disappears. How do I get the outpu
Write the GirlScout class assuming a girl scout object is described by two pieces of instance data:name of girl scout(a String) andboxesSold(an integer that represents the n
Program starts with an empty flag and none of the country buttons checked. When you select a country radio button, corresponding country's flag is displayed instead of empty
The leadership within that company has decided to pursue the idea of outsourcing a virtual desktop solution that would allow much more flexibility and secure desktop deliver
What is 3D printing? Identify three objects that you think would be practical to create using 3D printing. - Which would you rather have-a tablet computer or a smartphone? Why
create a complex vector illustration of your own, drawing an object or group of objects designed with a background in Adobe Illustrator. Or, you may draw a portrait or scene
Define picture composition What are the factors affecting picture composition. Elaborate on each factor Describe the basic lines present in a composition