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

Merits and demerits of voltage divider bias, Merits and Demerits of Voltage...

Merits and Demerits of Voltage divider bias: Merits: 1. Not like the above circuits, only one dc supply is essential. 2. Operating point is approximately independent o

Illustrate the satellites in outer space, Illustrate the satellites in oute...

Illustrate the satellites in outer space Satellites in outer space transmit signals to Earth. Computers in vehicles (for example car, airplane or ship) receive and interpret th

What is the use of ale, What is the use of ALE The ALE is used to latch...

What is the use of ALE The ALE is used to latch the lower order address so that it can be available in T2 and T3 and used for identify the memory address. During T1 the ALE goe

power sector economics & planning, 1.  The rejection criteria of an invest...

1.  The rejection criteria of an investment project, as evaluated from the NPV method is that NPV should be equal to zero. 2.  Technical feasibility is the only criteria to dete

Find appropriate values of sampling rate - nyquist rate , 1. Find the Nyqu...

1. Find the Nyquist rate for the following signals: (a) x(t) = 5 sin 3000Πt cos 4000Πt (b) A binary channel with bit rate 36000 bps is available for PCM voice transmission.

Digital frequency meter, Q. Explain digital frequency meter. or E...

Q. Explain digital frequency meter. or Explain principle of digital frequency meter and discuss utility of time base selector with suitable diagrams. Sol. Digital Fr

Define resistance in lumped-circuit, Q. Define Resistance in lumped-circuit...

Q. Define Resistance in lumped-circuit? An ideal resistor is a circuit element with the property that the current through it is linearly proportional to the potential differenc

Show the frequency response of rc coupled amplifier, Q. Show the Frequency ...

Q. Show the Frequency response of Rc Coupled Amplifier? 1. At low frequency i.e,less than 50 Hz reactance of Cc is going high hence same part of the signal will pass from one s

Dc motor, You have been given a DC motor to characterize. What three measu...

You have been given a DC motor to characterize. What three measurements are required in order to develop the torque-speed curve and the acceleration curve for the unloaded motor?

Ultrasonic Sensor Help for Seventh Grader, What are ultrasonic sensors made...

What are ultrasonic sensors made of? What is a good online source to find information on a basic level about ultrasonic sensors?

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