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
how does a zener diode works


The resistance of a 5 m length of wire is 600Ω.Determine: a)  the resistance of an 8 m length of the same wire, b)  the length of the same wire when the resistance is 420Ω

Logically AND  the contents of Register Contents of  register are logically AND with the accumulator bit wise. The result  of the AND  operation is  stored  in the accumulat

Induction motors are often braked rapidly by a technique known as plugging, which is the reversal of the phase sequence of the voltage supplying the motor. Assume that a motor with

This assignment concerns the planning of a software development. You are required to plan the software development for a typical microprocessor based, 4-channel temperature control

Structure and use of PNP transistor: The figure opposite is a schematic presentation of a PNP transistor related to two voltage sources. To construct the transistor conduct ap

Static Electricity : This is produced when two substances are rubbed together; the substances may be solids, liquids, or gases. Typical sources of static electricity are: i) dr

State advantagesof Washing machine Main advantages are that these washing machines are fully automatic (wash programs are fully stored) it makes them easy to use, they are chea

By a simple time multiplexing of natural samples over a single line, a large radar site transmits 85 analog signals, each with 200-Hz bandwidth. If the sampling is done at twice th