KR20050113510A - Apparatus and method of processing halftoning - Google Patents
Apparatus and method of processing halftoning Download PDFInfo
- Publication number
- KR20050113510A KR20050113510A KR1020040038725A KR20040038725A KR20050113510A KR 20050113510 A KR20050113510 A KR 20050113510A KR 1020040038725 A KR1020040038725 A KR 1020040038725A KR 20040038725 A KR20040038725 A KR 20040038725A KR 20050113510 A KR20050113510 A KR 20050113510A
- Authority
- KR
- South Korea
- Prior art keywords
- pixel
- storage unit
- value
- unit
- toning
- Prior art date
- Legal status (The legal status 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 status listed.)
- Withdrawn
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N1/00—Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
- H04N1/40—Picture signal circuits
- H04N1/405—Halftoning, i.e. converting the picture signal of a continuous-tone original into a corresponding signal showing only two levels
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Facsimile Image Signal Circuits (AREA)
- Image Processing (AREA)
Abstract
하프토닝 처리장치 및 방법이 개시된다. 하프토닝 처리장치는 렌더링된 칼라별 데이터를 수신하고, 사용자로부터 수신된 하프토닝 명령을 처리하는 명령처리부; 상기 칼라별 데이터 중 하프토닝 처리되어질 화소의 농도값을 기록용지에서의 위치와 대응하도록 저장하는 제1 저장부; 상기 제1 저장부의 소정 위치에 저장된 화소의 농도값과 비교하기 위한 문턱값을 미리 정의되어 있는 하프톤패턴 배열로부터 하프토닝 처리되어질 화소의 라인각도를 고려하여 결정하는 문턱값 결정부; 상기 제1 저장부로부터 독출되는 소정 위치의 화소의 농도값을 상기 문턱값과 비교하고, 비교결과에 따른 이진값을 출력하는 비교부; 및 상기 비교부로부터 출력되는 이진값을 해당 화소의 위치에 저장하는 제2 저장부로 이루어진다.An apparatus and method for half toning are disclosed. The half toning processing apparatus includes a command processing unit for receiving rendered color-specific data and processing a half toning command received from a user; A first storage unit storing a density value of a pixel to be half-toned among the color-specific data to correspond to a position on a recording sheet; A threshold value determination unit that determines a threshold value for comparing the density value of the pixel stored at a predetermined position of the first storage unit in consideration of a line angle of a pixel to be halftoned from a predefined halftone pattern array; A comparison unit which compares the density value of the pixel at a predetermined position read from the first storage unit with the threshold value, and outputs a binary value according to a comparison result; And a second storage unit which stores the binary value output from the comparison unit at a position of the corresponding pixel.
Description
본 발명은 디지털 하프토닝 처리장치 및 방법에 관한 것으로서, 특히 하프토닝처리의 대상이 단일 라인 혹은 다각형이고 라인의 굵기가 소정의 기준 굵기보다 가는 경우, 미리 정의된 하프톤 패턴배열로부터 단일 라인 혹은 다각형을 이루는 라인의 각도를 고려하여 문턱값을 결정하고, 이를 이용하여 하프토닝 처리를 수행하기 위한 장치 및 방법에 관한 것이다.BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an apparatus and method for digital halftoning, and in particular, when the object of halftoning is a single line or polygon and the thickness of the line is smaller than a predetermined reference thickness, the single line or polygon from a predefined halftone pattern array. The present invention relates to an apparatus and a method for determining a threshold value in consideration of an angle of a line forming a line, and performing a half-toning process using the same.
잉크젯 프린터 혹은 레이저 프린터를 이용하여 문서데이터를 인쇄함에 있어서, 다치로 주어지는 흑백 혹은 칼라 화소를 이치의 흑백 화소로 변환할 필요가 있으며, 이러한 변환처리를 하프토닝 처리라 한다. 일반적인 하프토닝 처리에서는 미리 정의된 문턱값패턴을 이용하여 다치 화소값을 이치 화소값으로 변환시키는 방법이 널리 알려져 있다. 이에 따르면, 하프토닝 처리되어질 화소의 값이 문턱값보다 큰 경우에는 '1', 문턱값보다 작은 경우에는 '0'을 출력한다. '1'을 출력하는 경우에는 도트를 인쇄하는 것으로 의미하고, '0'을 출력하는 경우에는 도트를 인쇄하지 않는 것을 의미한다. In printing document data using an inkjet printer or a laser printer, it is necessary to convert monochrome or color pixels given as multiple values into binary monochrome pixels, and such conversion processing is called half-toning processing. In general half-toning processing, a method of converting a multi-value pixel value to a binary pixel value using a predefined threshold pattern is widely known. According to this, if the value of the pixel to be half-toned is greater than the threshold value, '1' is output, and if it is smaller than the threshold value, '0' is output. In the case of outputting '1', the dot is printed. In the case of outputting '0', the dot is not printed.
한편, 하프토닝 처리의 대상에는 라스터 화상 전체, 텍스트 데이터의 폰트, 점, 다각형, 및 단일 라인 등을 들 수 있다. 이 중, 단일 라인 및 다각형에 대한 하프토닝 처리에 있어서 단일 라인이나 다각형의 한 변을 이루는 라인이 1 화소 내지 수 화소의 굵기를 가지는 미세한 라인인 경우 하프톤 패턴에 의해 미리 정의되는 스크린 각도와 하프토닝처리되어질 라인의 위치에 따라서 하프토닝처리가 완료된 이후의 라인의 농도값이 변화하게 된다. 예를 들어, 45도의 스크린 도트배열을 갖는 하프톤 패턴의 경우, 라인 각도가 기록용지의 수평축에 대하여 0도 혹은 90도가 아닌 경우에는 하프토닝 처리가 불안정하게 되고, 그 결과 하프토닝 처리된 라인의 화소 배열이 원래의 화소배열과 매우 다르게 되어 부자연스러운 화상을 출력하게 되는 문제점이 있다.On the other hand, the half-toning process includes the entire raster image, the font of text data, a dot, a polygon, a single line, and the like. Among these, in the half-toning process for a single line and a polygon, a screen angle and half predefined by a halftone pattern when the single line or the line forming one side of the polygon are fine lines having a thickness of 1 to several pixels. The concentration value of the line after the half-toning process is changed according to the position of the line to be toned. For example, in the case of a halftone pattern having a screen dot array of 45 degrees, when the line angle is not 0 degrees or 90 degrees with respect to the horizontal axis of the recording paper, the half toning process becomes unstable, and as a result, There is a problem that the pixel array is very different from the original pixel array, resulting in an unnatural image.
본 발명이 이루고자 하는 기술적 과제는 하프토닝처리의 대상이 단일 라인 혹은 다각형이고 라인의 굵기가 소정의 기준 굵기보다 가는 경우, 미리 정의된 하프톤 패턴으로부터 단일 라인 혹은 다각형을 이루는 라인의 각도를 고려하여 문턱값을 결정하고, 이를 이용하여 하프토닝 처리를 수행하는 장치 및 방법을 제공하는데 있다.The technical problem to be achieved by the present invention is to consider the angle of the line forming a single line or polygon from a predefined halftone pattern, when the half-toning process is a single line or polygon and the line thickness is smaller than a predetermined reference thickness An apparatus and method for determining a threshold value and performing half-toning process using the same are provided.
상기 기술적 과제를 달성하기 위하여 본 발명의 제1 면에 따른 하프토닝 처리장치는 렌더링된 칼라별 데이터를 수신하고, 사용자로부터 수신된 하프토닝 명령을 처리하는 명령처리부; 상기 칼라별 데이터 중 하프토닝 처리되어질 화소의 농도값을 기록용지에서의 위치와 대응하도록 저장하는 제1 저장부; 상기 제1 저장부의 소정 위치에 저장된 화소의 농도값과 비교하기 위한 문턱값을 미리 정의되어 있는 하프톤패턴 배열로부터 하프토닝 처리되어질 화소의 라인각도를 고려하여 결정하는 문턱값 결정부; 상기 제1 저장부로부터 독출되는 소정 위치의 화소의 농도값을 상기 문턱값과 비교하고, 비교결과에 따른 이진값을 출력하는 비교부; 및 상기 비교부로부터 출력되는 이진값을 해당 화소의 위치에 저장하는 제2 저장부를 포함한다.In order to achieve the above technical problem, the half-toning processing apparatus according to the first aspect of the present invention includes a command processor for receiving rendered color-specific data and processing a half-toning command received from a user; A first storage unit storing a density value of a pixel to be half-toned among the color-specific data so as to correspond to a position on a recording sheet; A threshold value determination unit that determines a threshold value for comparing the density value of the pixel stored at a predetermined position of the first storage unit in consideration of a line angle of a pixel to be halftoned from a predefined halftone pattern array; A comparison unit which compares the density value of the pixel at a predetermined position read from the first storage unit with the threshold value, and outputs a binary value according to a comparison result; And a second storage unit which stores the binary value output from the comparison unit at a position of the corresponding pixel.
상기 문턱값 결정부는 상기 칼라별 데이터 중 하프토닝 처리되어질 화소의 라인각도를 기록용지에서의 위치와 대응하도록 저장하는 제3 저장부; 상기 하프토닝 처리되어질 화소의 좌표값을 상기 라인각도 만큼 회전시키는 좌표회전부; 및 문턱값들로 이루어지는 하프톤 패턴을 저장하며, 입력되는 좌표값을 이용하여 인덱스를 산출하고, 상기 인덱스에 해당하는 위치에 저장된 문턱값을 상기 비교부로 제공하는 제4 저장부로 이루어지는 것이 바람직하다.The threshold determining unit may further include: a third storage unit storing a line angle of a pixel to be half-toned among the color-specific data to correspond to a position on a recording sheet; A coordinate rotating unit rotating the coordinate value of the pixel to be half-toned by the line angle; And a fourth storage unit storing a halftone pattern formed of threshold values, calculating an index using input coordinate values, and providing a threshold value stored at a position corresponding to the index to the comparison unit.
상기 문턱값 결정부는 하프토닝의 대상에 따라서, 상기 제1 저장부로부터 하프토닝 처리되어질 화소의 좌표값을 상기 좌표회전부 및 상기 제4 저장부 중 하나로 선택적으로 제공하는 절환부를 더 포함하는 것이 바람직하다.Preferably, the threshold value determination unit further includes a switching unit for selectively providing a coordinate value of a pixel to be half-toned from the first storage unit to one of the coordinate rotation unit and the fourth storage unit according to the object of half-toning. .
상기 기술적 과제를 달성하기 위하여 본 발명의 제2 면에 따른 하프토닝 처리방법은 (a) 하프토닝 처리되어질 화소의 좌표값을 상기 화소가 속하는 라인의 각도에 대응하여 회전시켜 회전된 좌표값을 획득하는 단계; (b) 상기 회전된 좌표값을 이용하여 인덱스를 산출하고, 문턱값들로 이루어지는 하프톤 패턴으로부터 상기 인덱스에 해당하는 위치의 문턱값을 결정하는 단계; 및 (c) 상기 하프토닝 처리되어질 화소의 농도값을 상기 문턱값과 비교하고, 비교결과에 따른 이진값을 생성하는 단계를 포함한다.In order to achieve the above technical problem, the half-toning processing method according to the second aspect of the present invention (a) obtains a rotated coordinate value by rotating a coordinate value of a pixel to be half-toned corresponding to an angle of a line to which the pixel belongs. Doing; (b) calculating an index using the rotated coordinate values and determining a threshold value of a position corresponding to the index from a halftone pattern formed of threshold values; And (c) comparing the density value of the pixel to be half-toned with the threshold value and generating a binary value according to the comparison result.
상기 방법은 바람직하게는 컴퓨터에서 실행시키기 위한 프로그램을 기록한 컴퓨터로 읽을 수 있는 기록매체로 구현할 수 있다.The method may preferably be implemented as a computer readable recording medium having recorded thereon a program for execution on a computer.
이하, 첨부된 도면을 참조하여 본 발명의 바람직한 실시예에 대하여 상세하게 설명하기로 한다.Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings.
도 1은 본 발명의 일실시예에 따른 하프토닝 처리장치의 구성을 나타낸 블럭도로서, 명령처리부(110), 제1 저장부(130), 문턱값 결정부(150), 비교부(170) 및 제2 저장부(190)로 이루어진다. 또한, 문턱값 결정부(150)는 제3 저장부(151), 절환부(153), 좌표회전부(155) 및 제4 저장부(157)로 이루어진다.1 is a block diagram showing the configuration of a half-toning processing apparatus according to an embodiment of the present invention, the command processor 110, the first storage unit 130, the threshold value determination unit 150, the comparison unit 170 And a second storage unit 190. In addition, the threshold determination unit 150 includes a third storage unit 151, a switching unit 153, a coordinate rotation unit 155, and a fourth storage unit 157.
도 1을 참조하면, 명령처리부(110)는 응용 프로그램상에서 인쇄하고자 하는 문서데이터를 렌더링한 결과 얻어지는 흑백 데이터 혹은 칼라별 데이터를 수신하는 한편, 사용자의 하프토닝 명령을 수신한다. 명령처리부(110)는 하프토닝 명령을 해석하여 하프토닝의 대상이 라스터 화상 전체, 텍스트 데이터의 폰트, 점, 다각형, 및 라인 중 어느 것인지를 판단하고, 하프토닝 대상이 다각형 혹은 단일 라인인 경우 하프토닝 명령에 포함된 라인의 굵기를 미리 설정된 기준 굵기와 비교하여, 최종 판단결과에 따른 제어신호를 출력한다. 제어신호로서는 하프토닝 대상이 다각형 혹은 단일 라인이면서 라인의 굵기가 미리 설정된 기준 굵기보다 가는 경우에는 절환부(155)의 제1 접점(C1)이 제2 접점(C2)으로 연결되도록 하는 제1 절환신호를, 하프토닝 대상이 그외의 경우에 해당하는 경우에는 절환부(155)의 제1 접점(C1)이 제3 접점(C3)으로 연결되도록 하는 제2 절환신호를 발생시킨다. 한편, 하프토닝 명령이 다각형 혹은 단일 라인이면서 라인의 굵기가 미리 설정된 기준 굵기보다 가는 경우에는 하프토닝 명령에 포함되는 다각형을 구성하는 각 라인 혹은 단일 라인의 시점좌표, 종점좌표, 라인의 농도값 등과 같은 하프토닝 정보를 해석하여, 라인을 구성하는 각 화소의 농도값을 제1 저장부(130)의 해당하는 위치에 기록하고, 각 화소의 라인각도를 산출하여 제3 저장부(151)의 해당하는 위치에 기록한다. 여기서, 각 화소의 농도값은 시안, 마젠타, 옐로우, 블랙에 대응하는 색상값이 된다. 한편, 각 화소의 라인각도(θ)는 다음 수학식 1에 의해 산출될 수 있다. 명령처리부(110)는 하프토닝 처리되어질 라인의 시점좌표에 위치하는 화소에서부터 종점좌표에 위치하는 화소에 이르기까지 순차적으로 하프토닝처리되도록 제1 저장부(130) 및 제3 저장부(151)에 독출 인에이블신호를 인가한다.Referring to FIG. 1, the command processor 110 receives black and white data or color-specific data obtained as a result of rendering document data to be printed on an application program, and receives a user's halftoning command. The command processor 110 analyzes the half-toning command to determine whether the half-toning target is the entire raster image, the font of the text data, the dot, the polygon, or the line, and the half-toning target is the polygon or the single line. The thickness of the line included in the half-toning command is compared with a predetermined reference thickness, and a control signal according to the final determination result is output. As a control signal, when the half-toning target is a polygon or a single line and the thickness of the line is smaller than the preset reference thickness, the first switching unit connects the first contact C1 of the switching unit 155 to the second contact C2. When the half-toning object corresponds to the other case, the second switching signal is generated such that the first contact C1 of the switching unit 155 is connected to the third contact C3. On the other hand, when the half-toning command is a polygon or a single line and the thickness of the line is smaller than the preset reference thickness, the start coordinates, the end point coordinates, the density values of the lines or single lines constituting the polygons included in the half-toning command By analyzing the same half-toning information, the density value of each pixel constituting the line is recorded in the corresponding position of the first storage unit 130, and the line angle of each pixel is calculated to correspond to the third storage unit 151. Record it at the location. Here, the density value of each pixel is a color value corresponding to cyan, magenta, yellow, and black. Meanwhile, the line angle θ of each pixel may be calculated by Equation 1 below. The command processor 110 may sequentially process the half-toning process from the pixel located at the starting point coordinate of the line to be toned to the pixel located at the end point coordinate, in the first storage unit 130 and the third storage unit 151. A read enable signal is applied.
여기서, (X1,Y1) 및 (X2,Y2)는 각각 하프토닝 처리되어질 라인의 시점좌표와 종점좌표를 의미한다.Here, (X1, Y1) and (X2, Y2) mean start coordinates and end coordinates of the line to be half-toned, respectively.
제1 저장부(130)는 로우 라인(X)과 칼럼 라인(Y)이 기록용지 한 페이지의 가로 및 세로에 대응하는 매트릭스 형태로 이루어지며, 하프토닝되어질 화소의 농도값을 해당 위치에 저장한다. 하프토닝 처리되어질 화상이 흑백 화상인 경우에는 제1 저장부(130)는 하나만 구비되고, 칼라 화상인 경우에는 렌더링 결과 시안, 마젠타, 옐로우, 블랙의 칼라별 데이터가 생성되므로 4개가 구비되어 각 칼라별로 하프토닝이 이루어진다. 제1 저장부(130)의 로우 라인과 칼럼 라인의 수는 인쇄 해상도에 따라서 달라지며, 통상 300 내지 600 dpi가 사용될 수 있다. 한편, 제1 저장부(130)에 저장되는 화소의 칼라별 계조값이 8 비트로 구성되는 경우에는 0 내지 255 중 어느 하나의 값이 저장된다. 제1 저장부(130)에 저장되는 하프토닝 처리되어질 화소데이터의 일예는 도 2에 도시된 바와 같다. 여기서는 좌측에 농도값이 128 즉, 50%인 3개의 수직 라인이 위치하고, 우측에 농도값이 50%인 사선이 위치한다.The first storage unit 130 has a row line X and a column line Y in a matrix form corresponding to the width and length of one page of the recording paper, and stores the density values of the pixels to be half-toned at the corresponding positions. . When the image to be half-toned is a black and white image, only one first storage unit 130 is provided, and in the case of a color image, four color data are provided because color-specific data of cyan, magenta, yellow, and black are generated. Half toning is very much done. The number of row lines and column lines of the first storage unit 130 depends on the print resolution, and typically 300 to 600 dpi may be used. On the other hand, when the gray level value of each pixel of the pixel stored in the first storage unit 130 is composed of 8 bits, any one of 0 to 255 is stored. An example of pixel data to be half-toned stored in the first storage unit 130 is illustrated in FIG. 2. Here, three vertical lines having a concentration value of 128, that is, 50% are located on the left side, and an oblique line having a concentration value of 50% is located on the right side.
문턱값 결정부(150)는 제1 저장부(130)의 소정 위치에 있는 화소의 농도값과 비교하기 위한 문턱값을 라인각도 및 미리 저장되어 있는 하프톤패턴 배열을 이용하여 결정한다.The threshold value determination unit 150 determines a threshold value for comparing with the density value of the pixel at the predetermined position of the first storage unit 130 using the line angle and the pre-stored halftone pattern array.
비교부(170)는 제1 저장부(130)로부터 독출되는 소정 위치의 화소의 농도값을 문턱값 결정부(150)로부터 독출되는 문턱값과 비교하고, 화소의 농도값이 문턱값보다 큰 경우에는 '1', 화소의 농도값이 문턱값보다 작은 경우에는 '0'을 출력한다.The comparison unit 170 compares the density value of the pixel at the predetermined position read from the first storage unit 130 with the threshold value read from the threshold value determination unit 150, and when the density value of the pixel is larger than the threshold value. '1' is outputted when the pixel density value is smaller than the threshold value.
제2 저장부(190)는 각 화소가 1 비트로 이루어지며, 비교부(190)로부터 출력되는 '1' 혹은 '0'의 이진값을 해당 화소의 위치에 저장한다.The second storage unit 190 consists of 1 bit of each pixel, and stores a binary value of '1' or '0' output from the comparator 190 at the position of the corresponding pixel.
다음 문턱값 결정부(150)의 동작에 대하여 좀 더 세부적으로 설명하면 다음과 같다.The operation of the next threshold determination unit 150 will be described in more detail as follows.
문턱값 결정부(150)에 있어서, 제3 저장부(151)는 제1 저장부(130)와 마찬가지로 로우 라인(X)과 칼럼 라인(Y)이 기록용지 한 페이지의 가로 및 세로에 대응하는 매트릭스 형태로 이루어지며, 하프토닝되어질 화소의 라인각도를 해당 위치에 저장한다. 제1 저장부(130)와는 달리 제3 저장부(151)는 하프토닝 처리되어질 화상이 흑백인지 칼라인지에 상관없이 하나만 구비되어도 무방하다. 한편, 제3 저장부(151)에 저장되는 각 화소의 라인각도는 2 비트 내지 4 비트로 표현될 수 있다. 예를 들어, 4 비트로 표현되는 경우 0 내지 15까지의 양의 정수를 표현할 수 있으므로, 정방격자 스크린의 경우 90도를 16 분할할 수 있고, 라인 스크린의 경우 180도를 16 분할할 수 있다. 명령처리부(110)에서 계산된 각도를 16개의 분할된 각도 중 가장 가까운 값으로 할당하여 제3 저장부(151)의 해당 위치에 저장한다. 도 2에 도시된 화소데이터에 대하여 제3 저장부(151)에 저장되는 각도데이터는 도 3에 도시된 바와 같다. In the threshold value determination unit 150, the third storage unit 151, like the first storage unit 130, the row line (X) and column line (Y) corresponding to the width and length of one page of the recording sheet It is formed in a matrix form and stores the line angle of the pixel to be half-toned at the corresponding position. Unlike the first storage unit 130, only one third storage unit 151 may be provided regardless of whether the image to be half-toned is black and white or color. Meanwhile, the line angle of each pixel stored in the third storage unit 151 may be represented by 2 bits to 4 bits. For example, since it is possible to express a positive integer from 0 to 15 when expressed in 4 bits, it is possible to divide 16 by 90 degrees in the case of a square grid screen, 16 by 180 degrees in the case of a line screen. The angle calculated by the command processor 110 is allocated to the closest value among the 16 divided angles and stored at the corresponding position of the third storage unit 151. The angle data stored in the third storage unit 151 with respect to the pixel data shown in FIG. 2 is as shown in FIG. 3.
제1 저장부(130)와 제3 저장부(151)에서는 명령처리부(110)로부터 제공되는 독출 인에이블신호에 따라서 동일한 위치의 화소에 대한 농도값과 각도값이 독출되어 각각 비교부(170) 및 좌표회전부(153)로 제공된다.In the first storage unit 130 and the third storage unit 151, the concentration value and the angle value of the pixel at the same position are read out according to the read enable signal provided from the command processing unit 110, and the comparison unit 170 is read. And the coordinate rotation unit 153.
절환부(153)는 명령처리부(110)로부터 제공되는 제어신호에 따라서 동작하며, 제1 저장부(130)로부터 하프토닝 처리되어질 화소의 좌표값을 좌표회전부(155) 혹은 제4 저장부(157) 중 하나로 제공한다. 즉, 제어신호가 제1 절환신호인 경우에는 제1 저장부(130)로부터 제공되는 화소의 좌표값을 좌표회전부(155)로, 제어신호가 제2 절환신호인 경우에는 제1 저장부(130)로부터 제공되는 화소의 좌표값을 제4 저장부(157)로 제공한다. 따라서, 하프토닝의 대상이 항상 단일 라인 혹은 다각형인 경우인 경우에는 절환부(140)를 구비할 필요없이 제1 저장부(120)로부터 제공되는 화소의 좌표값을 바로 제3 저장부(160)로 제공한다. 한편, 하프토닝의 대상이 항상 단일 라인 혹은 다각형 이외에 해당하는 경우에는 절환부(140)를 구비할 필요없이 제1 저장부(130)로부터 제공되는 화소의 좌표값을 바로 제4 저장부(157)로 제공한다. The switching unit 153 operates according to a control signal provided from the command processing unit 110 and coordinates the coordinate value of the pixel to be halftoned from the first storage unit 130 by the coordinate rotating unit 155 or the fourth storage unit 157. ) To one of them. That is, when the control signal is the first switching signal, the coordinate value of the pixel provided from the first storage unit 130 is the coordinate rotation unit 155, and when the control signal is the second switching signal, the first storage unit 130. The coordinate value of the pixel provided from) is provided to the fourth storage unit 157. Therefore, when the object of half-toning is always a single line or a polygon, the third storage unit 160 directly converts the coordinate values of the pixels provided from the first storage unit 120 without the need for the switching unit 140. To provide. On the other hand, if the object of half-toning is always other than a single line or polygon, the fourth storage unit 157 directly stores the coordinate value of the pixel provided from the first storage unit 130 without the need for the switching unit 140. To provide.
좌표회전부(155)는 하프토닝 처리되어질 화소의 원래의 좌표값(X,Y)을 제3 저장부(151)로부터 제공되는 해당 화소의 라인각도(θ) 만큼 역방향으로 회전시킨다. 회전된 좌표값(X',Y')은 다음 수학식 2에서와 같이 나타낼 수 있으며, 그 결과 도 4에 도시된 바와 같이 원래의 좌표값(P_org)가 회전된 좌표값(P_rot)으로 변환된다.The coordinate rotating unit 155 rotates the original coordinate values X and Y of the pixel to be half-toned in the reverse direction by the line angle θ of the corresponding pixel provided from the third storage unit 151. The rotated coordinate values X 'and Y' may be represented as in Equation 2 below, and as a result, the original coordinate values P_org are converted into rotated coordinate values P_rot as shown in FIG. .
제4 저장부(157)는 가로 및 세로의 크기가 각각 M 및 N인 매트릭스 형태의 하프톤패턴을 저장하고 있으며, 하프톤패턴에 포함되어 있는 값은 문턱값을 의미한다. 여기서는 실장장의 문제로 인하여 M 및 N인 하프톤패턴을 준비하고, 이 하프톤패턴을 X,Y 전체 좌표계에 대하여 반복적으로 타일링(tiling)한 다음 각 타일을 붙이는 것과 동일하다. 이 경우 하프톤패턴은 각 타일의 접합 위치에서 스무스하게 연결되도록 정의될 필요가 있다. 절환부(153)로부터 제공되는 원래의 좌표값 및 좌표회전부(155)로부터 제공되는 회전된 좌표값을 이용하여 X 방향 및 Y 방향 인덱스를 산출하고, 산출된 인덱스에 의해 결정되는 위치에 저장된 문턱값을 독출하여 비교부(170)로 제공한다. 제4 저장부(157)에 저장되는 하프톤패턴 배열의 일예는 도 5에 도시된 바와 같다. 한편, 제4 저장부(157)에서 X 방향 및 Y 방향 인덱스는 원래의 좌표값(X,Y)을 사용하는 경우와 회전된 좌표값(X',Y')을 사용하는 경우 각각 다음 수학식 3 및 4에 의해 산출될 수 있다.The fourth storage unit 157 stores a halftone pattern having a matrix shape having horizontal and vertical sizes of M and N, respectively, and a value included in the halftone pattern means a threshold value. Here, it is the same as preparing a halftone pattern of M and N due to the problem of mounting, and repeatedly tiling the halftone pattern with respect to the X, Y global coordinate system and attaching each tile. In this case, the halftone pattern needs to be defined to be connected smoothly at the bonding position of each tile. Using the original coordinate values provided from the switching unit 153 and the rotated coordinate values provided from the coordinate rotating unit 155, the X and Y direction indices are calculated, and the threshold values stored at the positions determined by the calculated indices. Read and provide to the comparator 170. An example of the halftone pattern array stored in the fourth storage unit 157 is illustrated in FIG. 5. On the other hand, in the fourth storage unit 157, the X-direction and the Y-direction indices are the following equations when the original coordinate values (X, Y) are used and when the rotated coordinate values (X ', Y') are used, respectively. It can be calculated by 3 and 4.
여기서, M, N은 X 및 Y 방향의 하프톤 패턴의 사이즈를 나타내고, m,n은 X', Y'이 음의 수가 되는 상황을 고려하여 설정할 수 있는 오프셋값이다. 한편, %은 M 혹은 N으로 나누어 나머지를 구하는 연산자이다. Here, M and N represent the sizes of the halftone patterns in the X and Y directions, and m and n are offset values that can be set in consideration of the situation where X 'and Y' become negative numbers. % Is an operator that divides M or N to get the remainder.
제4 저장부(157)로부터 X 방향 인덱스와 Y 방향 인덱스에 해당하는 위치에 저장된 문턱값을 독출하여 비교부(170)로 제공한다.The threshold value stored at a position corresponding to the X-direction index and the Y-direction index is read from the fourth storage unit 157 and provided to the comparison unit 170.
도 6a 및 도 6b는 종래기술에 의한 하프토닝 처리와 본 발명에 따른 하프토닝 처리의 성능을 비교하기 위한 도면이다. 즉, 라인각도를 고려하지 않고 원래의 죄표값만을 이용하여 문턱값을 결정한 경우에는 도 6a에서와 같이 하프토닝 처리가 불안정하게 된다. 반면, 라인각도를 고려하여 회전된 좌표값을 이용하여 문턱값을 결정한 경우에는 도 6b에서와 같이 하프토닝 처리가 자연스럽게 된다. 6A and 6B are diagrams for comparing the performance of the half-toning process according to the present invention and the half-toning process according to the present invention. That is, when the threshold value is determined using only the original sinusoid value without considering the line angle, the half-toning process becomes unstable as shown in FIG. 6A. On the other hand, when the threshold value is determined using the rotated coordinate value in consideration of the line angle, the half-toning process is naturally performed as shown in FIG. 6B.
도 7은 본 발명의 일실시예에 따른 하프토닝 처리방법의 동작을 설명하는 흐름도이다. 7 is a flowchart illustrating an operation of a half-toning processing method according to an embodiment of the present invention.
도 7을 참조하면, 710 단계에서는 명령처리부(110)로 수신되는 하프토닝 명령을 해석하여, 하프토닝 처리하고자 하는 각 라인들의 시점좌표, 종점좌표, 각 라인의 굵기, 각 라인에 속하는 화소들의 농도값 및 라인각도를 입력받는다. 720 단계에서는 좌표값을 소정 라인의 시점좌표로 설정한다. Referring to FIG. 7, in operation 710, a half toning command received by the command processor 110 may be analyzed to determine the start coordinates, the end coordinates, the thickness of each line, and the concentration of pixels belonging to each line. Enter the value and line angle. In operation 720, the coordinate value is set as the starting coordinate of the predetermined line.
730 단계에서는 좌표회전이 필요한지를 판단한다. 그 판단 기준으로는 하프토닝 명령에 포함된 라인의 굵기 및 라인각도이다. 즉, 라인의 굵기가 미리 정의된 소정의 기준굵기보다 크거나 라인각도가 0인 경우에는 원래의 좌표값을 이용하여 750 단계로 이행한다.In step 730, it is determined whether coordinate rotation is necessary. The determination criteria are the thickness and line angle of the line included in the half-toning command. That is, when the thickness of the line is larger than the predetermined reference thickness or the line angle is 0, the process proceeds to step 750 using the original coordinate value.
740 단계에서는 730 단계에서의 판단결과 좌표회전이 필요한 경우, 즉 하프토닝 명령에 포함된 라인의 굵기가 미리 정의된 소정의 기준굵기보다 작으면서 라인각도가 존재하는 경우 상기 수학식 2에 의해 좌표회전 처리를 수행한다. In the step 740, if the coordinate rotation is necessary as a result of the determination in step 730, that is, the thickness of the line included in the half-toning command is smaller than the predetermined reference thickness, the coordinate rotation exists according to Equation 2 above. Perform the process.
750 단계에서는 730 단계에서 제공되는 원래의 좌표값 혹은 740 단계에서 제공되는 회전된 좌표값을 이용하여 하프톤 패턴내에서 문턱값을 검색하기 위한 X 및 Y 방향 인덱스를 산출하고, 산출된 인덱스에 위치하는 해당 화소의 문턱값으로 결정한다. In step 750, using the original coordinate value provided in step 730 or the rotated coordinate value provided in step 740, the X and Y direction indexes for searching for the threshold value in the halftone pattern are calculated, and the position is calculated. It is determined by the threshold of the corresponding pixel.
760 단계에서는 해당 위치의 화소의 농도값을 750 단계에서 결정된 문턱값과 비교하고, 비교결과에 따른 이진값을 출력하여 제2 저장부(190)에 저장한다. 770 단계에서는 현재 화소의 좌표값이 제1 저장부(130)에 저장된 마지막 라인의 종점좌표에 해당하는지를 판단하고, 제1 저장부(130)에 저장된 마지막 라인의 종점좌표에 해당하는 경우 하프토닝 처리를 종료하고, 종점좌표에 해당하지 않는 경우에는780 단계에서 다음 좌표값을 설정하여 730 단계로 복귀한다.In operation 760, the density value of the pixel at the corresponding position is compared with the threshold determined in operation 750, and a binary value according to the comparison result is output and stored in the second storage unit 190. In step 770, it is determined whether the coordinate value of the current pixel corresponds to the end point coordinate of the last line stored in the first storage unit 130, and if it corresponds to the end point coordinate of the last line stored in the first storage unit 130, the half-toning process is performed. If it does not correspond to the end point coordinates, the process returns to step 730 by setting the next coordinate value in step 780.
본 발명은 또한 컴퓨터로 읽을 수 있는 기록매체에 컴퓨터가 읽을 수 있는 코드로서 구현하는 것이 가능하다. 컴퓨터가 읽을 수 있는 기록매체는 컴퓨터 시스템에 의하여 읽혀질 수 있는 데이터가 저장되는 모든 종류의 기록장치를 포함한다. 컴퓨터가 읽을 수 있는 기록매체의 예로는 ROM, RAM, CD-ROM, 자기 테이프, 플라피디스크, 광데이터 저장장치 등이 있으며, 또한 캐리어 웨이브(예를 들어 인터넷을 통한 전송)의 형태로 구현되는 것도 포함한다. 또한 컴퓨터가 읽을 수 있는 기록매체는 네트워크로 연결된 컴퓨터 시스템에 분산되어, 분산방식으로 컴퓨터가 읽을 수 있는 코드가 저장되고 실행될 수 있다. 그리고 본 발명을 구현하기 위한 기능적인(functional) 프로그램, 코드 및 코드 세그먼트들은 본 발명이 속하는 기술분야의 프로그래머들에 의해 용이하게 추론될 수 있다.The invention can also be embodied as computer readable code on a computer readable recording medium. The computer-readable recording medium includes all kinds of recording devices in which data that can be read by a computer system is stored. Examples of computer-readable recording media include ROM, RAM, CD-ROM, magnetic tape, floppy disk, optical data storage, and the like, which are also implemented in the form of a carrier wave (for example, transmission over the Internet). It also includes. The computer readable recording medium can also be distributed over network coupled computer systems so that the computer readable code is stored and executed in a distributed fashion. And functional programs, codes and code segments for implementing the present invention can be easily inferred by programmers in the art to which the present invention belongs.
상술한 바와 같이 본 발명에 따르면, 하프토닝처리의 대상이 단일 라인 혹은 다각형이고 라인의 굵기가 소정의 기준 굵기보다 가는 경우, 미리 정의된 하프토닝패턴으로부터 단일 라인 혹은 다각형을 이루는 라인의 각도를 고려하여 문턱값을 결정하고, 이를 이용하여 하프토닝 처리를 수행함으로써 보다 자연스러운 하프톤 화상을 얻을 수 있다.According to the present invention as described above, when the object of the half-toning process is a single line or polygon and the thickness of the line is smaller than the predetermined reference thickness, the angle of the line forming the single line or polygon from the predefined half-toning pattern is taken into consideration. The threshold value is determined, and half-toning processing is performed using this to obtain a more natural halftone image.
본 발명에 대해 상기 실시예를 참고하여 설명하였으나, 이는 예시적인 것에 불과하며, 본 발명에 속하는 기술 분야의 통상의 지식을 가진 자라면 이로부터 다양한 변형 및 균등한 타 실시예가 가능하다는 점을 이해할 것이다. 따라서 본 발명의 진정한 기술적 보호범위는 첨부된 특허청구범위의 기술적 사상에 의해 정해져야 할 것이다. Although the present invention has been described with reference to the above embodiments, it is merely illustrative, and those skilled in the art will understand that various modifications and equivalent other embodiments are possible therefrom. . Therefore, the true technical protection scope of the present invention will be defined by the technical spirit of the appended claims.
도 1은 본 발명의 일실시예에 따른 하프토닝 처리장치의 구성을 나타낸 블럭도,1 is a block diagram showing the configuration of a half-toning processing apparatus according to an embodiment of the present invention;
도 2는 도 1에 있어서 제1 저장부에 저장되는 페이지 단위로 하프토닝 처리되어질 화소데이터의 일예를 나타낸 도면,FIG. 2 is a diagram illustrating an example of pixel data to be halftoned in units of pages stored in a first storage unit in FIG. 1; FIG.
도 3은 도 2에 도시된 화소데이터에 대하여 제3 저장부에 저장되는 각도데이터를 나타낸 도면,3 is a diagram illustrating angle data stored in a third storage unit with respect to the pixel data shown in FIG. 2;
도 4는 도 1에 있어서 좌표회전부의 동작을 설명하는 도면,4 is a view for explaining the operation of the coordinate rotation unit in FIG.
도 5는 도 1에 있어서 제4 저장부에 저장되는 하프톤패턴 배열의 일예를 나타낸 도면,FIG. 5 is a diagram illustrating an example of an arrangement of halftone patterns stored in a fourth storage unit in FIG. 1;
도 6a 및 도 6b는 종래기술에 의한 하프토닝 처리와 본 발명에 따른 하프토닝 처리의 성능을 비교하기 위한 도면, 및6A and 6B are views for comparing the performance of the half-toning process according to the present invention and the half-toning process according to the present invention, and
도 7은 본 발명의 일실시예에 따른 하프토닝 처리방법의 동작을 설명하는 흐름도이다. 7 is a flowchart illustrating an operation of a half-toning processing method according to an embodiment of the present invention.
<도면의 주요 부분에 대한 부호의 설명><Explanation of symbols for the main parts of the drawings>
110 ... 명령처리부 130 ... 제1 저장부 110 ... Command processing unit 130 ... First storage unit
150 ... 문턱값 결정부 151 ... 제3 저장부150 ... Threshold Determination Unit 151 ... Third Storage Unit
153 ... 절환부 155 ... 좌표회전부153 ... switching part 155 ... coordinate rotation part
157 ... 제4 저장부 170 ... 비교부157 ... fourth storage section 170 ... comparison section
190 ... 제2 저장부190 ... second reservoir
Claims (5)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| KR1020040038725A KR20050113510A (en) | 2004-05-29 | 2004-05-29 | Apparatus and method of processing halftoning |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| KR1020040038725A KR20050113510A (en) | 2004-05-29 | 2004-05-29 | Apparatus and method of processing halftoning |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| KR20050113510A true KR20050113510A (en) | 2005-12-02 |
Family
ID=37288104
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| KR1020040038725A Withdrawn KR20050113510A (en) | 2004-05-29 | 2004-05-29 | Apparatus and method of processing halftoning |
Country Status (1)
| Country | Link |
|---|---|
| KR (1) | KR20050113510A (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2008094767A1 (en) * | 2007-01-26 | 2008-08-07 | Hewlett-Packard Development Company, L.P. | Halftoning curved images |
| KR101287452B1 (en) * | 2006-09-01 | 2013-07-19 | 삼성전자주식회사 | Electrophotographic image forming apparatus and halftoning revision method thereof |
| US20230030524A1 (en) * | 2021-08-02 | 2023-02-02 | Xerox Corporation | Methods and systems for automatically identifying ir security marks based on known halftone frequency and color information |
-
2004
- 2004-05-29 KR KR1020040038725A patent/KR20050113510A/en not_active Withdrawn
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR101287452B1 (en) * | 2006-09-01 | 2013-07-19 | 삼성전자주식회사 | Electrophotographic image forming apparatus and halftoning revision method thereof |
| WO2008094767A1 (en) * | 2007-01-26 | 2008-08-07 | Hewlett-Packard Development Company, L.P. | Halftoning curved images |
| US20230030524A1 (en) * | 2021-08-02 | 2023-02-02 | Xerox Corporation | Methods and systems for automatically identifying ir security marks based on known halftone frequency and color information |
| US11941937B2 (en) * | 2021-08-02 | 2024-03-26 | Xerox Corporation | Methods and systems for automatically identifying IR security marks based on known halftone frequency and color information |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6332666B1 (en) | Printing apparatus, resolution conversion printing method for printing apparatus, and storage medium storing computer-readable program | |
| EP0708415B1 (en) | Four-quadrant scaling of dot matrix data | |
| JP2010118927A (en) | Program, recording medium, image processing apparatus, image processing method, and sheet for gradation correction parameter generation | |
| JP2007143082A (en) | Method and apparatus for compressing image data | |
| JP7653808B2 (en) | Information processing device, program, and image processing method | |
| US6873440B2 (en) | Multibit screening of print documents in a PDL environment | |
| JP4386216B2 (en) | Color printing system and control method thereof | |
| CN101346981B (en) | Image processing apparatus, image processing method | |
| US6661921B2 (en) | Image process apparatus, image process method and storage medium | |
| KR100510132B1 (en) | Color halftoning apparatus and method, and mask generation apparatus and method therein | |
| US7315402B2 (en) | Image forming apparatus and method for selecting an optimal image space frequency for an output image | |
| EP2429166B1 (en) | Image forming apparatus and image forming method thereof | |
| JP4501791B2 (en) | Image processing method and image processing program | |
| KR20050113510A (en) | Apparatus and method of processing halftoning | |
| JP2020082694A (en) | Dither matrix generation device, generation method, image processing device using the dither matrix, image processing method, and program | |
| JP4412248B2 (en) | Image processing apparatus, image processing method, and image processing program | |
| JP4274102B2 (en) | Image processing apparatus, image processing method, image processing program, and recording medium recording the program | |
| US12143554B2 (en) | Image processing apparatus, control method therefor, and storage medium storing control program therefor | |
| JPH1091792A (en) | Document segmentation method, apparatus, color printing system and computer program product | |
| JP3768560B2 (en) | Image processing apparatus and method | |
| JP2019121870A (en) | Image processing apparatus, control method of the same, and program | |
| JP4337670B2 (en) | Image processing apparatus, image processing method, and program | |
| JP2006191294A (en) | Image processing apparatus, program, and image processing method | |
| JP4462088B2 (en) | Image processing apparatus and program | |
| JP2006067294A (en) | Image processing method and image processing apparatus |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PA0109 | Patent application |
Patent event code: PA01091R01D Comment text: Patent Application Patent event date: 20040529 |
|
| PG1501 | Laying open of application | ||
| PC1203 | Withdrawal of no request for examination | ||
| WITN | Application deemed withdrawn, e.g. because no request for examination was filed or no examination fee was paid |