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

Assignment Help
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
Although you probably think of a game controller, joysticks do have other uses. They are used to control wheelchairs and to remotely control lights, security cameras and bomb
There are many variations on the keyboard and touch-screen that allow people with various disabilities to operate a computer. Features may include: bigger keys, specialised la
What are the specific instructions that the director gives to the camera operator to perform each operation Make a list of eight shots in picture composition
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
Similar to OMR but this is Optical Character Recognition. The software interprets the marks as characters and generates text and some formatting detail into a word processing
Suppose we have a video monitor with a display area that measures 12 inches across and 9.6 inches high if the resolutions in 1280 by 1024 and the aspect ratio is 1, what is th
Implement an abstract class Vehicle and concrete subclasses Car and Truck. A vehicle has a position on the screen. Write methods draw that draw cars and trucks as follows
We are given the following boundary conditions for cubic spline section: Give equation P0(u) for tangent to this curve in terms of Mspline and Mgeom.