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
a cast steel has minimun diameter of 200 mm and a cross sectional area of 250/1000000 m . calclate the mmf to produce a flux of300/1000000 Wb.

The observations from these experiments led to 'The Laws of Electromagnetic Induction' 1)  'If the magnetic flux threading through an electrical circuit changes, then an e.m.f.

Q. WEIGHTED-RESISTOR CONVERTER? Figure shows a 4-bit weighted-resistor D/A converter which includes a reference voltage source, a set of four electronically controlled switches

Comparison of Analog-Modulation Systems The comparison of analog modulation systems (conventional AM, DSB SC, SSB SC, VSB, FM, and PM) can be based on three practical criteria:

There are many advantages of PLC a.The PLC  was specifically designed for harsh  conditions with  electrical  noise magnetic fields vibration  extreme temperatures or humidit

Uses of FET IGBTs (Insulated-gate bipolar transistor) see application in switching internal combustion engine ignition coils, in which fast switching and voltage blocking cap

Multitasking -  Single Processor Many Users Many  Tasks In multitasking or also  called  time sharing  systems  multi  user  more than  one users are sharing  one processor

Comparison  of Induction and Dielectric Heating After  studying the induction and  dielectric  heating  followings  points  may consider for  comparison  between  induction an

Q. An n-channel JFET is given to have V P = 3V and I DSS = 6 mA. (a) Find the smallest value of v DS when v GS =-2 V if the operation is to be in the active region. (b) D

can you please briefly explain about significance of the word direction in vectors with some valid points