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

Find the smallest value of v, Q. An n-channel JFET is given to have V P = ...

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

Determine the percentage reduction in the applied voltage, A large inductio...

A large induction motor is usually started by applying a reduced voltage across themotor; such a voltage may be obtained from an autotrans- former. A motor is to be started on 50%

Cathode-ray tube, Q. Explain Cathode-ray tube? While the CRT display is...

Q. Explain Cathode-ray tube? While the CRT display is one of the oldest, it still remains one of the most popular display technologies. The raster-scanned display devices work

Water technology, #question. . =calculate the calcium carbonate equivalent ...

#question. . =calculate the calcium carbonate equivalent hardness of calcium sulphate of 5gms present in one litre

Flag registers , Flag Registers Flag  register  is also an  8 bit  reg...

Flag Registers Flag  register  is also an  8 bit  register. Out of 8 bit  five are  defined as flags to indicate status  of the accumulator  hence it is also called status reg

Sinusoidal, Give the examples of sinusoidal with two equations?

Give the examples of sinusoidal with two equations?

Schmitt triggering, schmitt triggering with emitter coupled transister

schmitt triggering with emitter coupled transister

Describe 74ls139 memory decoder, Describe 74LS139 memory decoder. The 7...

Describe 74LS139 memory decoder. The 74LS139 is a dual 2-to-4 line decoder. This contains two separate 2-to-4 line decoders - all with its address, output and enable connection

Voltages source inverter - vsi, Voltages source inverter ( VSI) A volta...

Voltages source inverter ( VSI) A voltage  source  inverter is a constant voltage  source  which  is having  negligible  impedance. In these inverters the amplitude of output

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