KR20050062834A - Half toning processing method including color information - Google Patents

Half toning processing method including color information Download PDF

Info

Publication number
KR20050062834A
KR20050062834A KR1020030093155A KR20030093155A KR20050062834A KR 20050062834 A KR20050062834 A KR 20050062834A KR 1020030093155 A KR1020030093155 A KR 1020030093155A KR 20030093155 A KR20030093155 A KR 20030093155A KR 20050062834 A KR20050062834 A KR 20050062834A
Authority
KR
South Korea
Prior art keywords
color
value
halftone
processing method
color information
Prior art date
Application number
KR1020030093155A
Other languages
Korean (ko)
Inventor
하세가와준
Original Assignee
삼성전자주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 삼성전자주식회사 filed Critical 삼성전자주식회사
Priority to KR1020030093155A priority Critical patent/KR20050062834A/en
Publication of KR20050062834A publication Critical patent/KR20050062834A/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K15/00Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers
    • G06K15/02Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers using printers
    • G06K15/18Conditioning data for presenting it to the physical printing elements
    • G06K15/1867Post-processing of the composed and rasterized print image
    • G06K15/1872Image enhancement
    • G06K15/1881Halftoning

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)
  • Image Processing (AREA)

Abstract

본 발명에 의한 칼라정보를 포함하는 하프토닝 처리 방법은, 프린트할 화소의 RGB값에 대한 휘도값과 채도 및 농도에 대한 정보를 산출하고, 각 칼라에 대응하여 사전에 설정된 복수의 하프톤 패턴배열 중에서, 상기 산출된 칼라 정보에 따라 해당하는 하프톤 패턴 배열을 선택하여 농도를 표현함을 특징으로 한다. The half-toning processing method including color information according to the present invention calculates information on luminance values, saturation, and density of RGB values of pixels to be printed, and sets a plurality of halftone patterns arranged in advance for each color. Among them, the density is represented by selecting a corresponding halftone pattern array according to the calculated color information.

본 발명에 의하면 칼라 문서에 포함된 색의 차이를 도트 배열 패턴의 차이점으로서 표현하는 것이 가능하며 색정보를 포함함으로써 흑백인쇄시의 표현기능을 향상시킬 수 있다. According to the present invention, it is possible to express the difference in the color included in the color document as the difference in the dot arrangement pattern, and the expression function in black and white printing can be improved by including the color information.

Description

칼라정보를 포함하는 하프토닝 처리 방법{Half toning processing method including color information} Half toning processing method including color information}

본 발명은 잉크젯 프린터 또는 레이저 프린터에 이용되는 디지털 하프토닝 처리 방법에 관한 것으로서, 보다 상세하게는 칼라문서에 대하여 흑백 인쇄 출력시에 있어서 프린터에 입력되는 화소의 색상에 따라 대응된 하프톤패턴 배열로 전환하여 농도를 표현할 수 있는 칼라정보를 포함한 하프토닝 처리 방법에 관한 것이다. BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a digital halftoning processing method used in an inkjet printer or a laser printer. More particularly, the present invention relates to a halftone pattern array corresponding to a color of a pixel input to a printer when a monochrome document is output to a color document. The present invention relates to a half-toning processing method including color information capable of converting to express density.

잉크젯 프린터 또는 레이저 프린터를 이용하여 문서데이터를 인쇄할 때 화상처리에 있어서, 다치(多値)로 주어진 색상을 2진 화소값으로 변환시키는 것이 요구되며, 이러한 처리를 디지털 하프토닝 처리라 한다. When printing document data using an inkjet printer or a laser printer, in image processing, it is required to convert a color given in multiple values to binary pixel values, and this processing is called digital halftoning processing.

일반적인 디지털 하프토닝 처리는 사전에 정의된 문턱값 배열을 이용하는 연속계조의 화소값을 2진 화소로 변환시키는 방법이 알려져 있으며, 프린터에서는 토너 또는 잉크만을 이용하여 인쇄하는 모드가 통상 구비되어, 칼라 입력데이터에 대하여는 이들을 흑백 2치 즉, 도트의 유무만을 나타내는 흑백 1비트값으로 변환시킬 필요가 있다. In general digital halftoning processing, a method of converting a continuous gray pixel value using a predetermined threshold array into a binary pixel is known. In a printer, a mode for printing using only toner or ink is generally provided, and color input is performed. With regard to data, it is necessary to convert these into black and white binary values, that is, black and white one-bit values indicating only the presence or absence of dots.

도 1은 종래의 하프토닝 처리 방법을 설명하기 위한 도면이다.1 is a view for explaining a conventional half-toning processing method.

우선, 프린터에서 인쇄처리 대상이 되는 문서 데이터의 내용에 따라 특정 해상도의 각 화소의 값이 좌표에 따라 RGB값 버퍼(1a)에 저장된 후 하프토닝 처리를 위한 입력 데이터로 순차적으로 독출된다. 일반적으로 RGB값 버퍼(1a)에는 한 개의 화소마다 24비트가 사용된다. First, the value of each pixel of a specific resolution is stored in the RGB value buffer 1a according to the coordinates according to the content of document data subject to print processing in the printer, and then sequentially read out as input data for half-toning processing. In general, 24 bits are used for one pixel in the RGB value buffer 1a.

또한, 하프토닝 처리의 출력 데이터를 저장하기 위해 흑백1비트버퍼(1i)가 구비되며, 출력화소의 값은 각 XY좌표에 있어서의 도트 출력의 유무를 의미하기 때문에 한 화소마다 1비트가 사용된다. In addition, a black and white 1-bit buffer 1i is provided to store the output data of the half-toning process. Since the output pixel value indicates the presence or absence of dot output in each XY coordinate, one bit is used for each pixel. .

다음에 하프톤 처리에 필요한 내부 데이터로서 하프톤 패턴 배열(1e)이 미리 정의되며, 고정 데이터로서 준비된다. 하프톤 패턴 배열(1e)은 정수형의 2차원배열로서 실장되며, 배열요소인 정수값은 다치입력 데이터를 이치화할 때 문턱값으로 이용된다. Next, the halftone pattern array 1e is previously defined as internal data necessary for halftone processing, and is prepared as fixed data. The halftone pattern array 1e is implemented as an integer two-dimensional array, and integer values as array elements are used as thresholds when binarizing multi-valued input data.

일반적으로 RGB의 24비트로 구성된 칼라데이터를 수용하는 RGB값 버퍼(1a)로부터 특정의 XY좌표에 위치하는 화소에 대응하는 RGB값(1b)을 독출하여, RGB값으로부터 농도값(1c)을 산출한다. 이때에 인용되는 변환식으로는 여러 가지가 있으나 예컨대, 수학식 1이 사용되어 질 수 있다.In general, an RGB value 1b corresponding to a pixel located at a specific XY coordinate is read from an RGB value buffer 1a containing color data composed of 24 bits of RGB, and a density value 1c is calculated from the RGB value. . At this time, there are various conversion equations cited, but for example, Equation 1 may be used.

농도값=255-0.311×(Red값)+0.626×(Green값)+0.063×(Blue값)Density value = 255-0.311 x (Red value) + 0.626 x (Green value) + 0.063 x (Blue value)

수학식 1을 포함하여, 이와 같은 변환식은 각 화소의 색을 결국 무채색인 그레이 색으로 대응시키며, 이때 색상에 관한 정보는 완전히 상실된다. Including the equation (1), this conversion corresponds to the color of each pixel eventually to achromatic gray color, where the information about the color is completely lost.

상기 XY좌표값(1d)을 인덱스로서 사전에 정의된 하프톤패턴 배열(1e)을 참조하고, 문턱값(1f)을 도출한다. 보다 구체적으로는 C언어의 형식에 따라 설명하기로 한다. The XY coordinate value 1d is referenced to the predefined halftone pattern array 1e as an index, and the threshold value 1f is derived. More specifically, the description will be made according to the format of the C language.

정의된 하프토닝 패턴배열을 HT로 하고, 정수형의 이차원 배열로서 그 크기를 참조하여, 그 크기를 제1첨자 방향을 M, 제2첨자 방향을 N으로 한다. 현재, 양의 정수로서 정의된 XY좌표(x,y)에 대하여, 문턱값(Th)는 다음의 수학식 2에 의해 얻어진다.The defined half-toning pattern array is referred to as HT, and its size is referred to as an integer two-dimensional array. Currently, for the XY coordinates (x, y) defined as positive integers, the threshold value T h is obtained by the following expression (2).

Th=HT[y%M] [x % Y]Th = HT [y% M] [x% Y]

여기서, %는 나머지를 구하는 연산자이다.Here,% is an operator to calculate the remainder.

이것은 동일한 하프톤 배열을 XY좌표계 상의 모든 면에 반복하여 타일링하여 할당한 등가이다. 하프톤패턴은 타일링의 정체 위치에서 부드럽게 연결되도록 정의될 필요가 있다. 또한, 얻어진 농도값(1c)와 문턱값(1f)을 입력으로 하여 비교처리부(1g)에서 비교처리를 실행한다. This is equivalent to assigning the same halftone array repeatedly tiled to all faces on the XY coordinate system. The halftone pattern needs to be defined to connect smoothly at the stagnant position of the tiling. In addition, the comparison processing section 1g executes a comparison process by inputting the obtained concentration value 1c and the threshold value 1f.

이 비교처리는 농도값(1c)과 문턱값(1f)을 비교하여, 농도값이 문턱값보다 작거나 같은 경우에는 도트값(1h)을 1로 출력하고, 그 외의 경우로서 문턱값보다 클 경우에는 도트값(1h)을 0으로 출력한다. 여기서, 도트값이 1일 때 도트가 찍히고, 도트값이 0일 때에는 도트가 찍히지 않는 것을 의미한다. This comparison process compares the density value 1c and the threshold value 1f, and outputs a dot value 1h as 1 when the density value is less than or equal to the threshold value, and in other cases is larger than the threshold value. Outputs a dot value 1h as zero. Here, the dot is taken when the dot value is 1, and the dot is not taken when the dot value is 0.

이 도트값(1h)은 흑백1비트 버퍼(1i)내부의 해당 X,Y 좌표값(1d)에 대응하는 화소 위치에 기록된다. X,Y 좌표값(1d)를 RGB값 버퍼(1a) 내부의 모든 화소를 순차 스캐닝하도록 변화시켜, 상기 동작을 반복함으로써 버퍼 내의 전 화소에 대하여 처리를 완료한다. This dot value 1h is recorded at the pixel position corresponding to the corresponding X, Y coordinate value 1d in the monochrome 1-bit buffer 1i. The X and Y coordinate values 1d are changed to sequentially scan all the pixels in the RGB value buffer 1a, and the above operation is repeated to complete the processing for all the pixels in the buffer.

이러한 종래의 하프토닝 처리에서는 문서 데이터 상에서 색이 서로 다른 경우에도 흑백으로 변환했을 때의 농도값이 같은 경우 완전히 동일한 도트패턴이 형성되기 때문에 원래 색상의 차이점을 인쇄 출력물로 표현할 수가 없었다. In such a conventional half-toning process, even when the colors are different from each other on the document data, when the same density values are converted to black and white, the same dot pattern is formed, and thus, differences in the original colors cannot be expressed in the printed output.

본 발명이 이루고자 하는 기술적 과제는 흑백 인쇄시에 있어서도, 원래의 칼라 정보를 활용함으로써 농도 이상의 정보를 출력물 상에 표현하는 데 있다. The technical problem to be solved by the present invention is to express information on density or more on an output by utilizing original color information even in black and white printing.

또한, 도트패턴에 있어서의 농도 표현 시에 사용할 수 있는 하프톤 패턴을 색정보를 기초로하여 바꾸고 각각의 색에 대하여 해당하는 다른 하프톤 패턴으로 표현할 수 있는 칼라정보를 포함하는 하프토닝 처리 방법을 제공하는 데 있다. In addition, a half-toning processing method comprising changing the halftone pattern that can be used when expressing the density in a dot pattern based on color information and including color information that can be expressed by a different halftone pattern corresponding to each color. To provide.

본 발명의 상기한 기술적 과제를 달성하기 위한 칼라정보를 포함하는 하프토닝 처리 방법은, Halftoning processing method including color information for achieving the above technical problem of the present invention,

프린트할 화소의 RGB값에 대한 휘도값과 채도 및 농도에 대한 정보를 산출하고, 각 칼라에 대응하여 사전에 설정된 복수의 하프톤 패턴배열 중에서, 상기 산출된 칼라 정보에 따라 해당하는 하프톤 패턴 배열을 선택하여 농도를 표현함을 특징으로 한다. Information about luminance, saturation and density of RGB values of the pixel to be printed is calculated, and a corresponding halftone pattern arrangement is generated according to the calculated color information among a plurality of halftone pattern arrangements set in advance for each color. It is characterized by expressing the concentration by selecting.

또한, 상기 하프톤 패턴 배열의 선택은 상기 화소의 RGB값으로부터 산출된 휘도값과 채도와 색상에 관한 정보를 기초로 상기 RGB값 근방의 3종류의 기본색을 특정한 후에 대응하는 3종류의 하프톤 패턴중에서 문턱값 범위 영역분할법에 의해 최적의 하프톤을 선택함을 특징을 한다.Further, the selection of the halftone pattern array is based on the luminance value calculated from the RGB value of the pixel and information on the saturation and color. Among the patterns, an optimal halftone is selected by a threshold range domain division method.

또한, 상기 기본 3색은 빨강, 녹색, 파란색임을 특징으로 한다.In addition, the basic three colors are characterized in that the red, green, blue.

또한, 상기 하프톤 패턴 배열의 선택은 상기 화소의 RGB값이 그레이 또는 복수의 기본색 근방에 있는지 여부에 따라 가장 근접된 그레이 또는 색의 해당 하프톤패턴을 선택함을 특징으로 한다. The selection of the halftone pattern array is characterized in that the corresponding halftone pattern of the nearest gray or color is selected according to whether the RGB value of the pixel is in the vicinity of gray or a plurality of primary colors.

또한, 상기 복수의 기본 색은 빨강, 녹색, 파랑, 시안, 마젠타, 노랑임을 특징으로 한다. In addition, the plurality of basic colors may be red, green, blue, cyan, magenta, and yellow.

이하 첨부 도면을 참조하여 본 발명의 실시예를 상세히 설명하기로 한다. Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings.

도 2는 본 발명의 제1실시예에 의한 하프토닝 처리를 설명하기 위한 도면이다. 2 is a diagram for explaining a half-toning process according to the first embodiment of the present invention.

디지털 하프토닝 처리의 입력 데이터에 맞는 RGB값 버퍼(2a) 및 출력 데이터에 적합한 흑백1비트 버퍼(2o)와, 다른 하프토닝 패턴을 동일 영역에 상황에 따른 비율로 중첩하여 혼합하기 위해 사용하는 블렌드패턴 배열(2f)을 구비한다. 이 블렌드패턴 배열(2f)은 통상 하프톤 패턴과 같이 문턱값을 기록한 것이다. RGB value buffer 2a suitable for input data of digital halftoning process, black and white 1-bit buffer 2o suitable for output data, and a blend used to mix different half-toning patterns in the same area in superimposed proportions. The pattern arrangement 2f is provided. This blend pattern array 2f records the threshold value like a normal halftone pattern.

마찬가지로 하프톤 패턴 배열인 패턴 배열1 내지 7(2j)을 구비한다. 이들의 하프톤 패턴 배열(2j)은 프린터의 특성이나 그 밖의 사양에 따라서 정의되는 것이며, 예컨대, 레이저 프린터에 있어서는 도트의 확장 방향을 특정 핵의 주위에 집중시키는 도트 집중형 하프톤을 이용하는 것이 표준적이다. 특히 정방격자 모양으로 핵을 배치하는 경우에는 하프톤 사이즈는 X방향, Y방향으로 같게 된다. Similarly, pattern arrays 1 to 7 (2j), which are halftone pattern arrays, are provided. These halftone pattern arrays 2j are defined according to the characteristics of the printer or other specifications. For example, in laser printers, it is standard to use dot-intensive halftones that focus the extension direction of dots around a specific nucleus. Enemy In particular, when the nuclei are arranged in a square lattice shape, the halftone sizes are the same in the X and Y directions.

본 발명에 있어서 각 하프톤 패턴 배열은 사전에 결정된 특정의 기본색 예컨대, 빨강, 노랑, 녹색, 시안, 파랑, 마젠타, 그레이의 7가지 색마다 정의되며 동일한 농도의 패턴을 비교했을 때에 용이하게 패턴의 차이를 식별할 수 있도록 패턴을 이루는 선의 숫자나 선의 각도, 망점(網點)형상 등을 변화시켜 놓는다. 이때, 각 하프톤 패턴 배열의 사이즈는 서로 상이해도 된다. In the present invention, each halftone pattern arrangement is defined for each of seven colors of a predetermined predetermined primary color such as red, yellow, green, cyan, blue, magenta, and gray, and is easily patterned when comparing patterns of the same density. The number of lines forming the pattern, the angle of the line, and the halftone shape are changed to identify the difference between them. At this time, the size of each halftone pattern array may differ from each other.

또한, 프린트될 화소의 RGB값(2b)으로부터 계산된 색에 관한 정보, 즉 색상 및 채도(2d)와, 브랜드 패턴 배열의 요소인 문턱값(2g)을 근거로 화소의 RGB값을 2치화하기 위해서 최적의 패턴 배열을 선택하는 하프톤 배열선택(2h)을 구비하며, 그 선택결과에 기초하여 패턴 배열 중에서 1개의 배열을 선택한다. 선택된 하프톤 패턴 배열(2k)은 이 선택처리(2j)는 이 선택 처리(2j)에 의해 선택된 패턴 배열을 나타내고 있다. In addition, binarizing the RGB values of the pixels based on the information about the color calculated from the RGB values 2b of the pixels to be printed, that is, the hue and saturation 2d, and the threshold value 2g that is an element of the brand pattern array. In order to select an optimal pattern array, halftone array selection 2h is provided, and one array is selected from the pattern arrays based on the selection result. The selected halftone pattern array 2k represents the pattern array selected by this selection process 2j.

또한, 본 구성은 RGB값(2b)로부터 산출된 농도값(2c)과 선택된 하프톤 패턴 배열(2k)의 요소인 문턱값(21)을 비교하여, 도트값을 출력하는 비교처리부(2m)를 구비한다. In addition, this configuration compares the density value 2c calculated from the RGB value 2b with the threshold value 21, which is an element of the selected halftone pattern array 2k, and compares the comparison processing unit 2m for outputting the dot value. Equipped.

본 발명의 제 1실시예의 구성이 도 1에 도시된 종래의 방식과 다른 점은 복수의 하프톤 패턴 배열로부터 패턴을 선택하는 것이며, 그 선택을 위한 색상 및 채도(2d)의 산출, 블렌드 패턴 배열(2f), 하프톤 패턴 배열선택부(2h) 등이 추가된다. 하프톤의 선택 이외의 동작은 도 1에 도시된 종래의 방식과 동일하며, 이에 대한 상세한 설명은 생략한다. The configuration of the first embodiment of the present invention differs from the conventional method shown in Fig. 1 by selecting a pattern from a plurality of halftone pattern arrangements, calculating the color and saturation 2d for the selection, and blend pattern arrangement. (2f), halftone pattern arrangement selector 2h, and the like are added. Operation other than the selection of the halftones is the same as the conventional method shown in FIG. 1, and a detailed description thereof will be omitted.

이하에서는, RGB값(2b)으로부터 하프톤 패턴 배열을 선택하는 방법에 대하여 상세히 설명한다. Hereinafter, a method of selecting a halftone pattern array from the RGB values 2b will be described in detail.

도 3은 도 2에서의 입력된 RGB값이 인접한 3종류의 하프톤 패턴의 합성에 의해 처리되는 것을 설명하기 위한 도면으로서, RGB 색공간을 그레이 축과 수직한 면에 투영시킨 도면이다. 3 is a view for explaining that the input RGB values in FIG. 2 are processed by synthesizing three adjacent halftone patterns, and projecting the RGB color space onto a plane perpendicular to the gray axis.

도 3에서, 빨강, 노랑, 녹색, 시안, 파랑, 마젠타, 그레이의 7가지의 기본색에 각각 다른 대응된 하프토닝 패턴을 설정되고, 중앙에는 그레이색이 할당되어 있으며, 각각의 격자점에는 하나의 기본색이 할당되어 있다. 서로 이웃한 격자점은 서로 접한 6개의 삼각 영역을 형성한다. In FIG. 3, halftone patterns corresponding to the seven primary colors of red, yellow, green, cyan, blue, magenta, and gray are respectively set, gray is assigned to the center, and one grid point is assigned to each grid point. The default color of is assigned. Adjacent grid points form six triangular regions in contact with each other.

이중 환으로 표시된 점(40)은 입력된 화소의 RGB값을 나타낸다. 모든 화소의 RGB값은 적당한 변환처리를 적용함으로써 도 3상에서의 어딘가의 점에 대응되며, 그 점은 상기 6개의 삼각영역 중 적어도 1개의 영역에 포함된다. The point 40 indicated by the double ring represents the RGB value of the input pixel. The RGB values of all the pixels correspond to somewhere in Fig. 3 by applying an appropriate conversion process, which is included in at least one of the six triangular areas.

본 실시예에서는 삼각형 영역의 3개 정점의 하프톤 패턴의 합성에 의해 영역내부의 RGB값 입력에 대한 하프토닝 처리를 행한다. 색상은 대응하는 삼각형 영역의 그레이 이외의 2색, 즉 메인칼라와 서브칼라의 특정과 그 혼합의 가중 계수(Wmain)에 의해 표현된다.In this embodiment, halftoning processing is performed for inputting RGB values in the region by synthesizing the halftone patterns of three vertices of the triangular region. The color is represented by two colors other than gray in the corresponding triangular area, namely the specification of the main color and the sub color and the weighting coefficient Wmain of the mixture thereof.

실제 색상의 산출처리의 예를 도 4 및 표 1을 참조하여 설명한다. 빨강, 녹색, 파랑, 휘도, 채도, Wmain의 값은 0.0에서 1.0까지의 범위로 설정되어 있다고 정의한다. An example of the calculation process of the actual color will be described with reference to FIG. 4 and Table 1. FIG. Red, green, blue, luminance, saturation, and Wmain are defined in the range 0.0 to 1.0.

도 4는 도 2의 화소의 RGB값과 근접한 3개의 기본색을 선택하는 방법을 설명하기 위한 흐름도이다. 4 is a flowchart illustrating a method of selecting three primary colors close to the RGB values of the pixel of FIG. 2.

RGB값을 비교하여 가장 큰값의 색을 메인칼라로 설정하고, 2번째로 큰 값을 갖는 중간 칼라(Midcolor)로 설정하며, 아래 표 1에서 메인칼라와 중간칼라가 서로 직교하여 교차되는 위치에 있는 칼라를 서브칼라로서 결정한다(50 및 51 단계). Compare the RGB values and set the color of the largest value to the main color, and set the color to the middle color with the second largest value, and in the position where the main color and the middle color cross at right angles to each other in Table 1 below. The color is determined as a subcolor (steps 50 and 51).

또한, RGB값을 비교하여 가장 작은 값의 색을 로우칼라로 설정하고(52 단계), 메인칼라값이 로우칼라값과 같은지를 비교한다(53 단계). 53 단계에서 칼라값이 서로 상이하면 Wmain=(메인칼라값-중간칼라값)/(중간칼라값-로우칼라값)으로 설정하고(54 단계), 칼라값이 서로 같으면 Wmain을 0으로 설정한다(56 단계). In addition, by comparing the RGB values, the color of the smallest value is set to the low color (step 52), and the main color value is compared with the low color value (step 53). In step 53, if the color values are different from each other, set Wmain = (main color value-middle color value) / (middle color value-low color value) (step 54), and if the color values are the same, set Wmain to 0 ( Step 56).

다음에 RGB값으로부터 휘도(brightness)와 농도값 및 채도(saturation)의 산출에 대하여 설명한다. 휘도는 다음 수학식 3에 의해 산출된다. Next, calculation of brightness, density value, and saturation from RGB values will be described. The luminance is calculated by the following equation.

휘도=Cred×Red값+Cgreen×Green값 + Cblue ×Blue값Luminance = Cred × Red Value + Cgreen × Green Value + Cblue × Blue Value

단, Cred + Cgreen + Cblue = 1.0과, Cred>0, Cgreen>0, Cblue>0의 조건으로 한다.However, Cred + Cgreen + Cblue = 1.0 and Cred> 0, Cgreen> 0, and Cblue> 0.

도 2의 농도값(2c)은 상기 휘도의 값으로부터 다음 수학식 4에 의해 산출된다. The concentration value 2c of FIG. 2 is calculated by the following equation (4) from the luminance value.

농도값=DensityMax ×(1.0-휘도)Density value = Density Max × (1.0-luminance)

여기서, DensityMax는 농도값의 최대치이다. Here, DensityMax is the maximum value of the concentration value.

채도는 다음 수학식 5에 의해 산출된다.Saturation is calculated by the following equation.

채도= 0.0 (휘도가 0.0 또는 1.0인 경우)Saturation = 0.0 (when luminance is 0.0 or 1.0)

= max (1.0-Red/휘도, (Red-휘도)/(1.0-휘도)    = max (1.0-Red / luminance, (Red-luminance) / (1.0-luminance)

,(1.0-Green/휘도, (Green-휘도)/(1.0-휘도), (1.0-Green / Brightness, (Green-Brightness) / (1.0-Brightness)

,(1.0-Blue/휘도, (Blue-휘도)/(1.0-휘도)) (휘도가 0.0 과 1.0 이외의 값인 경우) , (1.0-Blue / luminance, (Blue-luminance) / (1.0-luminance)) (when luminance is anything other than 0.0 and 1.0)

여기서, Max(a,b,c,d,e,f)는 a,b,c,d,e,f 중에서 가장 큰값을 의미한다. 이상에서 메인칼라와 서브칼라의 특정과 채도, Wmain의 산출이 완료된다. Here, Max (a, b, c, d, e, f) means the largest value among a, b, c, d, e, f. In the above, the calculation of the specification, saturation and Wmain of the main color and the sub color is completed.

상기 산출한 값을 이용하여 3종의 다른 하프톤 패턴을 합성하는 처리를 도 5를 이용하여 설명한다. A process of synthesizing three different halftone patterns using the calculated value will be described with reference to FIG.

도 5는 본 발명의 제1실시예에서의 3종류의 하프톤 패턴을 합성하는 방법을 설명하기 위한 도면이다. FIG. 5 is a diagram for explaining a method of synthesizing three kinds of halftone patterns in the first embodiment of the present invention.

우선, 수학식 2를 이용하여 XY 좌표값(2e)으로부터 블렌드 패턴 배열(2f)을 참조하여, 문턱값(T)을 산출한다. First, the threshold value T is calculated by referring to the blend pattern array 2f from the XY coordinate values 2e using Equation (2).

산출된 문턱값(T)을 채도 및 Wmain의 값으로부터 구해진 2개의 경계값의 크기와 비교하여, 3분할된 메인칼라영역(61) 및 서브칼라영역(60), 그레이 영역(62)과 문턱값 영역 중 어느 영역에 포함되는지를 판정하며, 이 판정결과로부터 대응하는 하프톤 패턴 배열을 선택한다. The calculated threshold value T is compared with the magnitudes of the two boundary values obtained from the values of saturation and Wmain, and the three-divided main color area 61 and subcolor area 60, gray area 62 and threshold value are compared. It is determined which area of the area is included, and the corresponding halftone pattern array is selected from the result of the decision.

상술한 처리를 이하에서 문턱값 범위 영역 분할법으로 칭하기로 한다. The above-described processing will be referred to as threshold range region division method below.

이상의 방법에서 선택된 하프톤 패턴 배열을 이용하여 상술한 종래기술에서의 순서에 따라 하프토닝 처리를 수행한다. 문턱값 범위 영역 분할법을 이용한 본 실시예의 방식에 의하면 다른 하프톤 패턴을 이음매 없이 바꿀 수가 있으며, 연속적인 색의 변화를 갖는 칼라 문서에 대하여 자연스러운 이진화상을 얻을 수 있다. Using the halftone pattern array selected in the above method, the half-toning process is performed according to the above-described conventional technique. According to the method of this embodiment using the threshold range region dividing method, other halftone patterns can be seamlessly changed, and a natural binary image can be obtained for color documents having continuous color changes.

도 6은 본 발명의 제2실시예에 의한 하프토닝 처리를 설명하기 위한 도면이다. 6 is a diagram for explaining a half-toning process according to the second embodiment of the present invention.

제2실시예는 도 2에 도시된 제1실시예와 대부분 동일한 처리단계로 이루어져 있으며 동일한 부분은 설명을 생략하고, 서로 상이한 처리 단계에 대해서만 설명하기로 한다. The second embodiment is composed mostly of the same processing steps as the first embodiment shown in FIG. 2, and the same parts will be omitted and only different processing steps will be described.

사전에 정의된 각 기본색에 대응된 하프톤 패턴 배열로부터 적당한 패턴 배열을 선별하는 것은 동일하지만, 제2실시예의 하프토닝 처리에서는 블렌드패턴 배열(2f)을 구비하고 있지 않으며, 복수의 하프톤 패턴을 시뮬레스로 합성함이 없이 단순히 바꾸어 하프토닝 처리하는 것이 특징이다. 또한, RGB값(3b)만을 이용하여 하프톤 패턴 배열선택(3d)에서 표시된 처리를 수행한다. Selecting an appropriate pattern array from the halftone pattern arrays corresponding to the respective primary colors defined in advance is the same, but the halftoning process of the second embodiment does not include the blend pattern array 2f, and the plurality of halftone patterns Rather than synthesizing into a simulation, it is simply changed and half-toned. Further, the processing shown in halftone pattern arrangement selection 3d is performed using only the RGB value 3b.

제1실시예의 구성의 동작과 다른 부분은 하프톤 패턴 배열 선택의 처리방법으로서, 하프톤 패턴배열처리는 RGB값(3a)을 유입하여, 표 2에 보이는 판정 조건에 의해 사용하는 하프톤 패턴배열을 결정한다. RGB값이 그레이를 제거한 나머지 기본색인 6색과 근접한 경우에는 해당 색의 하프톤 패턴을 사용하고, 그 외의 경우는 그레이용의 하프톤 패턴배열을 사용한다.A part different from the operation of the configuration of the first embodiment is a halftone pattern array selection processing method, wherein the halftone pattern array processing flows RGB values 3a and uses the halftone pattern arrays according to the determination conditions shown in Table 2 below. Determine. When the RGB value is close to the six primary colors after removing gray, the halftone pattern of the corresponding color is used, and the other halftone pattern array for gray is used.

이상의 방법을 이용한 경우에는 무채색으로부터 기본색에 이르는 RGB값의 연속적인 계조에 대하여 기본색 근처에서의 도트 패턴의 급격한 변화가 나타난다. 그러나, 통상의 칼라 사진화상에서는 기본색이 나타나는 것은 없으며, 실용상의 가치가 감소되는 것은 아니다.In the case of using the above method, a sudden change in the dot pattern near the primary color occurs for successive gradations of RGB values ranging from achromatic to primary colors. However, the basic color does not appear in a normal color photograph image, and the practical value is not reduced.

상술한 바와 같이, 본 발명에 의한 색상정보를 포함한 하프토닝 처리 방법은 칼라 문서에 포함된 색의 차이를 도트 배열 패턴의 차이점으로서 표현하는 것이 가능하며 색정보를 포함함으로써 흑백인쇄시의 표현기능을 향상시킬 수 있다. As described above, the half-toning processing method including the color information according to the present invention can express the color difference included in the color document as the difference of the dot array pattern, and includes the color information to express the expression function in black and white printing. Can be improved.

도 1은 종래의 프린터에서의 하프토닝 처리 방법을 설명하기 위한 도면이다. 1 is a diagram for explaining a half-toning processing method in a conventional printer.

도 2는 본 발명의 제1실시예에 의한 하프토닝의 각 처리 단계를 설명하기 위한 도면이다. 2 is a view for explaining each processing step of half toning according to the first embodiment of the present invention.

도 3은 도 2의 입력된 화소의 RGB값이 인접한 3종류의 하프톤 패턴의 합성에 의해 처리되는 것을 설명하기 위한 도면이다. FIG. 3 is a diagram for explaining that RGB values of the input pixel of FIG. 2 are processed by synthesizing adjacent three kinds of halftone patterns.

도 4는 도 2의 화소의 RGB값과 근접한 3개의 기본색을 선택하는 방법을 설명하기 위한 흐름도이다. 4 is a flowchart illustrating a method of selecting three primary colors close to the RGB values of the pixel of FIG. 2.

도 5는 본 발명의 제1실시예에서의 3종류의 하프톤 패턴을 합성하는 방법을 설명하기 위한 도면이다.FIG. 5 is a diagram for explaining a method of synthesizing three kinds of halftone patterns in the first embodiment of the present invention.

도 6은 본 발명의 제2실시예에 의한 하프토닝 처리를 설명하기 위한 도면이다. 6 is a diagram for explaining a half-toning process according to the second embodiment of the present invention.

<도면의 주요 부분에 대한 부호의 설명><Explanation of symbols for the main parts of the drawings>

2a,3a ... RGB값 버퍼, 2f...블렌드패턴 배열2a, 3a ... RGB value buffer, 2f ... blend pattern array

2h, 3d...하프톤패턴 배열 선택, 2k,3g...선택된 하프톤배턴 배열2h, 3d ... halftone pattern array selection, 2k, 3g ... selected halftone baton array

2m,3j...비교처리부, 2o,3l...흑백 1비트 버퍼 2m, 3j ... computing section, 2o, 3l ... monochrome 1-bit buffer

60...서브칼라 영역, 61...메인칼라 영역60 ... sub-collar area, 61 ... main-color area

62...그레이칼라 영역.62 ... in grayscale area.

Claims (5)

프린트할 화소의 RGB값에 대한 휘도값과 채도 및 농도에 대한 정보를 산출하고, 각 칼라에 대응하여 사전에 설정된 복수의 하프톤 패턴배열 중에서, 상기 산출된 칼라 정보에 따라 해당하는 하프톤 패턴 배열을 선택하여 농도를 표현함을 특징으로 하는 칼라정보를 포함하는 하프토닝 처리 방법.Information about luminance, saturation and density of RGB values of the pixel to be printed is calculated, and a corresponding halftone pattern arrangement is generated according to the calculated color information among a plurality of halftone pattern arrangements set in advance for each color. Halftoning processing method comprising the color information, characterized in that to express the concentration by selecting. 제 1항에 있어서, 상기 하프톤 패턴 배열의 선택은 상기 화소의 RGB값으로부터 산출된 휘도값과 채도와 색상에 관한 정보를 기초로 상기 RGB값 근방의 3종류의 기본색을 특정한 후에 대응하는 3종류의 하프톤 패턴중에서 문턱값 범위 영역분할법에 의해 최적의 하프톤을 선택함을 특징으로 하는 칼라정보를 포함하는 하프토닝 처리 방법. The method according to claim 1, wherein the selection of the halftone pattern array is performed after specifying three basic colors in the vicinity of the RGB value based on the luminance value calculated from the RGB value of the pixel and information on the saturation and color. A half-toning processing method comprising color information characterized in that an optimal halftone is selected by a threshold range region division method among kinds of halftone patterns. 제 1항에 있어서, 상기 기본 3색은 빨강, 녹색, 파란색임을 특징으로 하는 칼라정보를 포함하는 하프토닝 처리 방법.The halftoning processing method of claim 1, wherein the basic three colors are red, green, and blue. 제 1항에 있어서, 상기 하프톤 패턴 배열의 선택은 상기 화소의 RGB값이 그레이 또는 복수의 기본색 근방에 있는지 여부에 따라 가장 근접된 그레이 또는 색의 해당 하프톤패턴을 선택함을 특징으로 하는 칼라정보를 포함하는 하프토닝 처리 방법.2. The method of claim 1, wherein the selection of the halftone pattern array selects the corresponding halftone pattern of the closest gray or color depending on whether the RGB value of the pixel is near gray or a plurality of primary colors. Halftoning processing method including color information. 제 4항에 있어서, 상기 복수의 기본 색은 빨강, 녹색, 파랑, 시안, 마젠타, 노랑임을 특징으로 하는 칼라정보를 포함하는 하프토닝 처리 방법.5. The half-toning processing method of claim 4, wherein the plurality of basic colors are red, green, blue, cyan, magenta, and yellow.
KR1020030093155A 2003-12-18 2003-12-18 Half toning processing method including color information KR20050062834A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020030093155A KR20050062834A (en) 2003-12-18 2003-12-18 Half toning processing method including color information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020030093155A KR20050062834A (en) 2003-12-18 2003-12-18 Half toning processing method including color information

Publications (1)

Publication Number Publication Date
KR20050062834A true KR20050062834A (en) 2005-06-28

Family

ID=37254752

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020030093155A KR20050062834A (en) 2003-12-18 2003-12-18 Half toning processing method including color information

Country Status (1)

Country Link
KR (1) KR20050062834A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20190079107A (en) 2017-12-27 2019-07-05 충북대학교 산학협력단 Method for drawing map of color interaction network

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20190079107A (en) 2017-12-27 2019-07-05 충북대학교 산학협력단 Method for drawing map of color interaction network

Similar Documents

Publication Publication Date Title
EP0495914B1 (en) Color digital halftoning with vector error diffusion
US7139098B2 (en) System and method of trapping for correcting for separation misregistration in color printing
US6345117B2 (en) Method for automatic trap selection for correcting for separation misregistration in color printing
JP4165570B2 (en) Image processing apparatus, image processing method, and image processing program
JP5014475B2 (en) Image processing apparatus and image processing method
EP0835024A2 (en) Printing black and white reproducible color documents
US20110141501A1 (en) Image processing apparatus, image processing method, and computer program product
JP5634154B2 (en) Image processing apparatus and image processing method
EP3329664B1 (en) Apparatus, method, and program for processing image
US6995881B2 (en) Image processing method and program capable of reducing graininess
JP3658123B2 (en) Image processing method and apparatus
US20150178606A1 (en) Image processing apparatus
JP5112356B2 (en) Screen forming apparatus, screen forming method, and image processing apparatus
US6643030B1 (en) Quantization method for color document reproduction in a color printing system
KR20050062834A (en) Half toning processing method including color information
JP6765103B2 (en) Image processing device, image processing program and image processing method
JP2005295131A (en) Apparatus, method, and program for processing image
JP2009159284A (en) Color data conversion apparatus, color data conversion method and color data conversion program
JP2008271131A (en) Method and device for image processing, and image forming apparatus
JP4027300B2 (en) Image processing method, image processing apparatus, image forming apparatus, computer program, and recording medium
KR20220127978A (en) Apparatus and method for generating black-and-white image by preserving halftone pattern of image from color image separated by CMYK color space
JP3412699B2 (en) Image forming device
JP2024029617A (en) Image processing device, control method for image processing device, and program
JP2005269131A (en) Image processing apparatus, image processing method, and image processing program
JP4492723B2 (en) Image processing apparatus, image processing method, and image processing program

Legal Events

Date Code Title Description
WITN Withdrawal due to no request for examination