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

How typical dma controller can be interfaced to 8086/8085, Show how a typic...

Show how a typical DMA controller can be interfaced to an 8086/8085 based maximum mode system. For 8088 in maximum mode: The RQ/GT1 and RQ/GT0 pins are utilized to issue DMA

Gto - gate turn off, GTO ( Gate Turn Off) GTO stands for gate  turn o...

GTO ( Gate Turn Off) GTO stands for gate  turn off  thyristor . it is four layer  PNPN  device. It can be  triggered into conduction like a conventional thyristor  by a pulse

List few applications of microprocessor-based system, List few applications...

List few applications of microprocessor-based system. It is used: i. For measurements, display and control of current, voltage, temperature, pressure, etc. ii. For traff

Find the maximum probable percentage error, Q. A current of 65 A is measure...

Q. A current of 65 A is measured with an analog ammeter having a probable error of ±0.5% of full scale of 100 A. Find the maximum probable percentage error in the measurement.

Define series var compensation, Define Series VAr Compensation? For ver...

Define Series VAr Compensation? For very long transmission lines, the inductive reactance of the line becomes so high that not much power can be transmitted through the line, s

Kpi for second stage implementation, KPI for Second Stage Implementation ...

KPI for Second Stage Implementation These KPIs deal along with the quality of the relationship among a supplier and a user (customer). They are significant to potential custom

Explain the delay model, Explain the delay model based on logical effort of...

Explain the delay model based on logical effort often used in estimating delays in logic cells. Hence use the model to predict the delay of a 4-input NOR logic cell with a 3 times

Wien bridge, How i prepare a wien bridge for my college assignemen?

How i prepare a wien bridge for my college assignemen?

Find resistance of the armature circuit and field circuit, When delivering ...

When delivering rated load a 10-kW, 230-V self excited shunt generator has an armature-circuit voltage drop that is 6% of the terminal voltage and a shunt-field current equal to 4%

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