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 cascading of multiple PICS 8259.  The 8259A adds 8 vectored priority encoded interrupts to the microprocessor. It can be expanded to 64 interrupt requests by using one

jsidjsiod dkndkdisd dknssbs bsjbabd asj u dhihf ujojdsajfs sjssaidhsidw idgsdusadidjwap ewkeowr krwnrh bwvr [ wrj wrj 1 nnwoi khiwrjw ko e woewerijr rjwr jr rjhpr

Factors Affecting High Commercial Losses Commercial losses in our country occur mainly because of the following reasons: Incorrect assessment of the energy consum

Explain the chemical properties of insulating materials. Chemical properties - Chemical resistance: Presence of gases, acids, water, alkalies and salts influences different

Using the audiorecorder() function in MATLAB, make a recording of your voice. Use a sample rate of 8kHz, 16 bits per sample, and aim to record around 2 seconds worth. Quantize the

Discuss the ENDP assembler directive with example ENDP: It is stands for End Procedure, which informs assembler the end of a procedure. Within assembly language programm

Any number System  to Decimal Conversion To convert a number in any number system to its  equivalent  decimal number, simply multiple each  digit of the number  with its  posi

Give the layout of a modern steam power plant and illustrate it briefly. With the help of schematic diagrams illustrate the construction and basic working of closed cycle and op

The resistance of a wire is 60 ? at 25 o C and 65? at 75 o C. Find the resistance of wire at 0 o C and value of temperature co-efficient at 0 o C. Ans: Given R 25 = 60 ? a

Q. What is the basic principle of oscillators?  In an oscillating circuit, the amplitude of voltage or current oscillations decays with time owing to the dissipation of energy