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

How does voice one dsl work?, Question 1 Define the term telecommunication...

Question 1 Define the term telecommunication? Discuss briefly the various uses of telecommunication in daily life Question 2 Explain the powers and functions of the TRAI

Impedance diagram of per uint values, explian briefly with in diagram and n...

explian briefly with in diagram and numerical examples

Motor, What is the main function of the slip ring

What is the main function of the slip ring

Vlsi, what is the difference between latch and flipflop

what is the difference between latch and flipflop

Fsk scheme, Question: (a) An FSK Scheme is used in a wireless transmi...

Question: (a) An FSK Scheme is used in a wireless transmission with the data bits 1011010. With the help of a labeled diagram, describe in detail the final output of the MSK

Explain 8259 pin diagram, Explain 8259 Pin Diagram. The 8259A adds 8 ve...

Explain 8259 Pin Diagram. The 8259A adds 8 vectored priority encoded interrupts to the microprocessor. It can be expanded to 64 interrupt requests by using one master 8259A and

Determine impedance in each branch - delta connection, Determine Impedance ...

Determine Impedance in each branch - delta connection: A delta connected balanced 3-phase load is supplied from a 3-phase 400 V supply. The line current is 30 Amp and the powe

Show jkff connected as a t flip-flop, Q. For a JKFFwith JK = 11, the output...

Q. For a JKFFwith JK = 11, the output changes on every clock pulse. The change will be coincident with the clock pulse trailing edge and the flip-flop is said to toggle, when T = 1

Compute force vector, Q. Consider a current element I 1 d ¯l 1 = 10 dz ¯a...

Q. Consider a current element I 1 d ¯l 1 = 10 dz ¯az kA located at (0,0,1) and another I 2 d ¯ l 2 = 5dx ¯ax kA located at (0,1,0). Compute d ¯F 21 and d ¯F 12 experienced by

Determine the current in the diode, Q. Consider the circuit shown in Figure...

Q. Consider the circuit shown in Figure. Determine the current in the diode by assuming: (a) The diode is ideal. (b) The diode is to be represented by the model of Figure 7.2

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