Geometric transformations, Electrical Engineering

Geometric transformations

  Apply the following geometric transformation to a set of points.
Generate randomly coordinates for 1 point X=(x,y).
X=100*rand(2,1)
x=X(1,1)%to access x coordinate
y=X(2,1)%to access y coordinate

generate a point in homogeneous coordinates
Xh=100*rand(3,1)
Xh(3,1)=1
figure(1);
plot(Xh(1,1),Xh(2,1),'o')  %display it on a figure

rescale the axis of the figure
axis([-100 100 -100 100])

generate 2 points in homogeneous coordinates
Xh=100*rand(3,2)
Xh(3,:)=1

display them on the figure in blue 'ob' and rescale the axis.
plot(Xh(1,:),Xh(2,:),'ob')
axis([-100 100 -100 100])

generate a 3x3 identity matrix using eye function (help eye). Name it H.
Xt=H*Xh;
What does this operation do?

Modify the matrix H such that it translates the points by vector t=[-100, -100];
display them on the same figure in red 'or'
figure(1);
plot(Xt(1,:),Xt(2,:),'or')

clean the figure

clf

Generate 300 points in homogeneous coordinates and display them in green.

(i) transform the points by applying matrix H with appropriately modified parameters. Generate one matrix for each transformation.
        translation  tx=-100, ty=0
        rotation      ra=pi/2;
        scaling       s=2
        translation + rotation + scaling in one matrix

How do you modify the matrix?

Posted Date: 2/26/2013 12:27:01 AM | Location : United States







Related Discussions:- Geometric transformations, Assignment Help, Ask Question on Geometric transformations, Get Answer, Expert's Help, Geometric transformations Discussions

Write discussion on Geometric transformations
Your posts are moderated
Related Questions
Parallel Operation of Interconnected Synchronous Generators In order to assure continuity of the power supplywithin prescribed limits of frequency and voltage at all the load p

What are the basic components in a Microprocessor? 1) Address lines to refer to the address of a block 2) Data lines for data transmit 3) IC chips 4 processing data

Transistor A transistor is a semiconductor device that is employed to amplify and switch electronic signals. It is made up of a solid piece of semiconductor material, with min

Network analysis software: GIS with a socket for network analysis software (Sec. 11.4) and availability of load related data from AMR based meter data acquisition system will

Q. How does the value of Idss and Vp change with the change in Vgs The value of Vp and and Idss can be controlled by adjusting the value of the gate to sorce voltage ie Vgs. T

i am implementing a paper "on the chaotic behaviour of buck converter" a want to plot bifurcation diagram by using simulink blocks without using coding is it possible??

Determine Total magnetic flux: A ring is composed of three sections. The cross-sectional area is 0.001 m2 for each section. The mean lengths of each section are l a = 0.3 m,

Q. Point charges, each of √4πε 0 C, are located at the vertices of an equilateral triangle of side a. Determine the electric force on each charge.

Explain In brief about the Robots - Robot is programmed with a series of instructions that enable it to carry out a series of tasks - On the other hand, an operator manually

Determine whether the diode (considered to be ideal) in the circuit of Figure (a) is conducting.