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

DECISIEN FEEDBACK, Do you provide me matlab code for comparison the perfor...

Do you provide me matlab code for comparison the performance of decision feedback equalizer over MLSE

Resultant force, State and prove parallelogram law of forces and explain i...

State and prove parallelogram law of forces and explain it''s applications

Explain current-to-voltage amplifier, Q. Explain Current-to-Voltage Amplifi...

Q. Explain Current-to-Voltage Amplifier? The basic circuit is shown in Figure, which is similar to that of an inverting amplifier. The - input is connected directly to a curren

Obtain an expression for the closed-loop transfer function, Q. A noninverti...

Q. A noninverting op-amp circuit and its closed-loop representation are given in Figure. Obtain an expression for the closed-loop transfer function H(ω) = Y (ω)/X(ω) and comment on

Matlab codes for transportation problem, i need matlab codes for the minimu...

i need matlab codes for the minimum cell cost method to start the initial feasible solution and the stepping stone method to find the optimum value

Write a note on clampers, Q. Write a note on clampers ? Clamper is a ci...

Q. Write a note on clampers ? Clamper is a circuit that "clamps" a signal to a different dc level. The different types of clampers are positive negative and biased clampers.

Magnetic permeability and the b/h curve, Magnetic permeability and the B/H ...

Magnetic permeability and the B/H curve To measure the relationship between field strength H and flux density B for a material, a sample is made into a closed ring and a magne

Traffic light display, Traffic Light Display Design a three color LED sy...

Traffic Light Display Design a three color LED system with the following times for each LED: Duration of Green signal : 16s Duration of Yellow signal : 1s Duration of R

Explain effect of impurity on conductivity of semiconductor, Explain the ef...

Explain the effect of impurity on the conductivity of a semiconductor. To form a semi-conductor conductive, a small amount of appropriate impurity is added. This is then termed

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