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

Terminal of a battery having 10 cells connected in series, An external resi...

An external resistance of 10 Ω is linked to the terminal of a battery having 10 cells connected in series. Emf for every cells and internal resistance  is 1.5V and 0.2Ω . Find the

Data analysis in gis, Data analysis in GIS: Therefore, GIS consists of...

Data analysis in GIS: Therefore, GIS consists of the following: 1.  Database - for storage and retrieval of information. The database forms the foundation of the GIS syst

Determine the motor speed at a specific line current, Q. A dc series motor ...

Q. A dc series motor operates at 750 r/min with a line current of 100 A from the 250-V mains. Its armature-circuit resistance is 0.15  and its series-field resistance is 0.1 . As

Reflection and retraction in cables and their calculations, How do I calcul...

How do I calculate the line-cable and cable-line values of reflection and refraction coordinates?

Determine the full load voltage regulation, A 3 phase 60 hertz induction m...

A 3 phase 60 hertz induction motor has 8 poles and operates with a slip of .05 for a certain load. Compute in r.p.m. the (a)speed of the rotor with respect to the stator, (b)spe

Opimization, I want to know latest optimization technique and algorithm for...

I want to know latest optimization technique and algorithm for modal reduction and pid controller design

Flag registers , Flag Registers Flag  register  is also an  8 bit  reg...

Flag Registers Flag  register  is also an  8 bit  register. Out of 8 bit  five are  defined as flags to indicate status  of the accumulator  hence it is also called status reg

Hardware requirement - gis technology, Hardware Requirement- Se...

Hardware Requirement- Server of adequate sizing for enterprise-wide deployment for storing maps and geospatial data. Application server and web server. Desktops

Sim set interrupt mask instruction, SIM Set Interrupt Mask Instruction ...

SIM Set Interrupt Mask Instruction This  instruction is used  to mask unmask 8085 interrupts and send  serial  output  data. The accumulator  is used to load the  require data

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