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 approximate donor binding energy, Calculate the approximate d...

Calculate the approximate donor binding energy Calculate the approximate donor binding energy for Si (r = 11.7,m x n = 1.18 m 0 ) Solution: From E= m * n q 4 / 2(4 πε 0

Closed loop block diagram into Electrical Circuit, I have a closed loop or ...

I have a closed loop or feedback system and i want to convert it into electrical circuit. please give me example about this

Personal safety from power, Personal  safety Power supplies can be very...

Personal  safety Power supplies can be very dangerous. This is specifically true of high voltage circuits, but anything over 12 V must be treated as lethal potentially. A po

Obtain the expression for the steady-state coil current, Q. Let the coil of...

Q. Let the coil of the solenoid of have a resistance R and be excited by a voltage v = Vm sin ωt. Consider a plunger displacement of g = g 0 . (a) Obtain the expression for the

What is meant by daisy chaining method, What is meant by Daisy Chaining met...

What is meant by Daisy Chaining method?  It does not need any priority resolving network, rather the priorities of all the devices are effectively assumed to be in sequence.

Measurement, Why delay circuit used in CRO?

Why delay circuit used in CRO?

Write a short note on the working of darlington amplifier, Q. Write a sho...

Q. Write a short note on the working of Darlington Amplifier? A Darlington Amplifier is one that is employing the Darlington pair of transistors. It is a

What is threaded system, What is Threaded system. Threaded system: At...

What is Threaded system. Threaded system: At times we require implementing an operating system which can process multiple threads. Many threads are handled through the kernel

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