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

What is message demodulation, Q. What is Message Demodulation? The majo...

Q. What is Message Demodulation? The major advantage of the conventional (standard) DSB AMsignal transmission is the ease with which the signal can be demodulated. Themessage s

THE THEORY, I WANT TO KNOW WHAT IS THE THORY OF PLOTTING V-I CHARACTERISTIC...

I WANT TO KNOW WHAT IS THE THORY OF PLOTTING V-I CHARACTERISTIC CURVE OF SILICON DIODE ???

Linear and IC applications, bias compensation techniques for ac and dc char...

bias compensation techniques for ac and dc characteristics

What do you mean by induction, Q. What do you mean by Induction? The es...

Q. What do you mean by Induction? The essentials for producing an emf bymagneticmeans are electric andmagnetic circuits,mutually interlinked. Figure (a) shows a load (or sink o

Show the procedure of octal to decimal conversion, Q. Show the procedure of...

Q. Show the procedure of Octal to Decimal Conversion? To convert from Octal to Decimal, multiply the value in every position by its Octal weight and add each value. Using the v

Find the current flow through a resistor, Q. Find the current flow through ...

Q. Find the current flow through a resistor ? Consider the circuit shown in Figure (a). Reduce the portion of the circuit to the left of terminals a-b to (a) a Thévenin equival

Cmos processes, CMOS processes: The low-performance "lateral" bipolar ...

CMOS processes: The low-performance "lateral" bipolar transistors occasionally employed in CMOS processes are sometimes designed symmetrically, i.e., with no distinction betwe

Ac waveform, which ckt. Or components using for irregular ac sine wave ...

which ckt. Or components using for irregular ac sine wave change into pure sine wave.......

Explain kirchhoff current law, Q. Explain Kirchhoff current law? The ba...

Q. Explain Kirchhoff current law? The basic laws that must be satisfied among circuit currents and circuit voltages are known as Kirchhoff 's current law (KCL) and Kirchhoff 's

Illustrate gas power plant, With the help of schematic diagram illustrate G...

With the help of schematic diagram illustrate Gas Power Plant. Describe the effect of reheating, regeneration and inter cooling with the help of suitable T-S diagrams. Give the

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