![]() |
Image processing is performed using lots of mathematical tools. One such tool is geometric transformation. Geometric transformation in image transformation consists of two steps, namely spatial transformation of pixels or coordinates and intensity interpolation. Intensity interpolation is used to assign the intensity value of pixels after spatial transformation. The geometric (or spatial) transformation, T of an image is done on a pixel-by-pixel basis. The pixel having coordinate (x, y) will be moved to coordinate (x’, y’). That is, the coordinate (x’, y’) of the output image will have the intensity value of the coordinate (x, y) in the input image. The geometric transformation is given by the equation in matrix form: [Tex]\begin{bmatrix} \\x’ \\y’ \end{bmatrix}= T\begin{bmatrix} \\x \\y \end{bmatrix}= \begin{bmatrix} \\a &b \\c& d \end{bmatrix}\begin{bmatrix} \\x \\y \end{bmatrix}[/Tex] where, (x, y) is the input coordinate, (x’, y’) is the output coordinate, T is the geometric transformation matrix. Thus, geometric transformations expounded upon via the use of mathematical operations through transformation matrices, serve as useful tools for image enhancement, restoration, and analysis and are therefore important in both practical and theoretical applications in the fields of image processing as well as computer vision. Relation between Image Processing and Geometric TransformationGeometric transformation is a mathematical tool used in image processing. Geometric transformation is used in an image to adjust its spatial arrangement of pixel. For example, in operations like scaling, rotation, and translation where pixel coordinates are changed, we use geometric transformations. Geometric transformations in image processing are also called rubber-sheet transformations. This is due to the fact that geometric transformation in image processing is equivalent to the operations performed on a rubber sheet containing the input image. The sheet can be stretched, sheared, rotated, and so on. When these operations are done, the image which is visible on the sheet is the output image. Another important feature of images in Geometric Transformations is that the alteration of such image attributes is significant in image processing as it helps in changing the aspect of the image to fit the analysis or visualization requirements. These operations, changes in image geometry, generate better alignment of images, extraction of features, and improve image data for further process or analysis. Different Types of Image Transformation Used in Image Processing1. TranslationTranslation displaces an image by a certain amount of pixels about the x and y axis. This operation translates the image in a way such that every pixel in the image will be shifted to a new position maintaining the shape and size of the image. 2. RotationRotation is basically the process by which an image is simply rotated around the origin or an image center by a given angle. This one rotates the image or changes the orientation of an image depending on the angle it has been set to. 3. ScalingScaling enables one to make the image larger or smaller in size or as it is known as scaling it copies or reduces the image proportionately to the original size. Most scaling methods preserve aspect ratio, but the general scaling is achieved by changing the dimension on different axes unlike other methods. 4. Shearing (Skewing)Except that Shearing displaces the pixel in one direction and as a result causes an inclined output to be produced. Identical to the rotation transformation, this transformation changes the angles between the axes of the image. 5. Affine TransformationAffine transformation can be defined as translation, rotation, scaling, and shearing at once. It maintains the ‘perpendicularity’ of the pairs of lines and the ratio between points but not angles or lengths. The commonly used and known geometric transformation is the affine transformation. Affine transformation includes scaling, rotation, translation and shearing. In two dimensions, these transformations preserve points, straight lines and planes. This is the key characteristic of affine transformation. That is, the collinearity between points, parallelism between lines, and convexity of planes are not affected due to affine transformations. All the affine transformations except translation, can be represented using a 2 X 2 matrix. But for representing translation, we require a 3 X 3 matrix. Hence, a 3 X 3 matrix, A (affine matrix) is used for affine transformation. An affine matrix has an important characteristic of being invertible. The affine transformation can also be expressed using linear equations of matrix and vectors of order 2. The affine transformation is given by the equations in matrix form: [Tex]\begin{bmatrix} \\x’ \\y’ \\1 \end{bmatrix}=A\begin{bmatrix} \\x \\ y \\1 \end{bmatrix}= \begin{bmatrix} a &b &c \\ d&e &f \\ 0& 0 &1 \end{bmatrix}\begin{bmatrix} \\x \\y \\1 \end{bmatrix}[/Tex] where, (x, y) is the input coordinate, (x’, y’) is the output coordinate, A is the affine transformation matrix. 6. Perspective TransformationParallax shifts the appearing image perspective until the parallel lines appear to be meeting at the vanishing points. Perspective transformation is also known as projective transformation and homograph. It is a geometric transformation where a point from one plane is mapped to another plane. This makes the object appear from different points of views or perspectives. Perspective transformation has application in the field of computer vision as it is involved in tasks like image stitching, camera calibration and 3-D reconstruction. The perspective transformation is mathematically represented using a 3 X 3 matrix, H (homograph matrix). The affine transformation is given by the equations in matrix form: [Tex]\begin{bmatrix} \\x’ \\ y’ \\w’ \end{bmatrix}=H\begin{bmatrix} \\x \\y \\1 \end{bmatrix}=\begin{bmatrix} a &b &c \\ d &e &f \\ g &h &i \end{bmatrix}\begin{bmatrix} \\x \\y \\1 \end{bmatrix}[/Tex] Here, w’x’ = ax + by + c w’y’ = dx + ey + f w’ = gx + hy + i To find x’ and y’, we need to normalize them with respect to w’. Thus the coordinate equations for perspective transformation are: [Tex]x’=\frac{ax+by+c}{gx+hy+i_{}} y’=\frac{dx+ey+f}{gx+hy+i}[/Tex] ![]() Geometric Transformation in Image Processing Types of Affine TransformationGeometric transformations are based on the mathematical transformations in which the operations on the coordinates of the points of an image are performed. Such operations are always depicted by transformation matrices. For example: Translation[Tex]\begin{bmatrix} x’ \\ y’ \end{bmatrix} = \begin{bmatrix} x + \Delta x \\ y + \Delta y \end{bmatrix} [/Tex] Rotation[Tex]\begin{bmatrix} x’ \\ y’ \end{bmatrix} = \begin{bmatrix} \cos\theta & -\sin\theta \\ \sin\theta & \cos\theta \end{bmatrix} \begin{bmatrix} x \\ y \end{bmatrix} [/Tex] Scaling[Tex]\begin{bmatrix} x’ \\ y’ \end{bmatrix} = \begin{bmatrix} s_x & 0 \\ 0 & s_y \end{bmatrix} \begin{bmatrix} x \\ y \end{bmatrix} [/Tex] Shearing[Tex]\begin{bmatrix} x’ \\ y’ \end{bmatrix} = \begin{bmatrix} 1 & k_y \\ k_x & 1 \end{bmatrix} \begin{bmatrix} x \\ y \end{bmatrix} [/Tex] Perspective Transformation What is Perspective Transformation?OverviewParallax is very much similar to perspective transformation where lines that are parallel are made to appear as though they are becoming joined at some certain now-where points called vanishes points. Since the perspective transformations do not map parallel lines to parallel lines or distances to distances, they are advantageous for obtaining 3D like effects in the images. Characteristics
Mathematical RepresentationPerspective transformation is some how related to a matrix of order 3*3 where co-ordinate points of the two planes can be transformed. The transformation is defined by: [Tex]\begin{bmatrix} x’ \\ y’ \\ w’ \end{bmatrix} = \begin{bmatrix} h_{11} & h_{12} & h_{13} \\ h_{21} & h_{22} & h_{23} \\ h_{31} & h_{32} & h_{33} \end{bmatrix} \begin{bmatrix} x \\ y \\ 1 \end{bmatrix} [/Tex] where (?′,?′) are the coordinates in the transformed image, and ?′ is the normalization factor. ImplementationGeometric transformations require identification of the type of transformation to be done and its parameters, generation of the required transformation matrix, application of the matrix to the image coordinates, and use of interpolation methods to determine the intensity of the pixel at a new location. ExamplesExample 1: TranslationTranslate an image by 50 pixels in the x-direction and 30 pixels in the y-direction. [Tex]\begin{bmatrix} x’ \\ y’ \end{bmatrix} = \begin{bmatrix} x + 50 \\ y + 30 \end{bmatrix} [/Tex] Example 2: RotationRotate an image by 45 degrees counterclockwise. [Tex]\begin{bmatrix} x’ \\ y’ \end{bmatrix} = \begin{bmatrix} \cos(45^\circ) & -\sin(45^\circ) \\ \sin(45^\circ) & \cos(45^\circ) \end{bmatrix} \begin{bmatrix} x \\ y \end{bmatrix} [/Tex] Advantages and Disadvantages of Geometric Transformation in Image ProcessingAdvantages
Disadvantages
Applications of Geometric Transformation in Image Processing
ConclusionImage rotations and transformations are among the core facets of images as they provide generalized methods of managing and analyzing the images. They can also be easily and accurately rotated and scaled and reshaped and translated which make them useful in applications in areas such as medical imaging and remote sensing and computer vision. Although there may be some disadvantages such as computation and interpolation issues, their ability to improve image quality and to help with certain analyses outweighs the pros. Sustaining these transformations provides practitioners with the appropriate technology for formulating radical solutions and improvements in the image processing techniques. Geometric Transformation in Image Processing – FAQsWhat is the definition of a geometrical transformation in the context of digital image processing?
A transformation matrix is used in geometric transformations through the following way.
That is describing the interpolation styles that are commonly used in geometric transformations.
In what areas can geometric transformations be used?
What are the main challenges of geometric transformations?
|
Reffered: https://www.geeksforgeeks.org
Electronics Engineering |
Related |
---|
![]() |
![]() |
![]() |
![]() |
![]() |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 20 |