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
A 2300-V, three-phase, wye-connected, round rotor synchronousmotor has a synchronous reactance of 3 per phase and an armature resistance of 0.25  per phase. The motor operates on

Explain Microprocessor development system. Microprocessor development system: Computer systems consist of undergone many changes lately. Machines which once filled large area

How to design an Oscillator Circuit (500 MHz range) with no Op amps?

Balanced Score Card and Key Performance Indicators Every successful organization measures its performance across the subsequent parameters, for dissemination to all stakeholde

The Quality factor is also explained, as Q. So it is a number, which shows the lossness of a circuit. Higher the Q, the lower are the losses. The quality factor is calculated o


Permanent magnets are made of (A)  Soft magnetic materials.            (B) Hard magnetic materials. (C) Semi conductors.                        (D)  Super conductors.

Find the resonant frequency: Find the resonant frequency ω0 (or f0) for the given series RLC circuit v = Vm sin ωt = 50 sin ωt Figure Also determine the expre

The upper end of a hanging chain is fixed whereas the lower end is attached to a mass M. The (massless) links of the chain are ellipses with major axes and minor axes l+a and l-

Q. What do you understand by progressive control? Progressive Control: Step by step system is an example of progressive control. The connection is set up in stages, in response