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

Lime, what is the formula of lime water

what is the formula of lime water

Microprocessor development system, Write explanatory notes on  Microprocess...

Write explanatory notes on  Microprocessor development system. Microprocessor development system : Computer systems have undergone several changes recently. Machines which

Performance equations of three phase induction motor , Performance Equation...

Performance Equations of Three Phase Induction Motor When balanced 3-? voltages are applied to the  stator  winding  a rotating magnetic field  of constant amplitude is produc

Name the materials used in case of fuses, Name the materials used in case...

Name the materials used in case of Fuses . Also give reasons. Fuses : For rewirable fuses, copper-tin and lead-tin alloy is used. For HRC and cartridge fuses silve

Induction motor, principle and operation of 3phace induction motor

principle and operation of 3phace induction motor

Surge current - thyristor, Surge Current It is  the maximum admissib...

Surge Current It is  the maximum admissible peak value of  a sinusoidal half  cycle of 10 ms duration at a frequency of 50Hz. The  value is specified at a given junction tem

Design a pulse generator, To design a VI that can also be used as a Sub VI ...

To design a VI that can also be used as a Sub VI in another VI. The title of the VI will be Pulse Generator. The output from the VI will be of the type Analogue Waveform and

Calculate the total charge on the integrator, Q. Consider the dual-slope A/...

Q. Consider the dual-slope A/D converter of Figure. (a) Calculate the total charge on the integrator due to the input voltage Vin during the signal integration time T. (b) Ob

Electrical, do you have a place where I can draw the equation out ?

do you have a place where I can draw the equation out ?

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