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

Name the materials used in case of bimetals, Name the materials used in cas...

Name the materials used in case of Bimetals and give reasons. Bimetals : Alloy of nickel and iron along with low value of coefficient of thermal expansion are utilized as

Direct tapping and unmetered connections, Direct Tapping and Unmetered Conn...

Direct Tapping and Unmetered Connections Direct Tapping Direct tapping of power by non-customers is widely prevalent. This is mainly in domestic and agricultural categori

Explain the term superscalar architecture, Question 1: a) Describe how...

Question 1: a) Describe how pipelining can improves the efficiency of the fetch-execute cycle. b) Explain the term superscalar architecture. c) Explain the term prin

Define sampling frequency, Define Sampling Frequency? Since real analog...

Define Sampling Frequency? Since real analog signals consist of several frequencies, spectrum of the input signals should be limited to make sure that no signal energy exists a

Electronic photo flash, Q. Electronic Photo Flash? A simplified schemat...

Q. Electronic Photo Flash? A simplified schematic diagram of the electric circuit of an electronic photo flash typically used on cameras is shown in Figure 7.7.1. By passing a

Explain bandwidth and applications of rc coupled amplifier, Q. Explain the ...

Q. Explain the bandwidth for the curve and the applications of an RC coupled amplifier. Frequency response curve of an RC coupled amplifier was shown above(prev page). The cut

What is message demodulation, Q. What is Message Demodulation? The majo...

Q. What is Message Demodulation? The major advantage of the conventional (standard) DSB AMsignal transmission is the ease with which the signal can be demodulated. Themessage s

Transformers, A 15kVA has a turns ratio 1:10. If the voltage applied is 13....

A 15kVA has a turns ratio 1:10. If the voltage applied is 13.8kV and the applied load is 20+j6. Find the current in the secondary winding and the active and reactive power consumed

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