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

A transistor has how many p-n junction, A transistor has (A) One p-n j...

A transistor has (A) One p-n junction.  (B) Two p-n junction. (C) Four p-n junction. (D) Five p-n junction. Ans: A transistor has two p-n junctions.

Ac resistance and dc resistance, Background Information Electrical mach...

Background Information Electrical machines usually consist of copper windings on steel cores, and their AC resistance is greater than their DC resistance. The power loss has

Gis for distribution network management, Gis for Distribution Network Manag...

Gis for Distribution Network Management: You are well aware of the problems facing the distribution utilities to meet the day-to-day requirements of the power consumers, like

Repeatability , Reproducibility and repeatability are measures of closeness...

Reproducibility and repeatability are measures of closeness with which a given input may be measured over again. The two terms cause confusion. Therefore, a distinction is made bet

Sections construct in fortan, Q. Sections construct in FORTAN? The sect...

Q. Sections construct in FORTAN? The sections construct is a no iterative work sharing construct which causes structured blocks to be shared among threads in team. Every struct

For the circuit obtain z- and y-parameters, Q. For the circuit shown in Fig...

Q. For the circuit shown in Figure, obtain: (a) z-and y-parameters; (b) Transfer function I 2 /I 1 when V 2 = 0.

Determine gold and silver are which type of materials, Gold and silver are ...

Gold and silver are (A) Dielectric materials (B) Low resistivity conducting materials. (C) Magnetic materials. (D) Insulating materials. Ans: Gold and si

Determine the form factor and peak factor, Determine the form factor and pe...

Determine the form factor and peak factor: Determine the form factor and peak factor for the above half rectified wave. Solution From the above example, I rms   =

Science day, i need to submit a still model or a working model on science d...

i need to submit a still model or a working model on science day(28 February). can you help me....

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