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

What is message demodulation, Q. What is Message Demodulation? The majo...

Q. What is Message Demodulation? The major advantage of the conventional (standard) DSB AMsignal transmission is the ease with which the signal can be demodulated. Themessage s

Find the power factor and current of the machine, Two identical three-phase...

Two identical three-phase, 33-kV, wye connected, synchronous generators operating in parallel share equally a total load of 12 MW at 0.8 lagging power factor. The synchronous react

Asic based new product development project, Assume you are working for an S...

Assume you are working for an SME operating in the microelectronics sector. You are required to plan a new product development project. This is an internal project, so it does not

Define sampling at a very high frequency, Define Sampling at a Very High Fr...

Define Sampling at a Very High Frequency? By sampling at a very high frequency compared with the signal frequency, we can ensure that we do not miss important information. Anot

What is a coprocessor, What is a coprocessor? It is a specially designe...

What is a coprocessor? It is a specially designed microprocessor which take care of mathematical calculations including integer and floating point data .it is intended to work

Representation of negative number, Representation of Negative Number: ...

Representation of Negative Number: As  mentioned  in chapter 1 in 8085  negative  numbers are represented in 2 complement  form  and subtraction is  performed  using 2  comple

Determine power gain, Q. An antenna has an aperture area of 10 m 2 ,an ape...

Q. An antenna has an aperture area of 10 m 2 ,an aperture ef?ciency of 0.6, and negligible losses. If it is used at 5 GHz, determine: (a) Its power gain. (b) The maximum pow

Wheaton bridge with differential amplifier, when strain gauge design give a...

when strain gauge design give accurate measurement on zero and maximum 999kg but not 500kg

How to remove the LSB from the audio recording?, Using the audiorecorder() ...

Using the audiorecorder() function in MATLAB, make a recording of your voice. Use a sample rate of 8kHz, 16 bits per sample, and aim to record around 2 seconds worth. Quantize the

Arithmetic operations, Arithmetic Operations Various  types of arithmet...

Arithmetic Operations Various  types of arithmetic  operations like addition subtraction increment and  decrement  are performed in 8085 microprocessor. Generally in these  ope

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