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

Moving coil transducers, Note transducers  convert a physical quantity from...

Note transducers  convert a physical quantity from one  form to another.  The case below illustrates a typical moving coil meter   that   converts   a   current into a mechanical a

Matrix converters, i need tutor for teaching me matrix converter based upfc...

i need tutor for teaching me matrix converter based upfc modelling and building using matlab

What is program counter, Program counter holds the address of either the fi...

Program counter holds the address of either the first byte of the next instruction to be fetched for implementation or the address of the next byte of a multi byte instruction, whi

Mov - move instruction, MOV ( Move ) Instruction It copies  the content...

MOV ( Move ) Instruction It copies  the contents of the sources register into destination register. The general format is . This  instruction  is used  to copy 8 bit  from s

Charge variation with time, Q. A charge variation with time is given in Fig...

Q. A charge variation with time is given in Figure. Draw the corresponding current variation with time.

Depletion type mosfet, Depletion type MOSFET The channel is of silico...

Depletion type MOSFET The channel is of silicon. It can be two type of channel that is an n-type or p-type channel; it is still mostly silicon. After that, we take note that

Explain ionic polarization, Explain i onic polarization. Ionic polari...

Explain i onic polarization. Ionic polarization is polarization that is caused by relative displacements between negative and positive ions in ionic crystals (for illustrati

Sketch the labelled frequency response, Question: (a) Consider the foll...

Question: (a) Consider the following RC admittance function: (i) If the function is to be realised using the Cauer II Form, find the values of the different components

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