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

When mt2 is negative and g is positive , When MT 2 is Negative  and g is ...

When MT 2 is Negative  and g is positive In this  case  gate  current  flows  through  junctions P 2 N 2   electrons  are injected from  N 2   layer to  P 2   a result  junct

Define explicit - implicit and parametric representations, Give an industri...

Give an industrial look at modern CAM/CAD. Define explicit, implicit and parametric representations. What are the basic advantages of parametric representations over the impli

Explain quantizing analog signals, Explain Quantizing Analog Signals? ...

Explain Quantizing Analog Signals? A common analog-to-digital conversion pipeline contains a spectrum limiter (a simple low-pass or bandpass filter), a sample and hold circuit

Different types and uses of delay line in cro, Q.   What are the different ...

Q.   What are the different types and uses of delay line in CRO? OR Why is a delay line used in the vertical section of the oscilloscope? Sol. All electronic circui

Explain the suitability of aluminium, Explain the suitability of aluminium ...

Explain the suitability of aluminium  that is used as electrical conducting materials. Aluminium : Conductors are appropriate for ambient and very high temperature. Use of alu

Give the operating modes of 8259a, Give the operating modes of 8259a? (...

Give the operating modes of 8259a? (a) Automatic Rotation (b) End of Interrupt (EOI) (c) Fully Nested Mode  (d) Automatic EOI Mode (e) Specific Rotation (f) Edge

Three phase ac circuit, Three Phase AC Circuit: Alternating circuits t...

Three Phase AC Circuit: Alternating circuits thus far discussed have single phase supply system and it's satisfactory for domestic application as light, fan and heating, etc.

Transfer function of radiator, hi, i want to know the transfer function of ...

hi, i want to know the transfer function of a radiator

Explain the operation of the counter, Q. Figure shows the mod-8 counter whi...

Q. Figure shows the mod-8 counter which counts from 010 to 710 before resetting. Explain the operation of the counter and sketch the timing diagram.

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