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

Explain pentium processor has a superscalar architecture, 'Pentium processo...

'Pentium processor has a superscalar architecture'. Explain the meaning of the statement. The Pentium microprocessor is organized along with three execution units. Single execu

Explain about communication systems, Q. Explain about Communication Systems...

Q. Explain about Communication Systems? Even though most modern communication systems have only been invented and developed during the eighteenth and nineteenth centuries, it i

Classify the magnetic materials, Classify the magnetic materials into diama...

Classify the magnetic materials into diamagnetic, paramagnetic, ferromagnetic and ferrimagnetic materials. Also give examples of each. Classification of magnetic materials:-

risers, Risers: Riser Design : A riser or a feeder head is a passag...

Risers: Riser Design : A riser or a feeder head is a passage of sand made in the cope to permit the molten metal to rise above the highest point in the casting after the mou

Customer service management, Customer Service Management CRM involves ...

Customer Service Management CRM involves several activities related to planning - both long terms and short terms, measurement and control, improvement and innovation of all a

Sod output - serial input output ports , SOD Output Serial output data ...

SOD Output Serial output data  single  bit can be sent  out through this pin using SIM  command  discussed in details in chapter8.

Explain iron and silicon iron alloys, Explain iron and silicon iron alloys....

Explain iron and silicon iron alloys. Iron: Galvanised steel and iron wires that are usually used for earth conductor in low voltage distribution systems may also be utilize

Discuss one application of 8254 programmable interval timer, Discuss any on...

Discuss any one application of 8254 Programmable Interval Timer in detail. Mode1 causes the counter to treat as a retriggerable monostable multivibrator one shot. The G inpu

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