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

PLC and Scada, I needed a PLC and SCADA assignment just the program and it ...

I needed a PLC and SCADA assignment just the program and it has to be done in simatic flexible and step 7 software!

Processing and establishing data in end to end layers, Q. Explain how prese...

Q. Explain how presentation layer helps in processing and establishing data in End to End layers. Ans: The purpose of presentation layer is to represent information to commu

Induction motor, principle and operation of a 3phace induction motor

principle and operation of a 3phace induction motor

Second generation 1954- 1964- history of computer , Second Generation ( 195...

Second Generation ( 1954- 1964) After the invention of semiconductor devices mainly transistors size of computer s was reduced a lot computing power increased reliability was

Button cells, what is a button cells and how is it used on a low current el...

what is a button cells and how is it used on a low current electronic circuit

Indicate the condition of the overflow and carry bits, Q. Do the following ...

Q. Do the following operations with 8 bit bytes, and indicate the condition of the overflow and carry bits. a) 10111011 + 00000011 b) 11101101 + 11111001 c) 11011011 + 110

Fixed bias, Fixed bias (base bias): Diagram: Fixed bias (Base ...

Fixed bias (base bias): Diagram: Fixed bias (Base bias) This type of biasing is also known as  base bias . In the instance above figure, the single power source (

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

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