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

Define and explain numerical aperture, Define and explain Numerical apertur...

Define and explain Numerical aperture? Figure shown below shows an incident ray to the fibre, The light bends at two interfaces, one at the air- core interface and the

Potentiometer, how can yuo calculate voltage,curent basing on the meter bri...

how can yuo calculate voltage,curent basing on the meter bridge?

Simulate a diode application circuit using multisim ewb, a. Simulate a diod...

a. Simulate a diode application circuit using Multisim EWB.  Compare calculated and simulated results Each student must choose one of the following circuits from question 1 (Ref

Determine the advantages of e-nrz over nrz, 1. A modi?ed NRZ code known as ...

1. A modi?ed NRZ code known as enhanced-NRZ (E-NRZ) operates on 7-bit words; invert- ing bits 2,3,6 and 7; and adding one parity bit to each word. The parity bit is chosen to make

Help , What''s hysteresis ?

What''s hysteresis ?

How is segmentation implemented in typical microprocessors, How is segmenta...

How is segmentation implemented in typical microprocessors? The first advantage is as memory segmentation has is that only 16 bit registers are needed both to store segment bas

Karnaugh map, how can be a karnaugh map of the count of sequence: 0-5-6-9-1...

how can be a karnaugh map of the count of sequence: 0-5-6-9-11-14

Full wave rectifier with filter, what is the theory for full wave rectifier...

what is the theory for full wave rectifier with c filter

Lda load accumulator direct instruction, LDA  Load Accumulator Direct Inst...

LDA  Load Accumulator Direct Instruction This instruction is used to copy  data from  memory whose  address is directly specified in the  instruction to th e accumulator. The i

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