Two-Dimensional Transformations in Computer Graphics

ا
ل‍
‍ج‍
‍ا
م‍
‍ع‍
‍ة
 
ا
ل‍
‍م‍
‍س‍
‍ت‍
‍ن‍
‍صر
ي‍
‍ة
 
 
/
 
ك‍
‍ل‍
‍ي‍
‍ة
 
ا
ل‍
‍ع‍
‍ل‍
‍و
م
 
/
 
ق‍
‍س‍
‍م
 
ع‍
‍ل‍
‍و
م
 
ا
ل‍
‍ح‍
‍ا
س‍
‍و
ب
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ا
ل‍
‍م‍
‍ر
ح‍
‍ل‍
‍ة
 
ا
ل‍
‍ث‍
‍ا
ل‍
‍ث‍
‍ة
C
S
 
Dr. Farah Qais Al-khalidi
2020
 
Two Dimension Transformation
 
Fundamental to all 
computer graphics systems 
is the 
ability
 to 
simulate the
movement
 and the 
manipulation of objects 
in the plane. These processes are
described in terms of :
 
1. 
Translation
2.
 Scaling
3.
 Rotation
4.
 Reflection
5.
 Shearing
 
Our object 
is to 
describe
 these 
operations in mathematical form
 
suitable for
computer processing.
 
71
 
4
-
 
R
e
f
l
e
c
t
i
o
n
 
a
n
d
 
S
h
e
a
r
 
T
r
a
n
s
f
o
r
m
a
t
i
o
n
s
 
T
h
e
 
t
h
r
e
e
 
b
a
s
i
c
 
t
r
a
n
s
f
o
r
m
a
t
i
o
n
s
 
o
f
 
s
c
a
l
i
n
g
,
r
o
t
a
t
i
n
g
,
 
a
n
d
 
t
r
a
n
s
l
a
t
i
n
g
 
a
r
e
 
t
h
e
 
m
o
s
t
 
u
s
e
f
u
l
a
n
d
 
m
o
s
t
 
c
o
m
m
o
n
.
 
T
h
e
r
e
 
a
r
e
 
s
o
m
e
 
o
t
h
e
r
t
r
a
n
s
f
o
r
m
a
t
i
o
n
s
 
w
h
i
c
h
 
a
r
e
 
u
s
e
f
u
l
 
i
n
 
c
e
r
t
a
i
n
a
p
p
l
i
c
a
t
i
o
n
s
.
 
T
w
o
 
s
u
c
h
 
t
r
a
n
s
f
o
r
m
a
t
i
o
n
s
 
a
r
e
r
e
f
l
e
c
t
i
o
n
 
a
n
d
 
s
h
e
a
r
 
4.1 Reflections
 
A reflection is a transformation that produces a mirror image of an object relative to an
axis of reflection
.
We can choose an axis of reflection in the x-y plane or perpendicular to the x-y plane
 
Example  : 
Reflect the point P(3,2) in 
A- 
X axis; 
B- 
Y axis; 
C-
origin;
D-
line Y=X
;
 
4.2 Shearing
It produces a distortion of an object. There are two types of
shearing
 
1- 
Y- shearing
It transforms the point (X, Y) to the point (Xnew, Ynew) where
                       
Xnew= X
                      
Ynew= Y+Shy * X where       Shy≠0
 
 
 
 
 
Y shearing moves a vertical line up or down depending on the
sign of the shear factor Shy. A horizontal line is distorted into a
line with slop Shy. And vis versa.
 
2- X- shearing
It transforms the point (X, Y) to the point (Xnew, Ynew) where
                        Xnew= X+Shx * Y        where       Shx≠0
                        Ynew= Y
 
 
Example 
: 
Share the object (1,1) , (3,1) , (1,3) , (3,3) with 
a: 
Shx=2      
b: 
Shy=2
 
T
h
a
n
k
 
y
o
u
 
A
n
y
 
Q
u
e
s
t
i
o
n
s
 
?
Slide Note
Embed
Share

Explore the fundamentals of two-dimensional transformations in computer graphics, covering translation, scaling, rotation, reflection, and shearing operations. Learn how these mathematical operations enable the simulation of movement and manipulation of objects on the plane, essential for various computer graphics applications.

  • Computer Graphics
  • Transformation Operations
  • 2D Graphics
  • Reflection
  • Shearing

Uploaded on Oct 04, 2024 | 0 Views


Download Presentation

Please find below an Image/Link to download the presentation.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. Download presentation by click this link. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.

E N D

Presentation Transcript


  1. Dr. Farah Qais Al-khalidi 2020 CS / /

  2. Computer Graphics chapter 3 Two Dimension Transformation Fundamental to all computer graphics systems is the ability to simulate the movement and the manipulation of objects in the plane. These processes are described in terms of : 1. Translation 2. Scaling 3. Rotation 4. Reflection 5. Shearing Our object is to describe these operations in mathematical form suitable for computer processing. 71

  3. 4- Reflection and Shear Transformations The three basic transformations of scaling, rotating, and translating are the most useful and most common. There are some other transformations which are useful in certain applications. Two such transformations are reflection and shear

  4. 4.1 Reflections A reflection is a transformation that produces a mirror image of an object relative to an axis of reflection. We can choose an axis of reflection in the x-y plane or perpendicular to the x-y plane

  5. Example : Reflect the point P(3,2) in A- X axis; B- Y axis; C-origin; D-line Y=X;

  6. 4.2 Shearing It produces a distortion of an object. There are two types of shearing 1- Y- shearing It transforms the point (X, Y) to the point (Xnew, Ynew) where Xnew= X Ynew= Y+Shy * X where Shy 0 Y shearing moves a vertical line up or down depending on the sign of the shear factor Shy. A horizontal line is distorted into a line with slop Shy. And vis versa.

  7. 2- X- shearing It transforms the point (X, Y) to the point (Xnew, Ynew) where Xnew= X+Shx * Y where Shx 0 Ynew= Y

  8. Example : Share the object (1,1) , (3,1) , (1,3) , (3,3) with a: Shx=2 b: Shy=2

  9. Thank you Any Questions ?

More Related Content

giItT1WQy@!-/#giItT1WQy@!-/#giItT1WQy@!-/#giItT1WQy@!-/#giItT1WQy@!-/#giItT1WQy@!-/#giItT1WQy@!-/#