0% found this document useful (0 votes)
17 views6 pages

Clipping in Computer Graphics A Review Ijariie3590

Computer graphics Clipping_in_Computer_Graphics_A_review_ijariie3590
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views6 pages

Clipping in Computer Graphics A Review Ijariie3590

Computer graphics Clipping_in_Computer_Graphics_A_review_ijariie3590
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Vol-2 Issue-6 2016 IJARIIE-ISSN(O)-2395-4396

Clipping in Computer Graphics-A review


SHILPA1, PRINCE ARORA2
1
Assistant Professor, IT, DIPS IMT, Jalandhar, India
2
Assistant Professor, IT, DIPS IMT, Jalandhar, India

ABSTRACT
Computer graphics represent the image or picture in graphical form. As we know the image is organized in pixels form.
Pixels are smallest unit on the screen that makes the image. When the image size is too large then to make it fit image is
clipped according to window size. Computer graphics is responsible to display any image in meaningful way. Clipping
identify which part of image is inside or outside of the specified region

Keywords: Window, Text Clipping, Line clipping, Polygon clipping

I. INTRODUCTION
A. Definition

Computer graphics is a field of computer science that manipulates the visual contents. It refers to 2D as well as 3D
computer graphics which helps in image processing. Using computational techniques, computer graphics manipulate the
geometric and visual information to represent the image in visualized form.

Clipping selectively enable or disable the rendering operations within the region. Various rendering operations draw
pixels within the clip region. Pixels that can’t be drawn are outside the clip region. Clipping defines which portion of
image is inside or outside of the region,

B. Clipping Types

Elimination of that object portion which is outside the viewing window is known as clippimg.In 2D graphics, a clip
region is defined by number of pixels which are drawn within the boundaries of the frame. In 2D viewing window is
represented as rectangle window. 2D graphics clipping include Point, Line and Polygon clipping.

In 3D clipping it defines some operations that work with rectangular shapes and general methods to process the scene
model.

a. Point clipping

Point clipping identify whether to clip the given point or not. If any point (X, Y) is within the window, then it is visible
means

Display P = (x, y) if

 xwmin <= x <= xwmax


 ywmin <= y <= ywmax

3590 www.ijariie.com 1725


Vol-2 Issue-6 2016 IJARIIE-ISSN(O)-2395-4396

b. Text clipping

Text clipping generate the characters which are relative to a boundary window. Text clipping depends on the different
strategy.

 All-or-none string clipping: It is the simplest method of text clipping. If complete string is inside the window
keep it otherwise discards.

 All or none character clipping :if there is any string that overlap the window boundary then character which are
outside the window are completely discarded.

 Components of individual characters: if individual characters of the string are overlapping the window only that
part is clipped which is outside of the window.

3590 www.ijariie.com 1726


Vol-2 Issue-6 2016 IJARIIE-ISSN(O)-2395-4396

c. Line Clipping

In the line clipping we check if both endpoints are inside the window or not.

If one endpoint is inside and other is outside the window then outside endpoint is clipped. if both are outside the window
we clip both points and don’t draw the line

d. Polygon clipping

Polygon clipping indicates circle, ellipse and other curve shaped objects. If any part of the object is outside of the
window is clipped. Polygon clipper takes as input the vertices and makes the polygon after clipping which are outside of
the window.

A polygon can be convex and concave. If line is completely inside the polygon is called convex otherwise it is concave
polygon.

3590 www.ijariie.com 1727


Vol-2 Issue-6 2016 IJARIIE-ISSN(O)-2395-4396

II. Cohen-Sutherland Line clipping


This algorithm uses the clipping window to clip the coordinates. The clipping window has minimum (XWmin, YWmin)
and maximum coordinate (XWmax, YWmax) for the clipping.

4-bits are used to divide the entire region that represents the Top, Bottom, left and Right of the Region.

Cases in Cohen Sutherland clipping algorithm

 Case A: visibility, when both endpoints are inside the window.


3590 www.ijariie.com 1728
Vol-2 Issue-6 2016 IJARIIE-ISSN(O)-2395-4396

 Case B: Partial Visibility, when one endpoint is inside and other outside the window.

 Case C: Non-Visibility, when both endpoints are outside the window.

 Case D: When both endpoints are outside the window but some part of line is visible.

III. Sutherland Hodgeman Algorithm


Sutherland Hodgeman algorithm is polygon clipping algorithm. This algorithm clipped those vertices of polygon which
are against each edge of the window.

Steps to clip the window:

1. Polygon is clipped against left edge of the window to get the new vertices.

2. Then polygon is clipped against right edge of the window.

3. Then top and bottom edge is clipped against the clipping window.

IV. CONCLUSION

Clipping method is used to remove the unwanted region which is outside of the window region. Clipping depends on the
visibility cases based on which lines are removed. In Sutherland Hodgeman left, right, top and bottom process is
followed. Clipping defines window and viewing transformation. Window region clipped the objects which are visible
within the region.

REFERENCES

1. Sushil Chandra Dimri, (October 2015), “A Simple and Efficient Algorithm for Line and Polygon Clipping in 2-D
Computer Graphics”.

2. M. Dörr, “A new approach to parametric line clipping”,Computers & Graphics, vol. 14, no. 3-4, (1990).

3. T. M. Nicholl, D. T. Lee and R. A. Nicholl, “An efficient new algorithm for 2-D line clipping: its development and
analysis”, Computer & Graphics, vol. 21, no. 4, (1987).

4. Bimal Kumar Ray,( November, 2012), “A Line Segment Clipping Algorithm in 2D”.
3590 www.ijariie.com 1729
Vol-2 Issue-6 2016 IJARIIE-ISSN(O)-2395-4396

5. R. Kodituwakku,( May 2012),” An Efficient Line Clipping Algorithm for 3D Space”.

6. M. Cyrus and J. Beck, “ Generalized Two and Three Dimensional Clipping, Computers and Graphics”.

7. Prabhjyot Kaur Haryal,(2013), “Polygon Clipping – An Approach to Simplified Clipping Techniques”.

8. Liang, Y. and Barsky, B. (1983) “An analysis and algorithm for polygon clipping”,Commun. ACM 26, 11 (Nov),
868-877.

9. Pamal Parekh, Vatsal Shah, , Jayna Donga, “Survey Of Line Clipping Algorithm In Computer Graphics”.

10. https://www.microsoft.com/en-us/research/publication/clipping-using-homogeneous-coordinates/.

11. http://file.scirp.org/pdf/IIM20100600004_34457773.pdf.

12. http://dna.fernuni-hagen.de/papers/GeoInfo-2007.pdf.

3590 www.ijariie.com 1730

You might also like