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
why is delay line used in vertical deflection on systems of CRO?

Q.  Explain the working of spectrum analyzer and its applications. OR Draw block diagram of spectrum analyzer and explain its operation write down its importance applica

Q. An elementary two-pole rotating machine with uniform air gap, as shown in Figure, has a stator-winding self-inductance Lss of 50 mH, a rotor-winding self-inductance Lrr of 50 mH

Q. Explain the theory of thermal runaway?           The maximum average power Pdmax which a transistor can dissipate depends upon the transistor construction and may lie in the

Precautions to be taken in carrying out repairs on HT and LT switch gear? Ans: The following precautions to be taken in carrying out repairs on LT and HT switch gears. a

Transmission: The policy emphasizes in which adequate and timely investment along within efficient and coordinated operation is essential for developing a robust and integrate

The Lennox to Bowmanville 500 kV circuit, spanning a distance of about 180 km, has series (inductive) impedance j 0.0224 pu and shunt (capacitive) admittance j 2.34 pu, quoted on b

Explain keyboard interfacing to 8088 through 8279 . The 8279 is a programmable keyboard and display interfacing component which scans and encodes up to a 64-key keyboard and con

can you differentiate the alpha,beta and gamma

A photodiode is made to detect light quickly a solar cell is made to collect energy from light. They are both typically silicon diodes, but modified to meet their dissimilar requir