# 6.2 Vector graphics: two-dimensional image transformations

 Page 1 / 1
This module is part of the collection, A First Course in Electrical and Computer Engineering . The LaTeX source files for this collection were created using an optical character recognition technology, and because of this process there may be more errors than usual. Please contact us if you discover any errors.

We now turn our attention to operating on the point matrix $G$ to produce the desired transformations. We will consider

1. rotation
2. scaling
3. and translation (moving) of objects
. Rotation and scaling are done by matrix multiplication with a square transformation matrix A. If we call thetransformed point matrix ${G}_{new}$ , we have

$\left[{G}_{new}\right]=\left[A\right]\left[G\right].$

We call $A$ a matrix operator because it “operates” on $G$ through matrix multiplication. In contrast, translation must be done by matrix addition.

In a later section you will see that it is advantageous to perform all operations by matrix operators and that we can modify our image representation to allow translation to be done with a matrix operator like rotation andscaling. We will call the modified representation homogeneous coordinates .

Rotation. We saw in the chapter on linear algebra that the matrix that rotates points by an angle $\theta$ is

$A=R\left(\theta \right)=cos\theta -sin\theta sin\theta cos\theta .$

When applied to the point matrix G , this matrix operator rotates each point by the angle θ , regardless of the number of points.

We can use the rotation matrix to do the single point rotation of the example from "Vector Graphics: Introduction" . We have a point matrix consisting of only the point $\left(3,1\right)$ :

$G=31.$

The necessary transformation matrix is $R\left(\theta \right)$ with $\theta =\frac{\pi }{6}$ Then the rotated point is given by

${G}_{new}=R\left(\frac{\pi }{6}\right)G=cos\left(\frac{\pi }{6}\right)-sin\left(\frac{\pi }{6}\right)sin\left(\frac{\pi }{6}\right)cos\left(\frac{\pi }{6}\right)31\approx 2.102.37·$

Scaling. An object can be enlarged or reduced in each dimension inde- pendently. The matrix operator that scales an image by a factor of ${s}_{x}$ along the x-axis and ${s}_{y}$ along the y-axis is

$A=S\left({s}_{x},{s}_{y}\right)={s}_{x}00{s}_{y}.$

Most often we take ${s}_{x}={s}_{y}$ to scale an image by the same amount in both dimensions.

Translation. An object can be moved by adding a constant vector b to every point in the object. For example, $b=20-5$ will move an object 20 units to the right and 5 units down. We can write this in terms of the point matrix as

${G}_{new}=G+b{1}^{T}$

where 1 (read “the one-vector”) is a vector of n l's:

$1=11⋮1.$

In MATLAB, 1 may be obtained by. The outer product of $b$ with 1 in Equation 7 simply serves to make $n$ copies of $b$ so that one copy can be added to each point in $G$ . ones(n,1)

Is there any normative that regulates the use of silver nanoparticles?
what king of growth are you checking .?
Renato
What fields keep nano created devices from performing or assimulating ? Magnetic fields ? Are do they assimilate ?
why we need to study biomolecules, molecular biology in nanotechnology?
?
Kyle
yes I'm doing my masters in nanotechnology, we are being studying all these domains as well..
why?
what school?
Kyle
biomolecules are e building blocks of every organics and inorganic materials.
Joe
anyone know any internet site where one can find nanotechnology papers?
research.net
kanaga
sciencedirect big data base
Ernesto
Introduction about quantum dots in nanotechnology
what does nano mean?
nano basically means 10^(-9). nanometer is a unit to measure length.
Bharti
do you think it's worthwhile in the long term to study the effects and possibilities of nanotechnology on viral treatment?
absolutely yes
Daniel
how to know photocatalytic properties of tio2 nanoparticles...what to do now
it is a goid question and i want to know the answer as well
Maciej
Abigail
for teaching engĺish at school how nano technology help us
Anassong
Do somebody tell me a best nano engineering book for beginners?
there is no specific books for beginners but there is book called principle of nanotechnology
NANO
what is fullerene does it is used to make bukky balls
are you nano engineer ?
s.
fullerene is a bucky ball aka Carbon 60 molecule. It was name by the architect Fuller. He design the geodesic dome. it resembles a soccer ball.
Tarell
what is the actual application of fullerenes nowadays?
Damian
That is a great question Damian. best way to answer that question is to Google it. there are hundreds of applications for buck minister fullerenes, from medical to aerospace. you can also find plenty of research papers that will give you great detail on the potential applications of fullerenes.
Tarell
what is the Synthesis, properties,and applications of carbon nano chemistry
Mostly, they use nano carbon for electronics and for materials to be strengthened.
Virgil
is Bucky paper clear?
CYNTHIA
carbon nanotubes has various application in fuel cells membrane, current research on cancer drug,and in electronics MEMS and NEMS etc
NANO
so some one know about replacing silicon atom with phosphorous in semiconductors device?
Yeah, it is a pain to say the least. You basically have to heat the substarte up to around 1000 degrees celcius then pass phosphene gas over top of it, which is explosive and toxic by the way, under very low pressure.
Harper
Do you know which machine is used to that process?
s.
how to fabricate graphene ink ?
for screen printed electrodes ?
SUYASH
What is lattice structure?
of graphene you mean?
Ebrahim
or in general
Ebrahim
in general
s.
Graphene has a hexagonal structure
tahir
On having this app for quite a bit time, Haven't realised there's a chat room in it.
Cied
what is biological synthesis of nanoparticles
how did you get the value of 2000N.What calculations are needed to arrive at it
Privacy Information Security Software Version 1.1a
Good
Got questions? Join the online conversation and get instant answers!