Homogenous Coordinates in Computer Graphics

Homogenous Coordinates in Computer Graphics

The orbit of a point, a line graph or the whole picture on the computer, a point besides the origin, is accomplished by first shifting the picture till the origin, is occupied by the point of the rotational axis, then rotating the picture and then beginning to move the picture to its initial position.

A translation is termed as moving a picture from one position to another in a horizontal path. A translation can be performed by adding or subtracting the portion by which the image needs to be moved to each point.

With the help of a precise matrix program, the translation of point through coordinate shift cannot be integrated with other transformations. Such integration is necessary if we want to rotate a picture by translating about a point apart from the origin, rotation again translation.

Homogeneous coordinates help you to integrate all three transformations into a common transformation. 2D coordinate positions (x, y) are determined by three-way coordinates in a homogeneous coordinate system.

In design and development implementations, homogeneous coordinates are commonly used. We conduct translation, scaling and rotation to align the image into the correct position.

Instances of expressing coordinates in a homogeneous coordinate system

We can select homogeneous parameters h for every non-negative value for 2D geometric transformation. Consider it like one for our comfort. With homogeneous coordinates (x, y, 1), each 2D location is represented.

Here, we have the following matrix for 2D transformation in homogenous coordinate system.

  • Matrix for Translation

1    0    0                 1    0    tx

0    1    0       or      0    1    ty 

tx     tx     1                 0     0     1 

  • Matrix for Scaling

                     Sx    0    0

          0   Sy    0

                     0   0     1

  • Matrix for Reflection(x-axis)

              1    0    0

              0   -1    0

              0    0    1

  • Matrix for Reflection(y-axis)

             -1    0    0

                          0    1   0

                          0    0   1

  • Matrix for Reflection(Origin)

             -1    0    0

                         0   -1    0

                         0    0    1 

  • Matrix for Reflection(when line Y = -X)

             0    -1    0

                       -1     0    0

                        0     0    1

  • Matrix for Reflection(when line Y=X)

             0    1    0

                        1    0    0

                        0    0    1

  • Matrix for Rotation(when clockwise)

             cos        -sin         0                

                           sin        cos      0     

                           0              0            1

  • Matrix for Rotation(when anti-clockwise)

             cos         sin         0                

                        -sin        cos      0     

                           0              0            1

  • Matrix for Shearing (X direction)

                      1        0        0

                           Shx       1        0

                            0        0        1                 

  • Matrix for Shearing (Y direction)

                      1       Shy      0

                           0            1         0

                           0       0          1                 

  • Matrix for Shearing (X and Y direction)

                      1        Shy      0  

                          Shx        1          0

                           0        0          1                 


Related Topics

Homogenous Coordinates in Computer Graphics

Homogenous Coordinates in Computer Graphics The orbit of a point, a line graph or the whole picture on the computer, a point besides the origin, is accomplished by first shifting the...

7 minutes read.

Midpoint Circle Drawing Algorithm in Computer Graphics

The midpoint circle drawing algorithm helps us to calculate the complete perimeter points of a circle for the first octant. We can quickly find and calculate the points of other...

12 minutes read.

2D Reflection

The Reflection is a mirror image of the original object. In the Reflection process, the size of the object does not change. We can represent Reflection by using four ways- Reflection along...

2 minutes read.

Types of Computer Graphics

Types of Computer Graphics The computer graphics contains two types. They are- Raster (Bitmap) graphicsVector graphics Many individuals are likely to consider pictures on computers (or phones, tablets, or some other electronic gadget...

5 minutes read.

Animation in Computer Graphics

The word Animation is extracted from a Latin language, "Anima," which means "Soul." TheAnimation is a technology that allows any image object, an entity to walk, talk, or do some...

3 minutes read.

2D Scaling

In scaling, we can expend or compress the size of any object. We can apply scaling on the object by multiplying the original coordinates with scaling factors. The term scaling factor...

2 minutes read.

Illumination Model in Computer Graphics

Illumination Model in Computer Graphics The series of methods used to depict light in computer graphics scenarios is computer graphics illumination. Although lighting strategies provide versatility in the degree of detail...

8 minutes read.

Input Devices in Computer Graphics

An Input device is the piece of computer hardware equipment used to give input to the computer. The input can be in the form of graphics, text, sound, audio, video,...

7 minutes read.

2D Transformation in Computer Graphics

Some visuals are transformed into some other graphics by implementing several of the principles known as transformation. There are multiple kinds of transformation, including translation, scaling, rotation, shearing, etc. Whenever...

2 minutes read.

Applications of Computer Graphics

Applications of Computer Graphics Some applications of computer graphics are mentioned below- Graphical User Interface (GUI): It is a way of interacting with a computer using the icon, ...

2 minutes read.

DDA line Drawing Algorithm in Computer Graphics

DDA (Digital Differential Analyzer) Line Drawing Algorithm The Digital Differential Analyzer helps us to interpolate the variables on an interval from one point to another point. We can use the digital Differential Analyzer algorithm...

5 minutes read.

3D Rotation

The 3D rotation is different from 2D rotation. In 3D Rotation we also have to define the angle of Rotation with the axis of Rotation. For Example- Let us assume, The initial...

2 minutes read.

Composite Transformation in Computer Graphics

Composite transformation in Computer Graphics It is possible to integrate a range of transformations or series of transformations into some kind of a single one which is known as composition. The...

6 minutes read.

3D Reflection

The Reflection is a mirror image of the original object. We can differentiate 2D and 3D reflection by adding Z-axis. The Z-axis shows the depth of the surface. In the...

1 minute read.

Aspect Ratio in Computer Graphics

Aspect Ratio in Computer Graphics You might well understand the concept of Aspect ratio as of now if you know regarding aerial photography or see the configuration portion of any computer...

5 minutes read.

2D Translation

We can move any object from one to another place without changing the shape of the object. For Example- Translation of a Point:If we want to translate a point from P (x0,...

1 minute read.

Zooming

In computer graphics, the term “Zoom is referred as a function, focuses on a particular portion or part of an image and also enlarging the image’s size for greater details.” In windows...

2 minutes read.

Transformation

Introduction The term Transformation is generally referred to as converting a graphic into another graphic by applying some rules or algorithms. Sometimes an image or picture can be a combination of lines, rectangle,...

2 minutes read.

Polygon Clipping in Computer Graphics

“A Polygon can be described as the enclosed collection or group of the lines.” In a polygon, all lines are connected. Lines can be a combination of edges and vertices,...

4 minutes read.

Scan Conversion of a Circle Computer Graphics

A circle is an eight-way symmetric shape. All quadrants of a circle are the same. There are two octants in each quadrant of a circle. If we know the value of any...

3 minutes read.