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

Digital electronics, Design a 4-bit synchronous counter that has the follow...

Design a 4-bit synchronous counter that has the following sequence: 0 ?4? 9?12 ? 14 ?15 and repeat using: i) JK FF ii)D FF

Microcomputer - introduction to microprocessors , Microcomputer A micr...

Microcomputer A microprocessor is a  general purpose central processing  until of a digital  computer system. It has  arithmetic  logical unit  control circuits and a set of r

Modern physics, jsidjsiod dkndkdisd dknssbs bsjbabd asj u dhihf ujojdsajfs...

jsidjsiod dkndkdisd dknssbs bsjbabd asj u dhihf ujojdsajfs sjssaidhsidw idgsdusadidjwap ewkeowr krwnrh bwvr [ wrj wrj 1 nnwoi khiwrjw ko e woewerijr rjwr jr rjhpr

Fm broadcast system with standard emphasis, Q. A voice message with W f = ...

Q. A voice message with W f = 2π(3×10 3 ) rad/s and Wrms = 2π(1 × 10 3 ) rad/s is transmitted over an FM broadcast system with standard emphasis. and compare the improvements due

Equivalent circuit of a polyphase induction machine, Equivalent Circuit of ...

Equivalent Circuit of a Polyphase Induction Machine The inductionmachinemay be regarded as a generalized transformer inwhich energy is converted and electric power is transferr

What are the functions of bus interface unit in 8086, What are the function...

What are the functions of bus interface unit (BIU) in 8086? (a) Get instructions from memory. (b) Get data from memory and I/O ports. (c) Write data to memory and I/O por

Critical rate of rise of voltage - thyristor , Critical Rate of Rise of Vol...

Critical Rate of Rise of Voltage It  depends on  the junction temperature higher  the junction  temperature lower  the critical rate of  rise of  voltage. It is also known  as

What are the different types of patrolling, Q. What are the different types...

Q. What are the different types of Patrolling? When these are adopted? What are points to be considered while preparing the charts? Ans.- Types of Patrolling. 1. Keyman's

Explain jmp instruction and call instruction., Explain the difference betwe...

Explain the difference between a JMP instruction and CALL instruction. A JMP instruction permanently alters the program counter. A CALL instruction leaves information on the st

Find the diameter of a circular waveguide, Q Find the diameter of a circula...

Q Find the diameter of a circular waveguide that will have a lower cutoff frequency of 10 GHz and also specify its largest usable frequency.

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