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

Static scherbius drive - motor control , Static  scherbius  Drive B...

Static  scherbius  Drive By using  this scheme, below and above  synchronous speed can be obtained for an induction motor. There are  two possible  configurations to obtain  s

Introduction to electronics, Explain the difference between a microprocesso...

Explain the difference between a microprocessor and an embedded microcontroller

What are flip flop circuits in digital electronics, What are flip flop circ...

What are flip flop circuits in digital electronics? Discuss race around condition in J-K Flip Flop

Illustrate the working of full wave rectifier, Illustrate the working of fu...

Illustrate the working of full wave rectifier using bridge rectifier. How is it different from centre tapped Rectifier ? Illustrate Avalanche and Zener breakdown. Draw & explain

Find the flux density in the air gap of the right leg, Q. In the magnetic c...

Q. In the magnetic circuit shown in Figure the center leg has the same cross-sectional area as each of the outer legs. The coil has 400 turns. The permeability of iron may

Analog circuit, What is the disadvantages of diodes as a series element in ...

What is the disadvantages of diodes as a series element in a clipper?

Sketch a graph comparing the fcc class, a) In the United States, the Federa...

a) In the United States, the Federal Communications Commission (FCC) is charged with the regulation of radio and wire communication (FCC part 15). It basically sets limits on the

3-phase 180 degree mode vsi , 3-phase 180 0 mode VSI In 1800 mode VSI...

3-phase 180 0 mode VSI In 1800 mode VSI  each thyristor  conduct  for 1800 and two  thyristor  are fired  at 600 interval. For  example  if thyristor  T1  is fired at 00 then

Design an electro-pneumatic system, (i) Sketch a fully-labelled electro-pne...

(i) Sketch a fully-labelled electro-pneumatic circuit showing your actuators in the START position and employ metered out speed control with mono-stable 5/2 DCV's having solenoid a

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