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

Can you explain working principle of tl - ac alternator, Can you explain wo...

Can you explain working principle of TL/AC alternator? Ans . The core of the stator which is completely induced by the field coils, will get a residual magnetism if excited b

Sketch the waveforms of sinusoidal voltage source, Q. Consider the op-amp c...

Q. Consider the op-amp circuit of Figure. Sketch the waveforms of v S and v o , if v S is a sinusoidal voltage source with a peak value of 2.

Explain the usage of the output ports , Objective: To Understand the Usage ...

Objective: To Understand the Usage of the Output ports of PIC18F452 and make changes in the previous code accordingly. Procedure: 1. Open the p1.asm program from t

Relative permeability of the cast steel, A closed magnetic circuit of cast ...

A closed magnetic circuit of cast steel having a 6cm long path of cross-sectional area 1cm 2 and a 2 cm path of cross-sectional area 0.5 cm 2 . A coil of 200 turns is wound around

Load resistor , a) Include a Smoothing Capacitor to the Rectifier circuit a...

a) Include a Smoothing Capacitor to the Rectifier circuit and calculate the Output Voltage and Frequency b) Include a 47Ω Load Resistor and sketch the schematic diagram of the c

Discuss power failure detection circuit interrupt nmi, Draw and discuss pow...

Draw and discuss power failure detection circuit interrupt NMI. The non-maskable interrupt (NMI) is an edge-triggered input which requests can interrupt upon the positive-edge.

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