Check patentability & draft patents in minutes with Patsnap Eureka AI!

Anti-aliasing straight line drawing method based on non-weighted region sampling

An anti-aliasing, straight-line technology, applied in the direction of drawing from basic elements, can solve problems such as difficulty in implementation

Inactive Publication Date: 2014-07-16
BEIHANG UNIV
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] Among the various algorithms used in the field of anti-aliasing technology, the Wu line anti-aliasing algorithm based on the principle of area sampling is one of the earlier methods used in the field of anti-aliasing technology. Although this method can achieve better display effects, the algorithm itself requires Real number operations such as division and rounding are difficult to implement with FPGA

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Anti-aliasing straight line drawing method based on non-weighted region sampling
  • Anti-aliasing straight line drawing method based on non-weighted region sampling
  • Anti-aliasing straight line drawing method based on non-weighted region sampling

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] Assuming that the number of gray levels used by the raster graphic display screen is 64, the technical solution of the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0030] The present invention designs a simple anti-aliasing straight line drawing method based on non-uniform area sampling, which mainly adopts integer addition operation and conforms to the characteristics of FPGA hardware implementation. Algorithm flow chart of the present invention is as figure 1 As shown, now with figure 2 The given ideal straight line whose slope is between 0 and 1 is given as a specific example to describe the implementation steps in detail.

[0031] (1) Determine the three display pixels closest to the ideal straight line in the current column

[0032] The Bresenham algorithm is the most widely used linear scan conversion algorithm in the field of computer graphics. This algorithm is simple and efficient, and can quick...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides an anti-aliasing straight line drawing method based on non-weighted region sampling. The operations on each row, passing through a raster graphic display screen, of the straight line to be drawn can be generalized as follows: (1) determining three display pixels of the current row with nearest distance away from the ideal straight line by a Bresenham algorithm of the drawn straight line, wherein the display pixel with the nearest distance from the straight line certainly has grey scale value, the other two display pixels may have grey scale value, and the rest of display pixels of the current row have no grey scale value; (2) dividing each of the three display pixels into sub-pixels with the number equal to the grey scale level number of the raster display screen; (3) respectively determining two groups of sub-pixels with the nearest distance away from two sides of a rectangle representing the straight line, wherein the two groups of sub-pixels give out the boundary of the coverage area of the rectangle representing the straight line in the current row; (4) respectively carrying out statistics on the number of the sub-pixels, covered by the rectangle region, of the three display pixels; and (5) determining the grey scale value of the display pixels of the current row according to the statistic result. The method is suitable for the raster display screen with multiple grey scale levels, achieves anti-aliasing effect by controlling the slow change of the grey scale value, and is very suitable for the instruments and meters and other fields with higher display quality requirements.

Description

(1) Technical field [0001] The invention relates to a new method for drawing anti-aliasing straight lines, belonging to the technical field of computer graphics anti-aliasing. (2) Background technology [0002] With the rapid development of computer graphics technology, it can be said that the current applications of computer display functions involve graphics technology to varying degrees, so the research on computer graphics rendering methods is becoming more and more important. [0003] Straight line is one of the basic elements of graphics, and its drawing method is the most researched basic content of computer graphics. The straight line generation algorithm in computer graphics usually refers to the method of representing a straight line by finding a series of discrete pixel points closest to the straight line on the raster display screen. At present, the most widely used raster graphics display is composed of a series of discrete pixels, so that straight lines genera...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06T11/20
Inventor 毛峡刘运龙薛雨丽陈立江郑海超
Owner BEIHANG UNIV
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More