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

Microprocessors, Microprocessors: We have learnt 8085 family of microp...

Microprocessors: We have learnt 8085 family of microprocessors. Initially, we understand basic components of a computer, 8085 microprocessor architecture and assembly language

Abrasive jet machining system, Describe the effect of following parameters ...

Describe the effect of following parameters on working rate and accuracy of material removal in AJM. (i) Grain size (ii) Stand off distance (iii) Jet velocity. Draw sch

For zero flag - return instructions, For zero flag  RZ ( Return on Z...

For zero flag  RZ ( Return on Zero) and RNZ ( Return on no zero) Instructions RZ  returns from the subroutine to the  calling  program, if zero flag  is set  (Z= 1). The

What is the impulse response of this filter, Consider the filter h[n,m] des...

Consider the filter h[n,m] describing the input-output relationship below: g[n,m]=f[n-1,m]+ f[n,m-1]+ f[n+1,m]+ f[n,m+1] a)  What is the impulse response of this filter? b

Find out control voltage, Consider the network shown in Figure containing a...

Consider the network shown in Figure containing a voltage-controlled source producing the controlled current i c = gv, where g is a constant with units of conductance, and the con

Find v and i , Find V and I in the figure given below using ideal diode mod...

Find V and I in the figure given below using ideal diode model

Calculate the rated load current of machine, A 500 MVA, 33kv, three phase s...

A 500 MVA, 33kv, three phase steam turbine generator has a synchronous reactance of 1.6 p.u. It delivers a rated output at 0.8 power factor lagging. Calculate (a) The synchronou

Frequency modulation, 1. Frequency Modulation theory and its explanation ...

1. Frequency Modulation theory and its explanation 2. FM transmitter schematic, tests results and measurements 3. Amplifier and Oscillator circuit explanation and calculation

Can you explain noninverting amplifier, Q. Can you explain Noninverting Amp...

Q. Can you explain Noninverting Amplifier? It is called "noninverting" because there is no sign inversion. A typical circuit is shown in Figure. With a finite op-amp gain Ao,

Explain the parallel in - parallel out shift registers, Explain the Paralle...

Explain the Parallel In - Parallel Out Shift Registers? For "parallel in - parallel out" shift registers all data bits show on the parallel outputs immediately following the si

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