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

Motor windings, What is the main function of dummy coul in winding?

What is the main function of dummy coul in winding?

Explain the construction of a mosfet, Explain the construction of a MOSFET....

Explain the construction of a MOSFET. Draw the symbols and diagrams of both P-channel and N-channel MOSFET. As JFET and MOSFET also have source, drain and gate. Its gate is ins

find the current and voltage by ohms law and kvl, 1. A current carrying co...

1. A current carrying conductor is found to carry 10 μA at a given time slot from 5μs to 1.5 ms. Find the total number of electrons flowing in the conductor during this time slot.

Describe the functionalities and the purpose of an equalizer, Question: ...

Question: (a) For a CD quality sound, what is the bit depth used and give the amplitude's levels and the dynamic range of this sound quality (b) In audio technology, the dec

Explain about simplex communication, Q. Explain about Simplex communication...

Q. Explain about Simplex communication? Simplex communication: Microphone and the earphone are transducer elements of the telephone communication system. Microphone converts

How can a jfet be used as a constant current source, Q. How can a JFET be u...

Q. How can a JFET be used as a constant current source? Explain from the drain characteristics. As the VDS voltage is increased from 0 to a few volts, the current will increase

Difference equation of transfer function, Now you have to digitally impleme...

Now you have to digitally implement this circuit. Compute a difference equation which if you implement will behave exactly like this circuit.

Determine the supply current and the supply voltage, A single phase line ha...

A single phase line has an impedance of 8.4 + j11.2 ?. The line feeds a load consisting of a resistor and an inductor connected in parallel as shown in Figure 1. The load is absorb

What is terminate and stay resident, What is TSR? TSR: The TPA also as ...

What is TSR? TSR: The TPA also as TSR stand for terminate and stay resident programs which remain in memory in an active state till activated by a hot-key sequence or other eve

Colpitts oscillator, how does a colpitts oscillator works an also explain t...

how does a colpitts oscillator works an also explain the principle

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