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

Wireless and communication, With a maximum excess delay of and a chip durat...

With a maximum excess delay of and a chip duration of , the multipath components fall in delay bins. This means that we experience leakage of energy between chips and the channel i

Find the current in resistance, Q. Obtain the Thévenin and Norton equivalen...

Q. Obtain the Thévenin and Norton equivalent circuits for the portion of the circuit to the left of terminals a-b in Figure, and find the current in the 200- resistance.

Advantages of a.c generator - the alternator, 1) only one pair of slip ring...

1) only one pair of slip rings are required (to energise the rotating field coil) regardless of the number of phases produced by the alternator (three phases is common because of t

Transfer function of time multiplexer, How wood a transfer function of a ti...

How wood a transfer function of a time-multiplexer with switching in 10 kHz between 2 channels look like?

Determine the h-parameters for the circuit, Q. Determine the h-parameters f...

Q. Determine the h-parameters for the circuit shown in Figure and obtain the transfer function V 2 /V 1 when I 2 = 0.

Estimate the maximum number of conversions, Q. The speed of an 8-bit A/D co...

Q. The speed of an 8-bit A/D converter is limited by the counter, which has a maximum speed of 4 × 10 7 counts per second. Estimate the maximum number of A/D conversions per secon

Probability of availability of free lines, Q. How does one arrive at the pr...

Q. How does one arrive at the probability of availability of free lines during busy hour? How can this be improved? Ans: One can arrive at probability of free lines during busy

Determine the effective input noise temperature, Q Determine the effective ...

Q Determine the effective input noise temperature of a long piece of waveguide (that connects an antenna to a receiver) with a loss of 3.4 dB at 12 GHz and a physical temperature o

How to remove the LSB from the audio recording?, Using the audiorecorder() ...

Using the audiorecorder() function in MATLAB, make a recording of your voice. Use a sample rate of 8kHz, 16 bits per sample, and aim to record around 2 seconds worth. Quantize 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