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

Describe about transmission-line voltage regulation, Q. Describe about tran...

Q. Describe about transmission-line voltage regulation? The transmission-line voltage regulation (TLVR) is the ratio of the per-phase voltage drop between the sending-end and r

Ht metering, HT Metering The following type of meters is generally use...

HT Metering The following type of meters is generally used for HT consumers: Trivector Meter, Bivector Meter, and Summation Meters. Trivector Meter

Illustrate in detail b-spline and cubic bezier surfaces, Define ruled surfa...

Define ruled surface and surface of revolution. Illustrate in detail B-spline and cubic Bezier surfaces with their important properties.

Components of plc - stepper motor , Components of PLC There are follow...

Components of PLC There are followings  three main  components of PLC : a.The power supply and rack. b.The central  processing  unit ( CPU) c.The input / output  (I/O

Change management in power distribution, Change Management in Power Distrib...

Change Management in Power Distribution: Organisational change might be described as an organisation-wide effort to augment the effectiveness of an organisation through str

Show the overflow of arithmetic operations, Q. Show the Overflow of arithme...

Q. Show the Overflow of arithmetic operations? A circumstance takes place because the magnitude of the results of arithmetic operations has become too large for the fixed word

Alternater, subranging ADC is a modification

subranging ADC is a modification

Show the load current is independent of zl, Q. A negative impedance convert...

Q. A negative impedance converter is used, as shown in Figure. Show that the load current i L is given by v in /R, which is independent of Z L . Note that since the load sees a cu

Pid controller design, PID controllers are popularly adopted in a wide rang...

PID controllers are popularly adopted in a wide range of industrial processes. The objective of this design practical is to study the way this PID controller changes system dynamic

Solid state, What are the fundamentals of solid states?

What are the fundamentals of solid states?

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