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

Calculate the guage pressure, Questions: Part (a) A compressor inst...

Questions: Part (a) A compressor installed at a wharf (for loading container ships) is able to provide 6 bar.g pressure into the pressure receiver. The compressor is moved

Determine voltage in given figure, Q. An n-channel JFET having V P = 3.5 V...

Q. An n-channel JFET having V P = 3.5 V and I DSS = 5 mA is biased by the circuit of Figure with V DD = 28 V, RS = 3000 , and R 2 = 100 k. If the operating point is given by

Evaluate reference voltage, Q. Consider the 4-bit R-2R ladder D/A converter...

Q. Consider the 4-bit R-2R ladder D/A converter with V ref =-10 V. Determine the analog output voltage when the binary input code is 1100. Also, find what reference voltage is to

Ratio, how do ratos connect to engineering

how do ratos connect to engineering

Laser beam machining and electron beam melting, Differentiate between LBM a...

Differentiate between LBM and EBM process on the basis of application and limitations.

Complier -high level language , Complier-High Level language It al...

Complier-High Level language It also  translates the  whole  high  level  program  into object  program if it does not  have any  syntax error. The disadvantage of the  in

Characteristics of stepper motors - stepper motor , Characteristics of Ste...

Characteristics of Stepper Motors The main  characteristic of stepper  motors is torque  versus stepping or  pulse  rate. It give the  variation  of torque as a function of pu

Digital control system, block diagram of digital control system and explain...

block diagram of digital control system and explain each block

Why are waveguides not used at low frequencies, Q. Comment brie?y on the fo...

Q. Comment brie?y on the following: (a) Why are waveguides not used at low frequencies? (b) Why are open-wire lines not generally used as guiding structures at very high freq

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