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

Magnetic permeability and the b/h curve, Magnetic permeability and the B/H ...

Magnetic permeability and the B/H curve To measure the relationship between field strength H and flux density B for a material, a sample is made into a closed ring and a magne

Help needed in degree project, i have to design a project title "Edge deter...

i have to design a project title "Edge determining techniques for Low quality images in different lighting conditions and we use matlab for images simulation by changing different

Energy gap, Energy Gap Differentiating feature between the metals, ...

Energy Gap Differentiating feature between the metals, insulators, and semiconductors. Ascertains the absorption or emission spectra, the leakage current, and the intrin

Literature review - software defined radio, Literature Review - Software De...

Literature Review - Software Defined Radio In this section, first two methods to estimate signal to noise ratio (SNR) are reviewed and a few methods for modulation classificati

What do you mean by quartz crystals, Q. What do you mean by Quartz crystals...

Q. What do you mean by Quartz crystals? Synthetic quartz is composed of Silicon and Oxygen (Silicon Dioxide) and is cultured in autoclaves under high pressure and temperature.

Evaluate the four parameters of the hybrid model, Q. Show that any amplifie...

Q. Show that any amplifier represented by the model of Figure of the text can also be represented by themore general hybridmodel of Figure. Evaluate the four parameters of the hybr

Increment contents of register - inr instruction , Increment contents of Re...

Increment contents of Register Content  of register  are   incremented  by one and the  results  is stored  in the same  register R. It is an exceptional  case in which  accumu

Explain about the chrominance signal, a. Determine how color sync burst and...

a. Determine how color sync burst and H deflection sync vary in amplitude and frequency. Also explain the difference in timing among the 3.58 MHz color sync burst and 3.58 MHz chro

State the drawbacks of in band and out band voice signalling, a. Enlist the...

a. Enlist the benefits and drawbacks of in band and out band voice signalling? b. Describe Channel Associated mode, Channel Non-Associated mode and QuasiAssociated mode of commo

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