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

Power factor correction, i want to prodused domestic power factor correctio...

i want to prodused domestic power factor correction like industial

Circuit, Aplication of resonance in different divices

Aplication of resonance in different divices

., ABOUT ASSIGNMENT ON MAGNETIC INDUCTION NEAR A LONG WIRE

ABOUT ASSIGNMENT ON MAGNETIC INDUCTION NEAR A LONG WIRE

Filtering, Filtering  (i) Write an m-file "mymedian.m" which will ta...

Filtering  (i) Write an m-file "mymedian.m" which will take an image and filter size and perform median filtering. Display input and output image. Use  help median fun

Sinusoidal analysis by using mesh equations and matlab, This example is con...

This example is concerned with steady-state sinusoidal analysis by using mesh equations and MATLAB. Let us consider the circuit shown in Figure and find the input impedance at the

Role of stakeholders in distribution reform, Role of StakeHolders in Distri...

Role of StakeHolders in Distribution Reform These challenges could be met only by comprehensive reforms in the distribution sector. Earlier, you have studied about the roles o

Importance of voltage quality - kpi, Importance of Voltage Quality - KPI ...

Importance of Voltage Quality - KPI The voltage quality has a growing economic impact on the customer and the network operators. The costs related along with "lack of quality"

Zener diodes, At what value of electric field at a junction does zener brea...

At what value of electric field at a junction does zener breakdown takes place

Calculate the energy consumed, A typical 12-V automobile battery, storing a...

A typical 12-V automobile battery, storing about 5 megajoules (MJ) of energy, is connected to a 4-A headlight system. (a) Find the power delivered to the headlight system. (b

Oscillator, how to design colpitts oscillator?

how to design colpitts oscillator?

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