Geometric transformations, Electrical Engineering

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?

Posted Date: 2/26/2013 12:27:01 AM | Location : United States







Related Discussions:- Geometric transformations, Assignment Help, Ask Question on Geometric transformations, Get Answer, Expert's Help, Geometric transformations Discussions

Write discussion on Geometric transformations
Your posts are moderated
Related Questions
Explain the difference between a microprocessor and an embedded microcontroller

An induction motor has a starting current that is 6 times the full-load current and a per-unit full- load slip of 0.04. The machine is to be provided with an autotransformer starte

Q. Determine the synchronous speed in revolutions per minute and the useful torque in newton- meters of a 200-hp, 60-Hz, six-pole synchronous motor operating at its rated full load

Human Resources - KPI It is the responsibility of management to have the lean, capable, customer friendly organization that strives for catering to diversified need of all the

Determine power reflection coefficient at the input port: For the MESFET equivalent circuit shown below, find S 11 and S 22 . Note that resistances associated with the voltag

Q. When the two-wattmeter method for measuring three-phase power is used on a certain balanced load, readings of 1200W and 400W are obtained (without any reversals). Determine the

Q. A three-phase ac motor, used to drive a draft fan, is connected to a 60-Hz voltage supply. At noload, the speed is 1188 r/min; at full load, the speed drops to 1128 r/min. (a


Q. Explain Telephone hand set and it’s working ? A standard telephone set is comprised of a transmitter, a receiver and electrical network for equalization, associated circ

Explain the Procedure for design of Sequential Circuits? The design of the synchronous sequential circuit starts from a set of specifications and culminates in a logic diagram