Line Drawing Algorithm
   HOME
*



picture info

Line Drawing Algorithm
In computer graphics, a line drawing algorithm is an algorithm for approximating a line segment on discrete graphical media, such as pixel-based displays and printers. On such media, line drawing requires an approximation (in nontrivial cases). Basic algorithms rasterize lines in one color. A better representation with multiple color gradations requires an advanced process, spatial anti-aliasing. On continuous media, by contrast, no algorithm is necessary to draw a line. For example, cathode-ray oscilloscopes use analog phenomena to draw lines and curves. List of line drawing algorithms The following is a partial list of line drawing algorithms: * Naive algorithm * Digital Differential Analyzer (graphics algorithm) — Similar to the naive line-drawing algorithm, with minor variations. *Bresenham's line algorithm — optimized to use only additions (i.e. no division Multiplications); it also avoids floating-point computations. *Xiaolin Wu's line algorithm — can perform s ...
[...More Info...]      
[...Related Items...]     OR:     [Wikipedia]   [Google]   [Baidu]  




Line Scan-conversion
Line most often refers to: * Line (geometry), object with zero thickness and curvature that stretches to infinity * Telephone line, a single-user circuit on a telephone communication system Line, lines, The Line, or LINE may also refer to: Arts, entertainment, and media Films * ''Lines'' (film), a 2016 Greek film * ''The Line'' (2017 film) * ''The Line'' (2009 film) * ''The Line'', a 2009 independent film by Nancy Schwartzman Podcasts * ''The Line'' (podcast), 2021 by Dan Taberski Literature * Line (comics), a term to describe a subset of comic book series by a publisher * ''Line'' (play), by Israel Horovitz, 1967 * Line (poetry), the fundamental unit of poetic composition * "Lines" (poem), an 1837 poem by Emily Brontë * ''The Line'' (memoir), by Arch and Martin Flanagan * ''The Line'' (play), by Timberlake Wertenbaker, 2009 Music Albums * ''Lines'' (The Walker Brothers album), 1976 * ''Lines'' (Pandelis Karayorgis album), 1995 * ''Lines'' (Unthanks album), 201 ...
[...More Info...]      
[...Related Items...]     OR:     [Wikipedia]   [Google]   [Baidu]  


picture info

Linear Equation
In mathematics, a linear equation is an equation that may be put in the form a_1x_1+\ldots+a_nx_n+b=0, where x_1,\ldots,x_n are the variables (or unknowns), and b,a_1,\ldots,a_n are the coefficients, which are often real numbers. The coefficients may be considered as parameters of the equation, and may be arbitrary expressions, provided they do not contain any of the variables. To yield a meaningful equation, the coefficients a_1, \ldots, a_n are required to not all be zero. Alternatively, a linear equation can be obtained by equating to zero a linear polynomial over some field, from which the coefficients are taken. The solutions of such an equation are the values that, when substituted for the unknowns, make the equality true. In the case of just one variable, there is exactly one solution (provided that a_1\ne 0). Often, the term ''linear equation'' refers implicitly to this particular case, in which the variable is sensibly called the ''unknown''. In the case of two vari ...
[...More Info...]      
[...Related Items...]     OR:     [Wikipedia]   [Google]   [Baidu]  


Anti-aliasing
Anti-aliasing may refer to any of a number of techniques to combat the problems of aliasing in a sampled signal such as a digital image or digital audio recording. Specific topics in anti-aliasing include: * Anti-aliasing filter, a filter used before a signal sampler, to restrict the bandwidth of a signal such as in audio applications * Manual anti aliasing, artistic technique done in pixel art graphics to smooth transitions between shapes, to soften lines or to blur edges. * Spatial anti-aliasing, the technique of minimizing aliasing when representing a high-resolution image at a lower resolution ** Fast approximate anti-aliasing, an anti-aliasing algorithm created by Timothy Lottes under Nvidia. May also be referred to as Fast Sample Anti-aliasing (FSAA). ** Multisample anti-aliasing, a type of spatial anti-aliasing method ** Supersampling, a type of spatial anti-aliasing method * Temporal anti-aliasing, techniques to reduce or remove the effects of temporal aliasing in moving i ...
[...More Info...]      
[...Related Items...]     OR:     [Wikipedia]   [Google]   [Baidu]  


picture info

Xiaolin Wu's Line Algorithm
336px, Demonstration of Xiaolin Wu's algorithm. Compression artifacts in the jpeg standard can be made "fairly" with it. Xiaolin Wu's line algorithm is an algorithm for line antialiasing. Antialiasing technique Xiaolin Wu's line algorithm was presented in the article "An Efficient Antialiasing Technique" in the July 1991 issue of ''Computer Graphics'', as well as in the article "Fast Antialiasing" in the June 1992 issue of ''Dr. Dobb's Journal''. Bresenham's algorithm Bresenham's line algorithm is a line drawing algorithm that determines the points of an ''n''-dimensional raster graphics, raster that should be selected in order to form a close approximation to a straight line between two points. It is commonly u ... draws lines extremely quickly, but it does not perform anti-aliasing. In addition, it cannot handle any cases where the line endpoints do not lie exactly on integer points of the pixel grid. A naive approach to anti-aliasing the line would take an extremely long tim ...
[...More Info...]      
[...Related Items...]     OR:     [Wikipedia]   [Google]   [Baidu]  


picture info

Bresenham's Line Algorithm
Bresenham's line algorithm is a line drawing algorithm that determines the points of an ''n''-dimensional raster that should be selected in order to form a close approximation to a straight line between two points. It is commonly used to draw line primitives in a bitmap image (e.g. on a computer screen), as it uses only integer addition, subtraction and bit shifting, all of which are very cheap operations in commonly used computer instruction sets such as x86_64. It is an incremental error algorithm, and one of the earliest algorithms developed in the field of computer graphics. An extension to the original algorithm may be used for drawing circles. While algorithms such as Wu's algorithm are also frequently used in modern computer graphics because they can support antialiasing, Bresenham's line algorithm is still important because of its speed and simplicity. The algorithm is used in hardware such as plotters and in the graphics chips of modern graphics cards. It can also be fou ...
[...More Info...]      
[...Related Items...]     OR:     [Wikipedia]   [Google]   [Baidu]  


Xiaolin Wu Lines
Xiaolin may refer to: * Siaolin Village (), village in Jiasian District, Kaohsiung, Taiwan, Republic of China * Xiaolin, Cixi (逍林镇), town in Cixi City, Zhejiang, People's Republic of China * Xiaolin, Sui County (), town in Sui County, Suizhou, Hubei, China * Zhu Xiaolin (朱晓琳), Chinese long-distance runner * ''Xiaolin Showdown'', American animated television series See also *Shaolin (other) *Shaolin Temple (other) Shaolin Monastery or Shaolin Temple is a Buddhist monastery in Henan province, China. Shaolin Temple or Shaolin Monastery may also refer to: *Southern Shaolin Monastery, Buddhist monastery in Fujian, China * ''Shaolin Temple'' (1982 film), a martia ...
{{disambig ...
[...More Info...]      
[...Related Items...]     OR:     [Wikipedia]   [Google]   [Baidu]  


Y-intercept
In analytic geometry, using the common convention that the horizontal axis represents a variable ''x'' and the vertical axis represents a variable ''y'', a ''y''-intercept or vertical intercept is a point where the graph of a function or relation intersects the ''y''-axis of the coordinate system. As such, these points satisfy ''x'' = 0. Using equations If the curve in question is given as y= f(x), the ''y''-coordinate of the ''y''-intercept is found by calculating f(0). Functions which are undefined at ''x'' = 0 have no ''y''-intercept. If the function is linear and is expressed in slope-intercept form as f(x)=a+bx, the constant term a is the ''y''-coordinate of the ''y''-intercept. Multiple y-intercepts Some 2-dimensional mathematical relationships such as circles, ellipses, and hyperbolas can have more than one ''y''-intercept. Because functions associate ''x'' values to no more than one ''y'' value as part of their definition, they can have at most one ''y''-intercept. x ...
[...More Info...]      
[...Related Items...]     OR:     [Wikipedia]   [Google]   [Baidu]  


picture info

Slope
In mathematics, the slope or gradient of a line is a number that describes both the ''direction'' and the ''steepness'' of the line. Slope is often denoted by the letter ''m''; there is no clear answer to the question why the letter ''m'' is used for slope, but its earliest use in English appears in O'Brien (1844) who wrote the equation of a straight line as and it can also be found in Todhunter (1888) who wrote it as "''y'' = ''mx'' + ''c''". Slope is calculated by finding the ratio of the "vertical change" to the "horizontal change" between (any) two distinct points on a line. Sometimes the ratio is expressed as a quotient ("rise over run"), giving the same number for every two distinct points on the same line. A line that is decreasing has a negative "rise". The line may be practical – as set by a road surveyor, or in a diagram that models a road or a roof either as a description or as a plan. The ''steepness'', incline, or grade of a line is measured by the absolute ...
[...More Info...]      
[...Related Items...]     OR:     [Wikipedia]   [Google]   [Baidu]  


picture info

Cathode-ray Oscilloscope
An oscilloscope (informally a scope) is a type of electronic test instrument that graphically displays varying electrical voltages as a two-dimensional plot of one or more signals as a function of time. The main purposes are to display repetitive or single waveforms on the screen that would otherwise occur too briefly to be perceived by the human eye. The displayed waveform can then be analyzed for properties such as amplitude, frequency, rise time, time interval, distortion, and others. Originally, calculation of these values required manually measuring the waveform against the scales built into the screen of the instrument. Modern digital instruments may calculate and display these properties directly. Oscilloscopes are used in the sciences, medicine, engineering, automotive and the telecommunications industry. General-purpose instruments are used for maintenance of electronic equipment and laboratory work. Special-purpose oscilloscopes may be used to analyze an automotive ign ...
[...More Info...]      
[...Related Items...]     OR:     [Wikipedia]   [Google]   [Baidu]