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

Explain loads - generation and absorption of reactive power, Explain Loads ...

Explain Loads - Generation and Absorption of Reactive Power A load at 0.95 power factor implies a reactive power demand of 0.33 kVAr per kW of power. When planning a network, i

Realize the following boolean expression, Q. Using a minimum number of NAND...

Q. Using a minimum number of NAND gates, realize the following Boolean expression: F(A,B,C) = ∑ mi (0, 3, 4, 5, 7).

Indirect addressing , Indirect Addressing In this  addressing  mo e al...

Indirect Addressing In this  addressing  mo e also ne  of the  operands is the  stored in the memory. The memory  address of the  operand  is specified  by the  register pair.

Discuss macro assembler directive, Discuss MACRO assembler directive wi...

Discuss MACRO assembler directive with example. MACRO: A sequence of instructions to that has a name is assigned is termed as macro. Macros and subroutines are the

Show transformer equivalent circuits, Q. Show Transformer equivalent circui...

Q. Show Transformer equivalent circuits? Transformers come in various sizes, from very small, weighing only a few ounces, to very large, weighing hundreds of tons. The ratings

What do you mean by antenna gain, Q. What do you mean by Antenna gain? ...

Q. What do you mean by Antenna gain? Antenna gain depends on both shape and size. Dipole antennas, commonly used at lower radio frequencies, are made up of a rod or wire of len

Determine the mechanism of generation of the voltage, (a) Identify the semi...

(a) Identify the semiconductor type in the above diagram. (b) Explain the mechanism of generation of the voltage V AB in the above diagram. (c) An experimental setup like th

Laplace transform, 1. Find the general solution y(t) of the ordinary di ere...

1. Find the general solution y(t) of the ordinary di erential equation where ω is a non-negative constant. (Consider the ω = 0 and ω > 0 cases separately). 2. Use Laplac

Explain resistivity, Explain Resistivity. Resistivity : Resistance R o...

Explain Resistivity. Resistivity : Resistance R of a wire containing cross-sectional area A and length L maintain the relationship, - R α L and R α 1/A; that is resulting R α

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