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

In what way is program control superior to wired control, Q. Classify switc...

Q. Classify switching systems. In what way is stored program control superior to hard wired control? Ans: Classifications of switching systems are givenin block diagram belo

Charge variation with time, Q. A charge variation with time is given in Fig...

Q. A charge variation with time is given in Figure. Draw the corresponding current variation with time.

Determine the time delay of the cable, Q. Determine the time delay of the c...

Q. Determine the time delay of the cable? An RG-213/U (radio guide 213/universal coaxial cable) is a small-sized, flexible, double-braided cable with silvered-copper conductors

Explain how to represent power lines, Explain How to Represent Power Lines?...

Explain How to Represent Power Lines? The equivalent circuit of a power line depends on the length of the line and on the accuracy of the model required. In general, any power

Field Service Enginer, Give three reasons why a chamfer shouldn''t an "unim...

Give three reasons why a chamfer shouldn''t an "unimportant" dimension

Show the block diagram for a 3-bit ripple counter, Q. (a) For a JKFFwith JK...

Q. (a) 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

Define transmission-system efficiency, Q. Define Transmission-system effici...

Q. Define Transmission-system efficiency? The transmission-system ef?ciency is de?ned as the ratio of the real power delivered to the receiving-end bus to the real power transf

Amperes circuital law, Amperes Circuital Law The    observation    tha...

Amperes Circuital Law The    observation    that    magnetic    field strength varied with distance from the wire led to the following statement: 'If  the  magnetic  field

Compare the percent error of both meters, Q. Error speci?cations on a 10-A ...

Q. Error speci?cations on a 10-A digital ammeter are given as 0.07% of the reading, 0.05% of full scale, 0.005% of the reading per degree Celsius, and 0.002% of full scale per degr

Draw an electrical relay diagram, Draw an electrical relay diagram rung sho...

Draw an electrical relay diagram rung showing a N/O contact of CR1(coil) in series witha N/C contact of CR2(Coil), operating a lamp L1. A delay-on (TON) relay has a preset of 5.

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