1) 2D geometric transformations include translations, scaling, and rotations. They can be represented by transformation matrices.
2) Translation moves an object by adding offsets to x and y coordinates. It can be represented by a 3x3 matrix with 1s on the diagonal and offsets as the last column.
3) Scaling enlarges or shrinks an object by multiplying x and y coordinates by scaling factors. It can be represented by a 2x2 diagonal matrix with scaling factors.
4) Rotation rotates an object by applying a trigonometric transformation to x and y coordinates. It can be represented by a 2x2 rotation matrix containing cosine and sine of the rotation angle.
1.THE USER DIALOGUE
2.INPUT OF GRAPHICS DATA
3.INTERACTIVE PICTURE CONSTRUCTION TECHNIQUE
4.THREE DIMENSIONAL CONCEPT
5. 3D DISPLAY METHODS
6. 3D PACKAGES
This slide contain description about the line, circle and ellipse drawing algorithm in computer graphics. It also deals with the filled area primitive.
A frequently used class of objects are the quadric surfaces, which are described with second-degree equations (quadratics). They include spheres, ellipsoids, tori, paraboloids, and hyperboloids.
Quadric surfaces, particularly spheres and ellipsoids, are common elements of graphics scenes
Transformation:
Transformations are a fundamental part of the computer graphics. Transformations are the movement of the object in Cartesian plane.
Types of transformation
Why we use transformation
3D Transformation
3D Translation
3D Rotation
3D Scaling
3D Reflection
3D Shearing
An illumination model, also called a lighting model and sometimes referred to as a shading model, is used to calculate the intensity of light that we should see at a given point on the surface of an object.
1.THE USER DIALOGUE
2.INPUT OF GRAPHICS DATA
3.INTERACTIVE PICTURE CONSTRUCTION TECHNIQUE
4.THREE DIMENSIONAL CONCEPT
5. 3D DISPLAY METHODS
6. 3D PACKAGES
This slide contain description about the line, circle and ellipse drawing algorithm in computer graphics. It also deals with the filled area primitive.
A frequently used class of objects are the quadric surfaces, which are described with second-degree equations (quadratics). They include spheres, ellipsoids, tori, paraboloids, and hyperboloids.
Quadric surfaces, particularly spheres and ellipsoids, are common elements of graphics scenes
Transformation:
Transformations are a fundamental part of the computer graphics. Transformations are the movement of the object in Cartesian plane.
Types of transformation
Why we use transformation
3D Transformation
3D Translation
3D Rotation
3D Scaling
3D Reflection
3D Shearing
An illumination model, also called a lighting model and sometimes referred to as a shading model, is used to calculate the intensity of light that we should see at a given point on the surface of an object.
Water scarcity is the lack of fresh water resources to meet the standard water demand. There are two type of water scarcity. One is physical. The other is economic water scarcity.
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdffxintegritypublishin
Advancements in technology unveil a myriad of electrical and electronic breakthroughs geared towards efficiently harnessing limited resources to meet human energy demands. The optimization of hybrid solar PV panels and pumped hydro energy supply systems plays a pivotal role in utilizing natural resources effectively. This initiative not only benefits humanity but also fosters environmental sustainability. The study investigated the design optimization of these hybrid systems, focusing on understanding solar radiation patterns, identifying geographical influences on solar radiation, formulating a mathematical model for system optimization, and determining the optimal configuration of PV panels and pumped hydro storage. Through a comparative analysis approach and eight weeks of data collection, the study addressed key research questions related to solar radiation patterns and optimal system design. The findings highlighted regions with heightened solar radiation levels, showcasing substantial potential for power generation and emphasizing the system's efficiency. Optimizing system design significantly boosted power generation, promoted renewable energy utilization, and enhanced energy storage capacity. The study underscored the benefits of optimizing hybrid solar PV panels and pumped hydro energy supply systems for sustainable energy usage. Optimizing the design of solar PV panels and pumped hydro energy supply systems as examined across diverse climatic conditions in a developing country, not only enhances power generation but also improves the integration of renewable energy sources and boosts energy storage capacities, particularly beneficial for less economically prosperous regions. Additionally, the study provides valuable insights for advancing energy research in economically viable areas. Recommendations included conducting site-specific assessments, utilizing advanced modeling tools, implementing regular maintenance protocols, and enhancing communication among system components.
Cosmetic shop management system project report.pdfKamal Acharya
Buying new cosmetic products is difficult. It can even be scary for those who have sensitive skin and are prone to skin trouble. The information needed to alleviate this problem is on the back of each product, but it's thought to interpret those ingredient lists unless you have a background in chemistry.
Instead of buying and hoping for the best, we can use data science to help us predict which products may be good fits for us. It includes various function programs to do the above mentioned tasks.
Data file handling has been effectively used in the program.
The automated cosmetic shop management system should deal with the automation of general workflow and administration process of the shop. The main processes of the system focus on customer's request where the system is able to search the most appropriate products and deliver it to the customers. It should help the employees to quickly identify the list of cosmetic product that have reached the minimum quantity and also keep a track of expired date for each cosmetic product. It should help the employees to find the rack number in which the product is placed.It is also Faster and more efficient way.
Saudi Arabia stands as a titan in the global energy landscape, renowned for its abundant oil and gas resources. It's the largest exporter of petroleum and holds some of the world's most significant reserves. Let's delve into the top 10 oil and gas projects shaping Saudi Arabia's energy future in 2024.
Hierarchical Digital Twin of a Naval Power SystemKerry Sado
A hierarchical digital twin of a Naval DC power system has been developed and experimentally verified. Similar to other state-of-the-art digital twins, this technology creates a digital replica of the physical system executed in real-time or faster, which can modify hardware controls. However, its advantage stems from distributing computational efforts by utilizing a hierarchical structure composed of lower-level digital twin blocks and a higher-level system digital twin. Each digital twin block is associated with a physical subsystem of the hardware and communicates with a singular system digital twin, which creates a system-level response. By extracting information from each level of the hierarchy, power system controls of the hardware were reconfigured autonomously. This hierarchical digital twin development offers several advantages over other digital twins, particularly in the field of naval power systems. The hierarchical structure allows for greater computational efficiency and scalability while the ability to autonomously reconfigure hardware controls offers increased flexibility and responsiveness. The hierarchical decomposition and models utilized were well aligned with the physical twin, as indicated by the maximum deviations between the developed digital twin hierarchy and the hardware.
Welcome to WIPAC Monthly the magazine brought to you by the LinkedIn Group Water Industry Process Automation & Control.
In this month's edition, along with this month's industry news to celebrate the 13 years since the group was created we have articles including
A case study of the used of Advanced Process Control at the Wastewater Treatment works at Lleida in Spain
A look back on an article on smart wastewater networks in order to see how the industry has measured up in the interim around the adoption of Digital Transformation in the Water Industry.
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...Amil Baba Dawood bangali
Contact with Dawood Bhai Just call on +92322-6382012 and we'll help you. We'll solve all your problems within 12 to 24 hours and with 101% guarantee and with astrology systematic. If you want to take any personal or professional advice then also you can call us on +92322-6382012 , ONLINE LOVE PROBLEM & Other all types of Daily Life Problem's.Then CALL or WHATSAPP us on +92322-6382012 and Get all these problems solutions here by Amil Baba DAWOOD BANGALI
#vashikaranspecialist #astrologer #palmistry #amliyaat #taweez #manpasandshadi #horoscope #spiritual #lovelife #lovespell #marriagespell#aamilbabainpakistan #amilbabainkarachi #powerfullblackmagicspell #kalajadumantarspecialist #realamilbaba #AmilbabainPakistan #astrologerincanada #astrologerindubai #lovespellsmaster #kalajaduspecialist #lovespellsthatwork #aamilbabainlahore#blackmagicformarriage #aamilbaba #kalajadu #kalailam #taweez #wazifaexpert #jadumantar #vashikaranspecialist #astrologer #palmistry #amliyaat #taweez #manpasandshadi #horoscope #spiritual #lovelife #lovespell #marriagespell#aamilbabainpakistan #amilbabainkarachi #powerfullblackmagicspell #kalajadumantarspecialist #realamilbaba #AmilbabainPakistan #astrologerincanada #astrologerindubai #lovespellsmaster #kalajaduspecialist #lovespellsthatwork #aamilbabainlahore #blackmagicforlove #blackmagicformarriage #aamilbaba #kalajadu #kalailam #taweez #wazifaexpert #jadumantar #vashikaranspecialist #astrologer #palmistry #amliyaat #taweez #manpasandshadi #horoscope #spiritual #lovelife #lovespell #marriagespell#aamilbabainpakistan #amilbabainkarachi #powerfullblackmagicspell #kalajadumantarspecialist #realamilbaba #AmilbabainPakistan #astrologerincanada #astrologerindubai #lovespellsmaster #kalajaduspecialist #lovespellsthatwork #aamilbabainlahore #Amilbabainuk #amilbabainspain #amilbabaindubai #Amilbabainnorway #amilbabainkrachi #amilbabainlahore #amilbabaingujranwalan #amilbabainislamabad
Immunizing Image Classifiers Against Localized Adversary Attacksgerogepatton
This paper addresses the vulnerability of deep learning models, particularly convolutional neural networks
(CNN)s, to adversarial attacks and presents a proactive training technique designed to counter them. We
introduce a novel volumization algorithm, which transforms 2D images into 3D volumetric representations.
When combined with 3D convolution and deep curriculum learning optimization (CLO), itsignificantly improves
the immunity of models against localized universal attacks by up to 40%. We evaluate our proposed approach
using contemporary CNN architectures and the modified Canadian Institute for Advanced Research (CIFAR-10
and CIFAR-100) and ImageNet Large Scale Visual Recognition Challenge (ILSVRC12) datasets, showcasing
accuracy improvements over previous techniques. The results indicate that the combination of the volumetric
input and curriculum learning holds significant promise for mitigating adversarial attacks without necessitating
adversary training.
3. 2D Translations.
2D Scaling
2D Rotation
2D shearing
Matrix Representation of 2D transformation
Formula for Transformation
Matrix of Transformed object= Matrix of object in 2D * Matrix of transformation
3
4. 4
x y
x
y
Point defined as ( , ),
translate to Point ( , ) a distance d parallel to x axis, d parallel to y axis.
, ,
Now
x y
P P x y
P x y
x x d y y d
dx x
P P T
dy y
P P T
′ ′ ′
′ ′= + = +
′
′= = = ′
′ = +
P
P’
Original Point, Transformed point and Displacement in X and
Y can be written in the form of matrix
5. 5
Component-wise addition
v’ = v + t where
and x’ = x + dx
y’ = y + dy
To move polygons: translate vertices of polygon after adding translation factors
and redraw lines between them.
Translation always Preserves lengths and shape of object (Distortion in object
shape will not occur).
dx = 2
dy = 3
Y
X
0
1
1
2
2
3 4 5 6 7 8 9 10
3
4
5
6
=
=
=
dy
dx
t
y
x
v
y
x
v ,
'
'
',
3
3
6
5
7. After applying Scaling factor coordinates of
object is either increase or decrease. Expansion
and compression of object is depend upon the
scaling factor Sx and Sy.
Uniform Scaling
If Sx = Sy < 1 Uniform compression occurs.
If Sx = Sy > 1 Uniform Expansion Will occur.
If Sx=Sy=1 No Change will occur.
Non uniform scaling
If Sx ≠ Sy < 1 Non uniform compression occurs.
If Sx ≠ Sy > 1 Non uniform expansion Will
occur.
7
9. 9
Component-wise scalar multiplication of vectors
v’ = Sv where
and
=
=
'
'
',
y
x
v
y
x
v
=
y
x
s
s
S
0
0
ysy
xsx
y
x
=
=
'
'
Y
X
0
1
1
2
2
3 4 5 6 7 8 9 10
3
4
5
6
2
3
=
=
y
x
s
s
1
2
1
3
2
6
2
9
10. Add a 3rd coordinate to every 2D point. A point (a, b) in 2D can
be represented as (a,b,1) in homogeneous coordinate system.
Any point (x, y, w) where w!=0 represents a point at location
(x/w, y/w) in this coordinate system.
Point (2/3,4/3) can be represented in homogeneous coordinate
system (6,12,9)
2D case
3D Case
• Add a 4th coordinate to every 3D point. A point (a, b, c) in 3D can be
represented as (a,b,c,1) in homogeneous coordinate system.
Any point (x, y, z, w) in 3D where w!=0 represents a point at location
(x/w, y/w, z/w) in this coordinate system.
12. Object coordinates are (00,10,11,01) Perform uniform expansion of this
object. Take scaling factor from your side.Draw final Figure also.
12
13. Q1. Write a 2X2 transformation matrix for each
of the following scaling transformation.
(1)The entire picture is 3 times as large.
(2)The entire picture is 1/3 as large.
(3)The X direction is 4 times as large and the y
direction unchanged.
(4) The x direction reduced to ¾ the original
and y direction increased by 7/5 times.
13
14. Translate the square ABCD whose coordinates are A(0,0), B(3,0),c(3,3),
D(0,3).
Translate this square 1.5 unit in x direction and 0.5 unit in y direction.
After translation performing scaling with scaling factor sx=1.5 and
sy=0.5
14
15. Find the transformation matrix that transforms
the square ABCD whose center is at (2,2) is
reduced to half of its size, with center still
remaining at (2,2). The coordinate of square
ABCD are A(0,0), B(0,4), C(4,4),D(4,0). Find the
coordinates of new square.
15
16. Q: How can we represent translation as a
3x3 matrix?
y
x
tyy
txx
+=
+=
'
'
=
1
010
001
tytx
ranslationT
18. Prove that two scaling transformation is
commutative
Commutative property is
S1.s2=s2.s1
Prove that two successive translation are additive.
Prove that two successive scaling is multiplicative
18
19. Composite 2D Translation (Two successive
Translation)
),(
),(),(
2121
2211
yyxx
yxyx
tttt
ttttT
++=
⋅=
T
TT
+
+
=
⋅
100
10
01
100
10
01
100
10
01
21
21
1
1
2
2
yy
xx
y
x
y
x
tt
tt
t
t
t
t
Two Successive Translation is Additive
20. Composite 2D Scaling (two successive
Scaling)
),(
),(),(
2121
2211
yyxx
yxyx
ssss
ssssT
S
SS
=
⋅=
⋅
⋅
=
⋅
100
00
00
100
00
00
100
00
00
21
21
1
1
2
2
yy
xx
y
x
y
x
ss
ss
s
s
s
s
Two Successive Scaling is Multiplicative
25. Rotate a point (10,0) in anticlockwise direction
Angle is 90 degree.
After rotating this point rotate this point in
clockwise direction.
25
−
=
′
′
θθ
θθ
cossin
sincos
y
x
y
x
−
=
′
′
θθ
θθ
cossin
sincos
y
x
y
x
Rotation (Clockwise)Rotation (Anti-Clockwise)
26. Example
Find the transformed point, P’, caused by
rotating P= (5, 1) about the origin through an
angle of 90°.
⋅+⋅
⋅−⋅
=
•
−
θθ
θθ
θθ
θθ
cossin
sincos
cossin
sincos
yx
yx
y
x
⋅+⋅
⋅−⋅
=
90cos190sin5
90sin190cos5
⋅+⋅
⋅−⋅
=
0115
1105
−
=
5
1
28. What happens when you apply a rotation
transformation to an object that is not at the
origin?
Solution:
Translate the center of rotation to the origin
Rotate the object
Translate back to the original location
29. In matrix form, it can be shown as
Here
TR is Translation Matrix (Translation towards Origin)
RƟ is Rotation Matrix (Rotation Matrix can be clockwise and
anticlockwise Rotation)
TR
-1
is Translation matrix (Away from origin)
29
[ ] [ ][ ][ ]
1
R RT T R Tθ
−
=
31. Consider the square A(1,0) B(0,0) C(0,1) D(1,1).
Rotate the square ABCD by 90 degree
clockwise about A(1,0). Apply rotation about
arbitrary point to solve this question.
31
32. Translation.
P′=T + P
Scale
P′=S ⋅ P
Rotation
P′=R ⋅ P
We would like all transformations to be
multiplications
32
34. 34
Shearing Transformation
The shearing transformation when applied to the object it results
distortion of shape.
Types of Shearing Transformation
X- shear: In X-shear y coordinate remain unchanged, but x is
changed.
Y- shear: In Y-shear x coordinate remain unchanged, but y is
changed
' 1
' 0 1
x x Shy
y y
=
X- Shear Y- Shear
' 1 0
' 1
x x
y y shx
=
35. Shear following object 2 unit in x direction and
2 unit in y direction.
Object coordinates are (00,10,11,01).
35
36. Basic 2D transformations as 3x3 matrices
ΘΘ
Θ−Θ
=
1100
0cossin
0sincos
1
'
'
y
x
y
x
=
1100
10
01
1
'
'
y
x
t
t
y
x
y
x
=
1100
01
01
1
'
'
y
x
sh
sh
y
x
x
y
Translate
Rotate Shear
=
1100
00
00
1
'
'
y
x
s
s
y
x
y
x
Scale
37. Transformations can be combined by
matrix multiplication
ΘΘ
Θ−Θ
=
w
y
x
sy
sx
ty
tx
w
y
x
100
00
00
100
0cossin
0sincos
100
10
01
'
'
'
p’ = T(tx,ty) R(Θ) S(sx,sy) p
38. Rotation with respect to a pivot point (x,y)
* ( , ) ( ) ( , )
1 0 cos sin 0 1 0
* 0 1 sin cos 0 0 1
0 0 1 0 0 1 0 0 1
Object T x y R T x y
x x
Object y y
θ
θ θ
θ θ
− − × ×
− −
÷ ÷ ÷
= − × × ÷ ÷ ÷
÷ ÷ ÷
39. Steps for Fix point Scaling
Translate point to origin (Fig (b))
Perform Scaling Fig(c) Expansion or
compression
Inverse Translation Fig(d)
39
40. Scaling with respect to a fixed point (x,y)
* ( , ) ( , ) ( , )
1 0 0 0 0 1 0 0
* 0 1 0 0 0 0 1 0
1 0 0 1 1
x y
x
y
Object T x y S s s T x y
s
Object s
x y x y
− − × ×
÷ ÷ ÷
= × × ÷ ÷ ÷
÷ ÷ ÷− −
41. Q1. Magnify the triangle with vertices A(0,0),
B(1,1), C(5,2) to twice its size while keeping
c(5,2) fixed.
41