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

Use of monitoring and control in nuclear and chemical plants, Use of Monito...

Use of Monitoring and control in nuclear and chemical plants In nuclear and chemical plants, there is generally a combination of control and monitoring taking place. Informatio

Write a note on the application of emitter-follower, Q. Write a note on the...

Q. Write a note on the application of emitter-follower? An emitter follower can serve as a buffer for a voltage source. The voltage divider at left is a poor voltage source bec

Explain magnetostriction, Explain Magnetostriction. Magnetostriction: I...

Explain Magnetostriction. Magnetostriction: If ferromagnetic materials are magnetized a small change of dimensions of the material obtains place. There is a small extension alo

Obtain a thevenin equivalent circuit, Q. (a) Obtain a Thevenin equivalen...

Q. (a) Obtain a Thevenin equivalent circuit at terminals A-B in the circuit. (b) What impedance ¯ZL, when connected to A-B, produces maximum power in ¯ZL? (c) Find the val

Define serial in - parallel out shift registers, Define Serial In - Paralle...

Define Serial In - Parallel Out Shift Registers? For this type of register data bits are entered serially in the same manner as discussed in the last section and the difference

Calculate the resistance of the coil of a transistor, A 6 V / 2.5 mA relay ...

A 6 V / 2.5 mA relay is connected in the output stage of a transistor.  The coil is made of aluminium having α = 0.004. The resistance of the coil is 600 ? at 32 o C. Calculate th

Determine the largest crest factor, A quantizer has 130 quantum levels that...

A quantizer has 130 quantum levels that exactly span the extremes of a symmetrically ?uctuating message with step size δv = 0.04 V. Determine the following: (a) |f(t)|max.

#speed control, explain speed control of dc motor

explain speed control of dc motor

Can you explain about slew rate, Q. Can you explain about Slew Rate? Sl...

Q. Can you explain about Slew Rate? Slew (or slewing) rate is a measure of how fast the output voltage can change. It is given by the maximum value of dvo/dt , which is normall

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