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

Circuit theory, matlab program for verifying maximum power transfer

matlab program for verifying maximum power transfer

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

Sketch the asymptotic bode diagrams, Q. Sketch the asymptotic Bode diagrams...

Q. Sketch the asymptotic Bode diagrams for the following functions:

Motor: power production, The mechanical power produced at the armature of a...

The mechanical power produced at the armature of a motor is: P = T a . (power is in watts if torque is N.m and    in rad/sec). Some of this will be lost due to friction and

#title.Shockley diode, I want proof of shockley diode equation with all ste...

I want proof of shockley diode equation with all steps

Show effects of saliency and saturation, Q. Show Effects of Saliency and Sa...

Q. Show Effects of Saliency and Saturation? Because of saliency, the reactancemeasured at the terminals of a salient-pole synchronousmachine as opposed to a cylindrical-rotor m

State the significance of lock signal in 8086, State the significance of LO...

State the significance of LOCK signal in 8086? If 8086 is working at maximum mode, there are multiprocessors are there. If the system bus is given to a processor then the LOCK

Which realization requires the least number of gates, Q. Consider a 1-bit v...

Q. Consider a 1-bit version of the digital comparator shown in Figure. Note that the operation of this circuit is such that whichever output is 1 gives the desired magnitude compar

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