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

OSILATOR, COULD U INTERDUCE AN OSILATOR THAT MAKES TRIANGULAR AND SIN WAVE?...

COULD U INTERDUCE AN OSILATOR THAT MAKES TRIANGULAR AND SIN WAVE?

Explain the third group of 32 ascii character, Explain the Third Group of 3...

Explain the Third Group of 32 ASCII Character? The third group of 32 ASCII characters is set aside for the upper case alphabetic characters. The ASCII codes for the characters

Transformer box, a) Illustrate the Schematic diagram of the Transformer Box...

a) Illustrate the Schematic diagram of the Transformer Box used in the Practical Session b)  Calculate the output voltage on an Oscilloscope and determine its amplitude and freq

Explain ferrites and its uses in high frequency devices, Explain ferrites a...

Explain ferrites and its uses in high frequency devices. A group of magnetic alloys show the property of magnetisation that change, with percentage of various constituent atoms

Draw a relay construction diagram, Draw a relay construction diagram and br...

Draw a relay construction diagram and briefly explain the operation of a relay. Define the terms normally open and normally closed. Define the terms Set and Reset for relays.

Dc machine dynamic performance, Calculate the following for a 2 hp and a 20...

Calculate the following for a 2 hp and a 20 hp dc machine, each rated for 500 rpm. Use data from the Study Plan 1 data sheet, including "hot" armature resistance value for all cal

Explain bimetals, Explain Bimetals. Bimetals : It is made of two metal...

Explain Bimetals. Bimetals : It is made of two metallic strips of not like metal alloys with various coefficients of thermal expansion. At a specific temperature the strip wil

Transients in r-l-c circuits, Transients in R-L-C circuits: Scenario ...

Transients in R-L-C circuits: Scenario The Laplace transform is a valuable mathematical tool which allows the solution of difficult differential equations to be easily de

Analog circuit, What is the disadvantages of diodes as a series element in ...

What is the disadvantages of diodes as a series element in a clipper?

Monostable delay in matlab, how to implement monostable delay in matlab sim...

how to implement monostable delay in matlab simulink environment? [email protected]

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