Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

graphics lecture notes part 1, Lecture notes of Graphic Design

graphics lecture notes part 1 not so useful

Typology: Lecture notes

2017/2018

Uploaded on 08/28/2018

sumanth-parepalli
sumanth-parepalli 🇮🇳

1 document

1 / 56

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Geometric Manipulation
Sibi Chakkaravarthy Sethuraman
Asst. Professor
Department of CSE
VIT-AP University, Amaravati
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38

Partial preview of the text

Download graphics lecture notes part 1 and more Lecture notes Graphic Design in PDF only on Docsity!

Geometric Manipulation

Sibi Chakkaravarthy Sethuraman Asst. Professor Department of CSE VIT-AP University, Amaravati

Module 2

Module No. 2 Geometric Manipulation 8 hours

  • Homogeneous coordinates
  • Affine transformations (translation, rotation, scaling, shear)
  • Concatenation
  • Matrix stacks and
  • Use of model view matrix in OpenGL for these operations

Basic transformations

  • (^) Translation
  • (^) Rotation
  • (^) Scaling

Translate a triangle where A(2,5), B (7,10), C(10,2) by 3

units in x and 4 units in y

  • (^) Obtain A’,B’,C’, where t (3,4) A’ = A+t A’ = + A’ =

All the transformation should be

treated in a consistent way

  • (^) Translation  addition
  • (^) Rotation and Scaling  multiplication

All the transformation should be

treated in a consistent way

  • (^) This can only happen, if all the points are expressed in homogeneous coordinates.
  • (^) Finally, in homogeneous coordinates, all the three transformation can be treated as multiplication.

Titan Xp

Homogeneous coordinates

  • (^) Represents coordinates in 2 dimensions with a vector
  • (^) Basically we are adding a 3 rd coordinate to every 2d point
  • (^) Now (x,y) become (x,y,w)

If (x,y) become (x,y,w), then what is

(x,y,w)

  • (^) (x,y,w) = (x/w,y/w)
  • (^) x,y implies 2d dimensional vector, now we are diving with 3rd^ coordinate point
  • (^) W cannot be 0 because (x,y,0)  infinity i.e., (x/0,y/0)
  • (^) (0,0,0) is not allowed 2,1, 2,1, 4,2,2 6,3,

Matrix representations of Translation,

rotation and scaling

Translation P’ = T+P = + Rotation P’ = R(θ).Pθ).P).P =. Scaling P’ = S.P =.

How to clip the book region?

How to clip the photo region?

Which image gives the face

context?

Affine transformation

  • (^) Till now we have learned about lot of subsets (rotation, scaling, translation) of transformation.
  • (^) Affine transformation are transformation which preserve the parallelism between the lines in a image/model.
  • (^) Consider an example, if you apply affine transformation in an image and when you compare the output of the affine transformed image with the input image. You can notice that the parallelism between the image (input & output) is preserved.