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

Superposition theroem, what are the limitations of superposition theroem

what are the limitations of superposition theroem

Find the transfer function of a linear system, Q. The response y(t) of a li...

Q. The response y(t) of a linear system to an excitation x(t) = e -2t u(t) is y(t) = (t + 2)e -t u(t). Find the transfer function.

Cost of initial investment, Based upon the following inputs, propose the op...

Based upon the following inputs, propose the optimal course of action for this venture: Probability of success: 30%; probability of failure: 30%; base case probability: 40%

Transistor in the common base configuration, Draw the circuit of transistor...

Draw the circuit of transistor in the common base configuration. Draw the Active, saturation and cut-off region. List the characteristics of Ideal Op-Amp. Sketch the pin diagram

Explain data addressing modes available in microprocessors, Explain data ad...

Explain data addressing modes available in microprocessors? Data addressing modes available in microprocessors are given below: Direct Mode Indirect Mode Register Dire

When mt2 and gate is negative, when MT 2 and Gate  is Negative In th...

when MT 2 and Gate  is Negative In this case gate  current  flows  through P 2 N 3 junction. Junction N 1 P 2 forward  biased hence the triac  starts  conduction through  P

Compareson, compear copper and aluminum conductore in termes of price ,weig...

compear copper and aluminum conductore in termes of price ,weight,resistance for equal length .

Operation of a biased clipper and combination clipper, Q What is a clipper?...

Q What is a clipper? Describe the operation of a biased clipper and combination clipper. The circuit with which the waveform is shaped by removing (or clipping) a portion of th

Phase shifter, Hi, I just finish writing my project literature review and ...

Hi, I just finish writing my project literature review and my supervisory asked me to add one part. This part is about Phase Shift. How phase shifters work? In Particular How the

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