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

Determine the motor current and speed, A dc series motor is connected to a ...

A dc series motor is connected to a load. The torque varies as the square of the speed.With the diverter-circuit open, the motor takes 20 A and runs at 500 r/min. Determine the mot

Compute the received carrier frequency, Consider a transmitter S which radi...

Consider a transmitter S which radiates a sinusoidal carrier frequency of 1850 MHz. For a vehicle moving at 26.82 m/s, compute the received carrier frequency if the vehicle is movi

Control bus -bus organisation, Control  Bus The control  bus comprises...

Control  Bus The control  bus comprises of various  single  lines that carry  various  control  signals for synchronizing  various devices  and performing different task. The m

Effective mass, Effective Mass The electrons' "wave-particle" motio...

Effective Mass The electrons' "wave-particle" motion in a lattice is not the same as that for a free electron, because of the interaction with the periodic potential of the

Differences between vga and cga graphics adapters, Q.9 What are the main...

Q.9 What are the main differences between VGA and CGA graphics adapters? Ans: Colour Graphics Adapter (CGA), initially also known as Colour/Graphics Adapter or IBM Colo

Write short notes on the stability factor of biasing circuit, Q. Write shor...

Q. Write short notes on the Stability Factor of Biasing circuits. The degree of success achieved in stabilizing Ic in the face of variations in Ico is expressed in terms of sta

Right-handed coordinate system, The vectors we will use we be refered to ri...

The vectors we will use we be refered to right-handed Cartesian axes. Right handed means that the x,y,z axes are oriented in a particular way (which you must know). See diagrams

Semiconductor material, Semiconductor Material: Semiconductor is a mat...

Semiconductor Material: Semiconductor is a material that has a conductivity level somewhere between the extreme of an insulator and a conductor   Resistivity of a material

What is microprocessor, What is Microprocessor? Give the power supply & clo...

What is Microprocessor? Give the power supply & clock frequency of 8085. A microprocessor is a multipurpose, programmable logic device that reads binary instructions from a sto

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