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
Suppose on RGB raster system is to be designed using a 8 inch by 10 inch screen with a resolution of 100 pixels per inch in each direction if we want to store 6 bits per pixel
design of user interfaces, natural mapping, GUI applications, web page design different to designing for printed media, risks exposed in this "phone as individual proxy" app
Add a search button to the GUI that allows the user to search for an item in the inventory by the product name. If the product is not found, the GUI should display an approp
Tables offer one of the most powerful ways to format a web page. A table allows for the orderly arrangement of text or graphics into vertical columns and horizontal rows. Th
Write a socket based single side chat for graphical interface. The client will type message in a textbox and click "send" button and server will print it in a text area as s
Write a GUI-Based program that analyzes a round of golf. You will retrieve the data for 18 holes from a text file. On each line in the file will be par for that hole (3, 4,
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
Consider three different raster systems with resolutions of 640 by 480, 1280 by 1024, and 2560 by 2048 what size frame buffer (in bytes) is needed for each of these systems to