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

Explain biased and double clipper circuits, Q. Explain biased and double c...

Q. Explain biased and double clipper circuits.   Clipper can be either forward biased or reverse biased. If a battery is connected in series with the diode in a positi

Determine the thevenin resistance, Q. Determine the Thevenin resistance vie...

Q. Determine the Thevenin resistance viewed from terminals A-B of the circuit of Figure by setting independent sources to be zero and applying a test voltage at terminals A-B.

Determine the cost of energy used in a system, The energy consumption for a...

The energy consumption for a small factory is given at the end of the brief. a) Three commercial tariffs from an energy supplier are shown below. Using these (or other commercia

Expain different control function categories, Q. Expain different control f...

Q. Expain different control function categories,And also discuss that how they help in signalling and control. Ans: In some switching systems, Control subsystem may be a

Filtering, Filtering  (i) Write an m-file "mymedian.m" which will ta...

Filtering  (i) Write an m-file "mymedian.m" which will take an image and filter size and perform median filtering. Display input and output image. Use  help median fun

Machines, what is power factor of generator at overexcitation

what is power factor of generator at overexcitation

Explain mesh - current method, Q. Explain Mesh - Current Method? This c...

Q. Explain Mesh - Current Method? This complements the nodal-voltage method of circuit analysis. A set of independent mesh-current variables that implicitly satisfy the KCL equ

Hot line maintenance, how do you define the expertise for this hot line mai...

how do you define the expertise for this hot line maintenance?

Amplifiers with feedback, Q. Amplifiers with Feedback? Almost all pract...

Q. Amplifiers with Feedback? Almost all practical amplifier circuits include some form of negative feedback. The advantages gained with feedback may include the following: •

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