Intelligent Information Management

Volume 2, Issue 6 (June 2010)

ISSN Print: 2160-5912   ISSN Online: 2160-5920

Google-based Impact Factor: 1.6  Citations  

The Line Clipping Algorithm Basing on Affine Transformation

HTML  Download Download as PDF (Size: 105KB)  PP. 380-385  
DOI: 10.4236/iim.2010.26046    9,560 Downloads   15,655 Views  Citations
Author(s)

Affiliation(s)

.

ABSTRACT

A new algorithm for clipping line segments by a rectangular window on rectangular coordinate system is presented in this paper. The algorithm is very different to the other line clipping algorithms. For the line segments that cannot be identified as completely inside or outside the window by simple testings, this algorithm applies affine transformations (the shearing transformations) to the line segments and the window, and changes the slopes of the line segments and the shape of the window. Thus, it is clear for the line segment to be outside or inside of the window. If the line segments intersect the window, the algorithm immediately (no solving equations) gets the intersection points. Having applied the inverse transformations to the intersection points, the algorithm has the final results. The algorithm is successful to avoid the complex classifications and computations. Besides, the algorithm is effective to simplify the processes of finding the intersection points. Comparing to some classical algorithms, the algorithm of this paper is faster for clipping line segments and more efficient for calculations.

Share and Cite:

W. Huang, "The Line Clipping Algorithm Basing on Affine Transformation," Intelligent Information Management, Vol. 2 No. 6, 2010, pp. 380-385. doi: 10.4236/iim.2010.26046.

Cited by

[1] Line Clipping in 2D: Overview, Techniques and Algorithms
Journal of Imaging, 2022
[2] Generalization of Liang-Barsky Line Clipping Algorithm
2020
[3] RJ-ASHI Algorithm: A New polygon/Line Clipping Algorithm for 2D Space
2016
[4] An approach for line clipping against a convex polyhedron
2016
[5] 2D Line Clipping Algorithm Using Pixel Color Attribute
Advances in Computer Science and Information Technology, 2015
[6] Layer based 3D clipping
2015
[7] Line clipping based on parallelism approach and midpoint intersection
AIP Conference Proceedings, 2014
[8] 2D Polygon clipping using Shear Transformation: An extension of Shear based 2D line Clipping
Advanced Communication Control and Computing Technologies (ICACCCT), 2014 International Conference on, 2014
[9] Line clipping algorithm of affine transformation for polygon
Intelligent Computing Theories, 2013
[10] 基于矩阵乘法的多边形窗口线裁剪算法
计算机科学, 2013
[11] An Efficient Algorithm for Line Clipping in Computer Graphics Programming
Ceylon Journal of Science (Physical Sciences), 2013
[12] An Efficient Line Clipping Algorithm for 3D Space
International Journal, 2012

Copyright © 2024 by authors and Scientific Research Publishing Inc.

Creative Commons License

This work and the related PDF file are licensed under a Creative Commons Attribution 4.0 International License.