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

Discuss crp, Question 1 Explain the construction of telephone network ...

Question 1 Explain the construction of telephone network Question 2 What is out-of-band signaling? Explain Question 3 Describe STP (Signaling Transfer Point) Questio

Growth in communications, The growth in communications over the past 60 yea...

The growth in communications over the past 60 years has been phenomenal. The invention of the transistor in 1947 and the integrated circuit and laser in 1958 have paved the way to

Electric current, Electric current   Electric current is a flow ...

Electric current   Electric current is a flow of electrons. Each electron carries a very small amount of negative charge (1.6 x 10 -19 coulombs)   A current

Power mosfet - power semiconductor devices , Power MOSFET MOSFET stands...

Power MOSFET MOSFET stands  for metal oxide semiconductor fields  effect transistor.  A power  MOSFET has  three  terminal  drain source  and  gate,. It  is unipolar device  me

Transformer, residual voltage in potential transformer

residual voltage in potential transformer

Inverting comparator, what is the graph of inverting comparator,if input vo...

what is the graph of inverting comparator,if input voltage less than reference voltage

Applied mechanics, State whether Lamis theorem is applicable for more than ...

State whether Lamis theorem is applicable for more than three coplanar concurrent forces?

Compute the mean torque, Q. A rotating electric machine with uniform air ga...

Q. A rotating electric machine with uniform air gap has a cylindrical rotor winding with inductance L 2 =1 H and a stator winding with inductance L 1 =3H. Themutual inductance va

Draw a circuit using the cascade system, Design and draw a circuit using th...

Design and draw a circuit using the cascade system to operate two cylinders (A and B) which, on the operation of a start valve, produces the sequence A - B + B - A+. The cylinder

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