Geometric transformations, Electrical Engineering

Assignment Help:

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?


Related Discussions:- Geometric transformations

Decision making, Decision  Making The rhombus diamond symbol  is used...

Decision  Making The rhombus diamond symbol  is used to represent  the decision making  process  as shown  below.                                          Figure  De

The time constant of the field winding, The field winding of a 200 V d.c. m...

The field winding of a 200 V d.c. machine has a resistance of 20? and an inductance of 500mH. Calculate: (a)  The time constant of the field winding (b)  The value of curr

Npn bjt with forward-biased, NPN BJT with forward-biased: An NPN trans...

NPN BJT with forward-biased: An NPN transistor can be referred as two diodes along with a shared anode. In common operation, the base-emitter junction is forward biased and th

Determine the value of the capacitance in single phase, Q. Three loads in p...

Q. Three loads in parallel are supplied by a single phase 400-V, 60-Hz supply: Load A: 10 kVA at 0.8 leading power factor Load B: 15 kW at 0.6 lagging power factor Load C:

Transistor as a switch, Transistor as a switch: Transistors are genera...

Transistor as a switch: Transistors are generally employed as electronic switches, for both of the high power applications including switched-mode power supplies and low power

What do you mean by load factor, Q. What do you mean by Load factor? Th...

Q. What do you mean by Load factor? The two components of electric service are demand and energy. Demand is the maximum level of real power which the electric utility must supp

Find the number of possible station frequencies, Q. Find the number of poss...

Q. Find the number of possible station frequencies in the AM broadcast system in the United States

Determine the voltage drop, A 15 volts source is applied to a series 150 mH...

A 15 volts source is applied to a series 150 mH inductor and 169 pF capacitor. The resistance of the inductor plus the connecting wires is 1,6 W. Determine the voltage drop and

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd