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

Find the initial current, In the circuit shown below, the capacitor initial...

In the circuit shown below, the capacitor initially has a voltage across it 4 Volts (at t = 0). a.  Write down the expression for V C (t) when the switch is closed. b.  Writ

Digital control system, block diagram of digital control system and explain...

block diagram of digital control system and explain each block

Pulsed OFDM odulation for ultrawideband communication, i have selected this...

i have selected this paper as my semester project according to teacher we have to fully implement it. i need its full written matlab code simulink model and results. can you help m

Define embedded system according to wayne wolf and todd, Define the term em...

Define the term embedded system according to Wayne Wolf and Todd. According to Wayne Wolf: This is any device which includes a programmable computer but is not itself intend

Description of capacitor, Description of Capacitor r A capacitor has cap...

Description of Capacitor r A capacitor has capacitance of one Farad when current charging of one Ampere flows in one second. This process causing a transferring of one volt in p

Effects of an increase in real national income, Q. What will be the...

Q. What will be the effects of an increase in real national income on the interest rate? Answer: An enhance in real national income will increase the interest rate. If

Features and usage of peripheral component interconnect bus, Discuss featur...

Discuss features and usage of Peripheral Component Interconnect bus. Peripheral Component Interconnect bus has plug as well as play characteristics and the capability to func

Explain numeric processor 8087, Explain numeric processor 8087. Numeric...

Explain numeric processor 8087. Numeric processor 8087 is a coprocessor which has been intended to work under the control of the processor 8086 and offer it additional numeric

Define the time constant of the circuit, A coil of inductance 0.04 H and re...

A coil of inductance 0.04 H and resistance 10? is connected to a 120 V, d.c. supply. Verify (a)  The final value of current     (b)  The time constant of the circuit (c)

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