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

Cma complement accumulator instruction, CMA Complement Accumulator  Instru...

CMA Complement Accumulator  Instruction Complement the  contents of the accumulator  i e the   accumulator  al once are converted zeros  and all zeros  are converted to  ones.

Flex routing , Flex Routing : You can see that your labour will have bee...

Flex Routing : You can see that your labour will have been in vain unless you take steps to ensure that flexes are routed safely and well clear of possible sources of danger.

Projects, I want project ideas.

I want project ideas.

Distribution - salient features of nep, Distribution: This has been re...

Distribution: This has been recognized as the most critical segment of the electricity business. Here the NEP calls for proper restructuring of distribution utilities for achi

Equivalent circuit of unijunction transistor, Equivalent Circuit : Th...

Equivalent Circuit : The equivalent circuit of a UJT is shown in fig. The P - N junction represented in the emitter by a diode. Silicon bar being lightly doped has a high res

What are multistageand single stage networks, Q. What are multistageand sin...

Q. What are multistageand single stage networks? Compare strengths and weaknesses of each. OR List the key difference in single stage, two stage and three stage Networks. A

Explain the 8259 microprocessor, Explain the 8259 microprocessor. 82...

Explain the 8259 microprocessor. 8259: The 8259A adds 8 vectored priority encoded interrupts to the microprocessor. This can be expanded to 64 interrupt requests with us

Machine, function of a commutator in a DC motor

function of a commutator in a DC motor

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