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

Logically and the contents of memory, Logically AND the contents of memory ...

Logically AND the contents of memory Contents of memory  location,  whose address is specified by HL register pair are logically AND with the  contents  of the accumulator. The

Draw and explain a differential circuit, Q. Draw and explain a differential...

Q. Draw and explain a differential circuit A differentiator is a high pass RC circuit having a very small time constant. It is a circuit which gives an output voltage proportio

Hybrid model for two-port network, Hybrid Model for Two-port Network:- ...

Hybrid Model for Two-port Network:-             V 1 = h 11 i 1 + h 12 V 2                                                                             I 2 = h 1 i 1

Determine the line-to-line voltage at the load terminal, Q. A balanced delt...

Q. A balanced delta-connected load has a per-phase impedance of 45 60° . It is connected to a three-phase, 208-V, 60-Hz supply by a three- phase feeder that has a per-phase impeda

What do you mean by communication channel, Q. What do you mean by communica...

Q. What do you mean by communication channel? The communication channel (transmissionmedium) is the physicalmediumthat is utilized to send the signal from the transmitter to th

Define the tick of the property, Tick of the property, which is different f...

Tick of the property, which is different from the group (A) Ductility.                (B) Resistivity. (C) Tensile strength.   (D) Hardness. Ans: Tick of the pr

Basic working principle of laser beam machining process, Define the basic w...

Define the basic working principle , process characteristics,advantages, disadvantages and application of Laser Beam Machining Process.

Determine required output power, Q. Two stations (using identical antennas,...

Q. Two stations (using identical antennas, with diameters of 50λ and aperture ef?ciencies of 0.6 at 35 GHz) are separated by 30 km. With negligible antenna losses, antenna connecti

Electric machinery fundamentals, Ask qu1. If the resistor Radj is adjusted ...

Ask qu1. If the resistor Radj is adjusted to 175O what is the rotational speed of the motor at no-load conditions? 2. Assuming no armature reaction, what is the speed of the motor

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