Preview

Master Application

Best Essays
Open Document
Open Document
3782 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Master Application
Intelligent Information Management, 2010, 2, 380-385 doi:10.4236/iim.2010.26046 Published Online June 2010 (http://www.SciRP.org/journal/iim)

The Line Clipping Algorithm Basing on Affine
Transformation
Wenjun Huang
College of Math and Computer Science, Guangxi University for Nationalities, Nanning, China
E-mail: hwjart@126.com
Received March 20, 2010; revised April 25, 2010; accepted May 27, 2010

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.
Keywords: Computer Graphics, Line Clipping, Algorithm, Affine Transformation

1. Introduction and Previous Work
In computer graphics, line clipping is a basic and important operation, and has many applications. For example, extracting part of a defined scene for viewing must take line clipping. The region that includes the part of the defined scene is called a clip window. Generally, the window is a rectangle or a general



References: Computers and Graphics, Vol. 18, No. 4, 1994, pp. 517527. Eurographics’92 Conference, Cambridge, 1992, pp. 1-38.

You May Also Find These Documents Helpful

  • Good Essays

    To accomplish the task of line following, the two Line Follower sensors were placed on the two sides of the front of the car. They were used to detect the…

    • 1184 Words
    • 5 Pages
    Good Essays
  • Good Essays

    I have manipulated this simple line. I used the anchor tool to hold or allow me to move points to where I wish. This allowed me to bend the outer edge of the line generating something a little different.…

    • 1516 Words
    • 7 Pages
    Good Essays
  • Good Essays

    References: © The Authors JCSCR. (2012). A Comparative Study on the Performance. LACSC – Lebanese Association for Computational Sciences Registered under No. 957, 2011, Beirut, Lebanon, 1-12.…

    • 664 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Nanorobot Lab

    • 1604 Words
    • 7 Pages

    Cutting procedure is monitored using the camera and care is taken that it will not cut the surrounding tissue.…

    • 1604 Words
    • 7 Pages
    Good Essays
  • Good Essays

    Gunsmithing Assignment

    • 527 Words
    • 3 Pages

    Mr. Potterfield uses the proper tool for the job he intends to do. He shows that the cutting tool only cuts on the push, and not on the draw. When he nears the border, he switches back to a single cutter. Because he cut the border almost all the way down, it provides a "catch" for the cutting tool. This ensures his lines do not exceed the border. He also showed the hook and pull technique in which he turned to tool around so it cuts on the pull. Near the corners there is little room for error, so he employs a Xacto knife blade to make those fine lines. One thing I found interesting was the cross sectioning of lines in order to make the checkers. We use that in the tattoo industry whenever we are tattooing scales, like on a snake, dragon, or koi fish (except their semi curved). This video was really informative, and reinforced the text for this week's material. I have a fairly good understanding of the checkering process, and look forward to practicing in the near…

    • 527 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    LYT2 Task2

    • 4061 Words
    • 12 Pages

    Stein, S. S., Gerding, E. H., Rogers, A. C., Larson, K. K., & Jennings, N. R. (2011). Algorithms…

    • 4061 Words
    • 12 Pages
    Satisfactory Essays
  • Good Essays

    along the line of there is a third party involved with that line. The corner points do not have to be…

    • 592 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Any time two independent pieces of information are known about a line L it is possible to determine the linear equation whose graph is that line L. The most important fact used in this process is:…

    • 219 Words
    • 1 Page
    Satisfactory Essays
  • Better Essays

    were shown a line­segment, they were then asked to identify among three other line­segments one that…

    • 1114 Words
    • 5 Pages
    Better Essays
  • Good Essays

    of line segments. In raster graphics, an image is represented as a two-dimensional array of spots,…

    • 2555 Words
    • 9 Pages
    Good Essays
  • Good Essays

    They also discovered a new way to help them start their painting, which was to dividing half the sketch to create the horizon then the horizon was divided in half to find the vanishing point. Two further vertical lines were drawn to create a large square in the centre of the canvas, and diagonals from the centre to the corners of the square were drawn to form the lines of perspective. The large square was then further divided into smaller squares.…

    • 417 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Spatial Analysis

    • 453 Words
    • 2 Pages

    Text/graphics separation works very smoothly in this case (Fig. 18), as do vectorization and arcs detection (Fig. 19) and loop extraction.…

    • 453 Words
    • 2 Pages
    Good Essays
  • Best Essays

    Dunn et al., [7], describe the use of invariant geometric structures to determine the projection geometry used to acquire an image. He demonstrated the relationship of these two-dimensional points independent of the projection geometry of which they were acquired.…

    • 4832 Words
    • 20 Pages
    Best Essays
  • Good Essays

    The advantage to this method is that the loose lines create a true feeling of life and movement. This is due to the amount of uncapped energy that you can feel looking at the primitive lines. I have thoroughly examined her approach and have applied it to my own work.…

    • 1245 Words
    • 5 Pages
    Good Essays
  • Powerful Essays

    3d clipping

    • 2711 Words
    • 11 Pages

    Clipping is very important in 3D graphics. The main purpose is to prevent the triangle drawing routine from trashing memory and drawing out of the screenspace. 3D-clipping can also help you to speed up your rendering engine.…

    • 2711 Words
    • 11 Pages
    Powerful Essays

Related Topics