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

What can explain failure of relative ppp to hold in reality, Q. What ...

Q. What can explain the failure of relative PPP to hold in reality? Answer: Government procedures of the price level differ from country to country. One cause for thes

Name the flag available in status register of 8086, What are the different ...

What are the different flag available in status register of 8086? There are Six flags are present. They are, AF - Auxiliary Carry Flag CF - Carry Flag OF - Ove

Explain basic working of ideal operational amplifier, Q. Explain basic work...

Q. Explain basic working of Ideal operational amplifier? The operational amplifier, known also as op amp, consists of several transistors, diodes, capacitors, and resistors. It

Single phase full wave mid point type rectifier , Single Phase Full Wave M...

Single Phase Full Wave Mid Point Type  Rectifier A single  phase full wave  mid point  type controlled  rectifier consists  two  thyristors  one centre tapped  transformer  an

Illustrate the principle of alignment, Q. Illustrate the principle of align...

Q. Illustrate the principle of alignment? Pieces of highly permeablematerial, such as iron, situated in ambientmediumof lowpermeability, such as air, in which a magnetic field

Characteristics of the diode, Consider a forward-biased diode with a load r...

Consider a forward-biased diode with a load resistance. Let the static volt-ampere characteristic of the diode be given by Equations, and typically represented by Figure. (a) Fo

What are the different types of distributing frames, Q. What are the differ...

Q. What are the different types of distributing frames used in exchanges? Ans: Different distribution  frames  used  in  exchange  are  displayed in  figure.  Each subscribe

Determine the amplitude - radar system, Suppose the ambiguity function of s...

Suppose the ambiguity function of some waveform x ( t ) of duration ζ = 1 millisecond is given by   (NOTE: this is not a possible AF because it is not time-limited to

Energy conservation building codes, Energy Conservation Building Codes ...

Energy Conservation Building Codes It encompass the norms and standards of energy consumption expressed in terms of per square meter of the area wherein energy is used. The

Compute the maximum electromagnetic power, Q. A four-pole dc machine with 7...

Q. A four-pole dc machine with 728 active conductors and 30mWb flux per pole runs at 1800 r/min. (a) If the armature winding is lap wound, find the voltage induced in the armatu

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