KR101025475B1 - Anti-aliasing Method and Apparatus - Google Patents
Anti-aliasing Method and Apparatus Download PDFInfo
- Publication number
- KR101025475B1 KR101025475B1 KR1020090053826A KR20090053826A KR101025475B1 KR 101025475 B1 KR101025475 B1 KR 101025475B1 KR 1020090053826 A KR1020090053826 A KR 1020090053826A KR 20090053826 A KR20090053826 A KR 20090053826A KR 101025475 B1 KR101025475 B1 KR 101025475B1
- Authority
- KR
- South Korea
- Prior art keywords
- horizontally
- scan lines
- aliasing
- pixel
- sub scan
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T15/00—3D [Three Dimensional] image rendering
- G06T15/50—Lighting effects
- G06T15/503—Blending, e.g. for anti-aliasing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/001—Texturing; Colouring; Generation of texture or colour
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/40—Extraction of image or video features
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2200/00—Indexing scheme for image data processing or generation, in general
- G06T2200/12—Indexing scheme for image data processing or generation, in general involving antialiasing
Abstract
본 발명은 안티 에일리어싱 방법 및 장치에 관한 것이다. 본 발명에 따르는 안티 에일리어싱 방법은, 픽셀 내에 드로잉되는 이미지에 대한 안티 에일리어싱이 요청되면, 픽셀내에 다수의 서브 스캔 라인을 형성하는 단계; 상기 다수의 서브 스캔 라인과 상기 이미지가 겹쳐지는 구간들을 검출하는 단계; 상기 구간들의 합을 상기 다수의 서브 스캔 라인의 수로 나누어 커버리지 값을 산출하는 단계; 상기 커버리지 값에 대응되는 색상값의 색으로 상기 픽셀을 채우는 단계;를 구비함을 특징으로 한다. The present invention relates to an anti-aliasing method and apparatus. The anti-aliasing method according to the present invention comprises: forming an anti-aliasing for an image drawn in a pixel, if a plurality of sub-scan lines are formed in the pixel; Detecting sections in which the plurality of sub scan lines overlap the image; Calculating a coverage value by dividing the sum of the intervals by the number of sub-scan lines; And filling the pixel with a color of a color value corresponding to the coverage value.
안티 에일리어싱, 그래픽 Anti-aliasing, graphics
Description
본 발명은 컴퓨터 그래픽 기술에 관한 것으로, 더욱 상세하게는 안티 에일리어싱(anti-aliasing) 방법 및 장치에 관한 것이다.TECHNICAL FIELD The present invention relates to computer graphics technology, and more particularly, to an anti-aliasing method and apparatus.
컴퓨터 그래픽에서는 섬세한 모양을 가진 사물을 일정 픽셀 단위로 화면에 나타내어야 하기 때문에 공간적인 에일리어싱(aliasing)이 야기된다. In computer graphics, spatial aliasing is caused because an object having a delicate shape must be displayed on a screen in units of pixels.
도 1의 (a)는 원래의 그래픽이고, 도 1의 (b)는 도 1의 (a)를 픽셀로 표현한 것으로, 도 1의 (b)는 원래의 그래픽에 대해 부드럽지 못하게 표현되는 문제가 있었으며, 이를 계단현상 또는 에일리어싱이라 한다. (A) of FIG. 1 is an original graphic, and (b) of FIG. 1 is a pixel representation of (a) of FIG. 1, and (b) of FIG. This is called staircase phenomenon or aliasing.
상기한 에일리어싱을 최소화하기 위한 종래 기술로는 영역 샘플링 방법, 슈퍼 샘플링 방법, 멀티 샘플링 방법 등이 있다. Conventional techniques for minimizing the above-described aliasing include an area sampling method, a super sampling method, a multi sampling method, and the like.
상기 영역 샘플링 방법은 도 2에 도시한 바와 같이 어떤 선이나 면이 픽셀을 통과할 때에 픽셀에 걸치는 면적에 비례하여 해당 픽셀의 색상값을 결정하는 것이다. 예를 들어, 도 2의 (a)에서 검은 물체가 차지하는 면적을 1, 백색 배경이 차지하는 면적을 2라고 하면, 픽셀의 색상값은 (백색*2+검정*1)/(픽셀의 면적)에 의해 결정된다. 이러한 영역 샘플링 방법은 가장 정확한 방법이기는 하나 속도가 느린 단점이 있었다.As shown in FIG. 2, the area sampling method determines a color value of a pixel in proportion to the area of the pixel when a line or plane passes through the pixel. For example, if the area occupied by the black object is 1 and the area occupied by the white background is 2 in FIG. 2A, the color value of the pixel is equal to (white * 2 + black * 1) / (area of the pixel). Is determined by This area sampling method is the most accurate but has the disadvantage of being slow.
그리고 상기 슈퍼 샘플링 방법은 도 3에 도시한 바와 같이 픽셀을 더 작은 단위로 분할하여 영역 안의 점의 개수를 결정하는 방법이다. 즉 하나의 픽셀을 묵시적으로 4(2*2) 개의 부분화소로 분할하여 화소 밝기를 계산한 후에 평균을 취하여 하나의 픽셀 단위로 산출하는 것이다. 이러한 슈퍼 샘플링 방법은 상기한 영역 샘플링보다 속도가 빠르긴 하나 정확도가 떨어지는 문제가 있었다. The super sampling method is a method of determining the number of points in an area by dividing pixels into smaller units as shown in FIG. 3. That is, one pixel is implicitly divided into 4 (2 * 2) subpixels, the pixel brightness is calculated, and then averaged and calculated in units of one pixel. This super sampling method is faster than the area sampling but has a problem of inferior accuracy.
그리고 상기 멀티 샘플링 방법은 라인의 경계부분만 슈퍼 샘플링 방식으로 계산하는 것으로, 전체 픽셀을 부분 화소로 분할하여 계산을 하는 방식이 아니라 한 픽셀이 도형으로 다 채워지지 않는 부분만 슈퍼 샘플링 방식을 사용하여 색상값을 산출하는 것이다. 이러한 멀티 샘플링 방법은 슈퍼 샘플링보다 시간이 절약되는 장점이 있으나 연산의 정확도가 떨어지는 문제가 있었다. In addition, the multi-sampling method calculates only the boundary portion of the line by the super sampling method. Instead of dividing the entire pixel into partial pixels, the multi-sampling method uses the super sampling method only in the part where one pixel is not filled with the figure. It is to calculate the color value. This multisampling method has the advantage of saving time compared to supersampling, but has a problem of inferior accuracy of computation.
본 발명은 안티 에일리어싱을 위한 계산 과정을 단순화할 수 있으며, 안티 에일리어싱의 오차를 최소화할 수 있는 안티 에일리어싱 방법 및 장치에 관한 것이다. The present invention relates to an anti-aliasing method and apparatus that can simplify the calculation process for anti-aliasing and can minimize the error of anti-aliasing.
상기한 목적을 달성하기 위한 본 발명에 따르는 안티 에일리어싱 방법은 픽셀 내에 드로잉되는 이미지에 대한 안티 에일리어싱이 요청되면, 픽셀내에 다수의 서브 스캔 라인을 형성하는 단계; 상기 다수의 서브 스캔 라인과 상기 이미지가 겹쳐지는 구간들을 검출하는 단계; 상기 구간들의 합을 상기 다수의 서브 스캔 라인의 수로 나누어 커버리지 값을 산출하는 단계; 상기 커버리지 값에 대응되는 색상값의 색으로 상기 픽셀을 채우는 단계;를 구비함을 특징으로 한다.An anti-aliasing method according to the present invention for achieving the above object comprises the steps of forming a plurality of sub-scan lines in a pixel when anti-aliasing of an image drawn in the pixel is requested; Detecting sections in which the plurality of sub scan lines overlap the image; Calculating a coverage value by dividing the sum of the intervals by the number of sub-scan lines; And filling the pixel with a color of a color value corresponding to the coverage value.
상기한 본 발명에 따른 안티 에일리어싱은 안티 에일리어싱을 위한 계산 과정을 단순화할 수 있으며, 안티 에일리어싱의 오차를 최소화할 수 있는 효과가 있다. The anti-aliasing according to the present invention described above can simplify the calculation process for anti-aliasing and can minimize the error of anti-aliasing.
상기한 본 발명에 따른 안티 에일리어싱을 이행하는 장치의 구성을 도 4를 참조하여 설명한다. The configuration of an apparatus for implementing anti-aliasing according to the present invention described above will be described with reference to FIG.
상기 안티 에일리어싱 장치는 제어모듈(100), 메모리부(102), 사용자 인터페 이스 장치(104), 디스플레이 장치(106), 통신모듈(108)로 구성된다. The anti-aliasing device includes a
상기 제어모듈(100)은 본 발명에 따른 안티 에일리어싱을 이행한다. The
상기 메모리부(102)는 상기 제어모듈(100)의 프로그램 수행을 위한 저장영역을 제공한다.The
상기 사용자 인터페이스 장치(104)는 사용자로부터의 각종 명령 및 정보를 입력받아 상기 제어모듈(100)에 제공한다. The
상기 디스플레이 장치(106)는 상기 제어모듈(100)의 제어에 따른 정보를 표시한다. The
상기 통신모듈(108)은 상기 제어모듈(100)과 외부기기간의 통신을 이행한다. The
상기한 안티 에일리어싱 장치에 적용가능한 본 발명에 따른 안티 에일리어싱 방법을 도 5의 흐름도를 참조하여 설명한다. An anti-aliasing method according to the present invention applicable to the above anti-aliasing apparatus will be described with reference to the flowchart of FIG. 5.
상기 제어모듈(100)은 사용자 인터페이스(104)를 통해 안티 에일리어싱이 요청되는지를 체크한다(200단계). 상기 안티 에일리어싱의 대상이 되는 이미지 데이터는 통신모듈(108)을 통해 입력되거나, 사용자 인터페이스(104)를 통한 사용자 조작에 따라 생성된 것일 수 있다. The
상기 제어모듈(100)은 사용자에 의한 안티 에일리어싱이 요청되면, 안티 에일리어싱을 위해 픽셀 내에 하나 이상의 서브 스캔 라인을 형성한다(204단계). 여기서, 상기 하나 이상의 서브 스캔 라인은 수평으로 균등분할되어 위치하는 형태 및, 수직으로 균등분할되어 위치하는 형태 및, 수평으로 중앙에 근접하여 위치하는 형태 및, 수직으로 중앙에 근접하여 위치하는 형태 및, 수평으로 랜덤하게 위치하 는 형태 및, 수직으로 랜덤하게 위치하는 형태 및, 수직 및 수평으로 균등분할되어 위치하는 형태 및, 수직 및 수평으로 중앙에 근접하여 위치하는 형태 및, 수직 및 수평으로 랜덤하게 위치하는 형태 중 어느 하나가 선택될 수 있으며, 상기 서브 스캔 라인의 수 역시 선택될 수 있다. 상기 서브 스캔 라인의 형태 및 수는 안티 에일리어싱 대상이 되는 이미지 데이터 및 이미지 처리 효율에 대응되게 사용자가 선택하거나 맵핑 테이블을 통해 자동 선택될 수 있다. When anti-aliasing is requested by the user, the
상기한 하나 이상의 서브 스캔 라인의 형성이 완료된 후에, 상기 제어모듈(100)은 안티 에일리어싱 대상이 되는 픽셀내에 드로잉할 이미지와 하나 이상의 서브 스캔 라인이 겹치는 구간들을 검출한다(206단계). After the formation of the at least one sub scan line is completed, the
상기 하나 이상의 서브 스캔 라인이 겹치는 구간이 결정되면, 상기 제어모듈(100)은 상기 검출된 구간의 합을 상기 하나 이상의 서브 스캔 라인수로 나누어 커버리지 값을 산출한다(208단계). 여기서, 상기 커버리지 값의 연산을 위해서는 덧셈과 시프트를 통한 연산이 사용되므로, 커버리지 값을 산출하기 위한 연산속도가 향상된다. When the section in which the one or more sub scan lines overlap is determined, the
상기한 커버리지 값의 연산이 완료되면, 상기 제어모듈(100)은 산출된 커버리지 값에 대응되는 색상값으로 해당 픽셀을 채운다(210단계). When the calculation of the coverage value is completed, the
상기 제어모듈(100)은 상기한 과정을 사용자가 요청한 이미지 데이터에 대응되는 모든 픽셀에 대해 반복하여 이행한다(212단계).The
상기한 본 발명에 따른 안티 에일리어싱의 수행과정을 도 6 내지 도 8을 참조하여 설명한다. An anti-aliasing process according to the present invention described above will be described with reference to FIGS. 6 to 8.
상기 도 6의 (a)는 픽셀에 드로잉하고자 하고자 하는 이미지를 도시한 것이며, 도 6의 (b)는 픽셀내에 수평으로 균등하게 두 개의 서브 스캔 라인을 형성한 것을 도시한 것이다. 상기 도 6의 (b)를 참조하면, 상기 서브 스캔 라인들과 이미지가 겹쳐지는 부분에 대한 구간이 A~C로 표식되어 있다. FIG. 6A illustrates an image to be drawn on a pixel, and FIG. 6B illustrates two sub scan lines formed horizontally and evenly within the pixel. Referring to (b) of FIG. 6, a section for the portion where the sub scan lines overlap the image is marked with A to C.
상기 제어모듈(100)은 상기 서브 스캔 라인과 이미지가 겹쳐지는 구간 A~C의 합과 상기 서브 스캔 라인의 수를 나누어 커버리지 값을 산출하여, 그에 대응되는 색상값의 색으로 도 6의 (c)에 도시한 바와 같이 해당 픽셀을 채운다. The
상기 도 7의 (a)는 중심에 근접하게 서브 스캔 라인들을 형성한 것을 예시한 것으로, 도 7의 (b)는 랜덤하게 서브 스캔 라인들을 형성한 것이다. FIG. 7A illustrates sub scan lines formed close to a center, and FIG. 7B illustrates random sub scan lines.
그리고, 도 8의 (a)는 수평으로 형성한 서브 스캔 라인에 수평 이미지가 드로잉되는 경우를 도시한 것으로, 픽셀내에 수평 이미지가 포함됨에도 불구 수평 서브 스캔 라인으로는 검출할 수 없다. 이에 서브 스캔 라인을 격자 형상으로 형성하여 상기 수평 이미지를 검출할 수 있음을 도시한 것이 도 8의 (b)이다. FIG. 8A illustrates a case where a horizontal image is drawn on a horizontally formed sub scan line, and cannot be detected as a horizontal sub scan line even though the horizontal image is included in the pixel. FIG. 8B illustrates that the horizontal image can be detected by forming a sub scan line in a lattice shape.
이와 같이 본 발명은 서브 스캔 라인의 수 및 형태를 조절하여, 연산속도를 유지하면서도 안티 에일리어싱의 신뢰도를 향상시킬 수 있다. As described above, the present invention can improve the reliability of anti-aliasing while maintaining the operation speed by adjusting the number and shape of the sub scan lines.
도 1은 일반적인 에일리어싱 효과를 예시한 도면. 1 illustrates a general aliasing effect.
도 2 내지 도 3은 종래의 안티 에일리어싱 방법에 따른 영상처리예를 도시한 도면. 2 to 3 show examples of image processing according to a conventional anti-aliasing method.
도 4는 본 발명의 바람직한 실시예에 따른 안티 에일리어싱 장치의 구성도. 4 is a block diagram of an anti-aliasing device according to a preferred embodiment of the present invention.
도 5는 본 발명의 바람직한 실시예에 따른 안티 에일리어싱 방법의 흐름도. 5 is a flowchart of an anti-aliasing method according to a preferred embodiment of the present invention.
도 6 내지 도 8은 본 발명에 따른 안티 에일리어싱에 따른 영상처리예를 도시한 도면. 6 to 8 show examples of image processing according to anti-aliasing according to the present invention;
Claims (6)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020090053826A KR101025475B1 (en) | 2009-06-17 | 2009-06-17 | Anti-aliasing Method and Apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020090053826A KR101025475B1 (en) | 2009-06-17 | 2009-06-17 | Anti-aliasing Method and Apparatus |
Publications (2)
Publication Number | Publication Date |
---|---|
KR20100135454A KR20100135454A (en) | 2010-12-27 |
KR101025475B1 true KR101025475B1 (en) | 2011-04-04 |
Family
ID=43509894
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020090053826A KR101025475B1 (en) | 2009-06-17 | 2009-06-17 | Anti-aliasing Method and Apparatus |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR101025475B1 (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0415770A (en) * | 1990-05-02 | 1992-01-21 | Nippon Telegr & Teleph Corp <Ntt> | Picture generating device |
JPH0683968A (en) * | 1992-08-31 | 1994-03-25 | Ricoh Co Ltd | Picture processor |
JPH09102048A (en) * | 1995-10-03 | 1997-04-15 | Matsushita Electric Ind Co Ltd | Picture processor |
JP2003271987A (en) | 1997-07-02 | 2003-09-26 | Hewlett Packard Co <Hp> | Method of determining percentage of pixel covered by primitive |
-
2009
- 2009-06-17 KR KR1020090053826A patent/KR101025475B1/en active IP Right Grant
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0415770A (en) * | 1990-05-02 | 1992-01-21 | Nippon Telegr & Teleph Corp <Ntt> | Picture generating device |
JPH0683968A (en) * | 1992-08-31 | 1994-03-25 | Ricoh Co Ltd | Picture processor |
JPH09102048A (en) * | 1995-10-03 | 1997-04-15 | Matsushita Electric Ind Co Ltd | Picture processor |
JP2003271987A (en) | 1997-07-02 | 2003-09-26 | Hewlett Packard Co <Hp> | Method of determining percentage of pixel covered by primitive |
Also Published As
Publication number | Publication date |
---|---|
KR20100135454A (en) | 2010-12-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102023184B1 (en) | Display device, data processing apparatus and method thereof | |
JP6726946B2 (en) | Rendering method, rendering device, and electronic device | |
JP4002871B2 (en) | Method and apparatus for representing color image on delta structure display | |
US20160247440A1 (en) | Display method and display panel | |
JP6347958B2 (en) | Data processing apparatus and display system having the same | |
CN101740002B (en) | Method of calcuating correction value and display device | |
KR102287803B1 (en) | Display apparatus | |
US20160300519A1 (en) | Display Method, Display Panel and Display Device | |
WO2006080115A1 (en) | Drawing method, image generating device, and electronic information apparatus | |
CN105913481B (en) | Shadow rendering apparatus and control method thereof | |
US7969439B2 (en) | Method and apparatus for fast flicker-free displaying overlapped sparse graphs with optional shape | |
EP2947644A1 (en) | Display method and display panel | |
TW201931300A (en) | Graphic processor performing sampling-based rendering and method of operating the same | |
US20130132907A1 (en) | Shape pixel rendering | |
WO2018040676A1 (en) | Method and device for controlling brightness of organic light-emitting diode screen | |
US7495672B2 (en) | Low-cost supersampling rasterization | |
KR101025475B1 (en) | Anti-aliasing Method and Apparatus | |
KR20150020844A (en) | Method of processing image, image processing apparatus performing the method and display apparatus having the image processing apparatus | |
JP2008521102A (en) | Pixel sampling method and apparatus | |
CN110176207A (en) | Image data determination method and device and electronic equipment | |
CN113139921A (en) | Image processing method, display device, electronic apparatus, and storage medium | |
CA2742663C (en) | Figure drawing device, anti-aliasing method, and storage medium | |
US10204538B2 (en) | Image processing circuit and display device including the same | |
US11049471B2 (en) | Display control circuit | |
CN114067757A (en) | Data processing method and device and display device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for examination | ||
E902 | Notification of reason for refusal | ||
E701 | Decision to grant or registration of patent right | ||
GRNT | Written decision to grant | ||
FPAY | Annual fee payment |
Payment date: 20140320 Year of fee payment: 4 |
|
FPAY | Annual fee payment |
Payment date: 20160317 Year of fee payment: 6 |
|
FPAY | Annual fee payment |
Payment date: 20180226 Year of fee payment: 8 |
|
FPAY | Annual fee payment |
Payment date: 20190304 Year of fee payment: 9 |
|
FPAY | Annual fee payment |
Payment date: 20200303 Year of fee payment: 10 |