KR20010048592A - Principal Distance Constraint Image Halftoning for Homogeneous Dot Distribution - Google Patents

Principal Distance Constraint Image Halftoning for Homogeneous Dot Distribution Download PDF

Info

Publication number
KR20010048592A
KR20010048592A KR1019990053325A KR19990053325A KR20010048592A KR 20010048592 A KR20010048592 A KR 20010048592A KR 1019990053325 A KR1019990053325 A KR 1019990053325A KR 19990053325 A KR19990053325 A KR 19990053325A KR 20010048592 A KR20010048592 A KR 20010048592A
Authority
KR
South Korea
Prior art keywords
distance
value
binary
pixel
pixels
Prior art date
Application number
KR1019990053325A
Other languages
Korean (ko)
Other versions
KR100317246B1 (en
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 KR1019990053325A priority Critical patent/KR100317246B1/en
Publication of KR20010048592A publication Critical patent/KR20010048592A/en
Application granted granted Critical
Publication of KR100317246B1 publication Critical patent/KR100317246B1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast

Abstract

PURPOSE: An image quantization method is provided to obtain a good quality of binary image by allowing a distance between binary pixels to be maintained at a particular distance and uniformly distributing the binary pixels spatially. CONSTITUTION: A principal distance is determined to obtain a uniform dot distribution with respect to an input gradation, which is an ideal distance to be maintained between binary pixels. Minor pixel values are determined with respect to the minor binary pixels. In order to maintain a distance between he binary pixels in the principal distance, a minimum distance is calculated about the minor pixels out of the minor binary pixels. A binary threshold value is changed and determined based on the principal distance and the minimum distance. A binary pixel value is determined based on the changed threshold value. Then, each of y-positions of black and white dots in binary upper line is stored. And, each of x-positions of black and white dots in the same line is stored. The minimum distance is calculated by determining x-search range according to an input minor pixel value and an input pixel(x(m,n); replacing the x-search range with L; increasing the searched x-position on n-line.

Description

최적 거리를 유지하여 이진 영상의 도트간의 균일 분포를 얻기 위한 영상 양자화 방법{Principal Distance Constraint Image Halftoning for Homogeneous Dot Distribution}Image quantization method to obtain uniform distribution between dots of binary image by maintaining optimal distance {Principal Distance Constraint Image Halftoning for Homogeneous Dot Distribution}

본 발명은 최적 거리를 유지하여 이진 영상의 도트간의 균일 분포를 얻기 위한 영상 양자화 방법에 관한 것으로, 더욱 상세하게는 오차확산(Error Diffusion) 방법을 적용함에 있어서 입력 계조값에 따라 2진 영상(Binary Image)의 2진 화소들이 일정한 거리를 유지하도록 2진 문턱값을 조절하여 2진 화소들(Binary Pixels)을 균일하게 분포시킴으로서 2진 영상의 화질을 개선하는 방법에 관한 것이다.The present invention relates to an image quantization method for obtaining a uniform distribution between dots of a binary image by maintaining an optimum distance. More particularly, the present invention relates to a binary image according to an input gray value in applying an error diffusion method. The present invention relates to a method of improving image quality of a binary image by uniformly distributing binary pixels by adjusting a binary threshold so that binary pixels of an image maintain a constant distance.

일반적으로 0~255 사이의 256단계의 밝기의 값을 갖는 영상을 연속적인 계조영상이라 하고, 연속적인 계조영상을 0(흑색) 및 255(백색)만으로 2진 출력장치로 표현하는 방법을 하프토닝(Halftoning) 방법이라 하며, 하프토닝 방법에 의해 발생된 영상을 2진 영상이라 한다. 종래에 널리 쓰였던 하프토닝 기술로서 오차확산(Error Diffusion) 방법이 있다.In general, an image with 256 levels of brightness between 0 and 255 is called a continuous grayscale image, and half toning is a method of expressing a continuous grayscale image with a binary output device using only 0 (black) and 255 (white). The image generated by the halftoning method is called a binary image. As an half-toning technique widely used in the related art, there is an error diffusion method.

본 발명은 모든 2진 및 복수 계조 출력장치에 응용할 수 있는 것으로서, 특히 2진 출력 디지털 프린터와 같은 경우에 출력되는 영상의 화질을 개선할 수 있다. 더욱이, 디지털 프린터와 같은 2진 출력장치는 입력되는 연속적인 계조영상을 흑점과 백점의 배치에 의해 중간 계조인 회색을 시각적으로 만들어 내는 기술인 하프토닝 방법에 의하여 원래 영상의 계조를 재현하게 된다. 2진 영상의 화질은 계조의 재현성과 더불어 시각적으로 눈에 거슬리지 않는 2진 화소의 패턴의 생성 여부에 크게 좌우된다. 특히, 인간의 시각은 고주파 성분에 둔감하고 저주파 성분에 매우 민감한 특성을 지니고 있다. 따라서, 고주파 성분이 많은 중간 계조에 비해 상대적으로 저주파 성분이 많은 어두운 영역이나 밝은 영역의 2진 화소의 분포는 2진 영상의 화질에 매우 중요한 요소가 된다.The present invention is applicable to all binary and plural gradation output devices, and in particular, in the case of a binary output digital printer, the image quality of the output image can be improved. In addition, a binary output device such as a digital printer reproduces the gray level of the original image by a half-toning method, which is a technique of visually generating gray, which is an intermediate gray level, by arranging black and white dots on a continuous grayscale image. The image quality of the binary image depends greatly on the reproducibility of the gradation and whether or not the pattern of the binary pixels is visually unobtrusive. In particular, human vision is insensitive to high frequency components and very sensitive to low frequency components. Therefore, the distribution of binary pixels in dark areas or bright areas having a lot of low frequency components is very important for the image quality of binary images compared to intermediate gray scales having many high frequency components.

이와 같이 2진 영상은 흑점과 백점의 2가지 상태로만 표현되기 때문에 2진 영상의 점의 분포 역시 흑점과 백점 중에서 많이 존재하는 값에 따라 좌우된다. 즉 입력 영상이 128(연속계조 입력 영상의 중간값에 해당하는 값으로 절대적인 값)보다 큰 경우에는 백점이 상대적으로 흑점보다 많이 존재하므로, 이때, 흑점을 소수 화소(Minor Pixel)라 하고, 소수 화소인 흑점의 분포가 2진 영상의 화질을 결정하게 된다. 반면에, 입력 계조값이 128보다 작을 경우에는 소수 화소는 백점이 되므로 화질은 백점의 분포에 영향을 받게 된다.As such, since the binary image is represented by only two states of black spots and white spots, the distribution of points of the binary image also depends on a value existing among the black spots and the white spots. In other words, when the input image is larger than 128 (the absolute value corresponding to the middle value of the continuous gradation input image), since there are more white spots than black spots, the black spot is called a minor pixel. The distribution of phosphorus spots determines the quality of the binary image. On the other hand, when the input gray scale value is smaller than 128, the decimal pixel becomes a white point, and thus the image quality is affected by the distribution of the white point.

2진 영상을 생성하는 대표적인 방법으로서의 오차확산 방법은 수학식 1 내지 수학식 3과 같이 표현된다.An error diffusion method as a representative method for generating a binary image is expressed as in Equations 1 to 3 below.

상기 수학식 1에서 x(m, n)은 화소에서의 연속계조 입력값을 나타내며, w(k, l)은 (m, n)화소를 중심으로 R 영역에 정의된 오차확산 계수를 나타낸다. e(m, n)는 (m, n)화소에서 2진 화소값을 결정한 후의 2진화 오차값을 나타낸다. 종래의 오차확산 방법에서 2진 영상을 결정하는 과정 중에서 수학식 3에서의 2진 문턱값 T는 고정된 값을 주로 사용해 왔다. 이러한 종래의 오차확산 방법은 2진 화소가 균일한 분포를 갖지 못하기 때문에 시각적으로 좋지 않은 패턴을 발생시키는 단점이 있었다.In Equation 1, x (m, n) represents the continuous gray scale input value in the pixel, and w (k, l) represents the error diffusion coefficient defined in the R region around the (m, n) pixel. e (m, n) represents the binarization error value after determining the binary pixel value in the (m, n) pixel. In the process of determining a binary image in the conventional error diffusion method, the binary threshold value T in Equation 3 mainly uses a fixed value. This conventional error diffusion method has a disadvantage of generating a visually poor pattern because the binary pixels do not have a uniform distribution.

이러한 종래의 오차확산 방법의 단점을 개선하기 위한 노력이 있었으며, 대표적인 방법으로서, 오차확산 방법에서 오차값 e(m, n)을 이미 정해진 가중치 w(k, l)에 의해 주위의 화소로 전파하듯이 2진 문턱값 T를 입력 계조값과 2진 화소값에 따라 이미 정해진 가중치에 의해 주위 화소로 전파하여 문턱값을 변조시키는 방법(Eschbach's Algorithm: USP 5,535,019)과 입력 계조에 따라 소수 화소가 있어야 할 위치를 미리 정하고, 이에 따라 2진 화소의 값을 결정하는 방법(Marcu's Algorithm)이 있다.Efforts have been made to improve the shortcomings of the conventional error diffusion method. As a representative method, the error diffusion method propagates the error value e (m, n) to surrounding pixels by a predetermined weight w (k, l). The binary threshold value T is propagated to the surrounding pixels by the weight already determined according to the input gray value and the binary pixel value to modulate the threshold value (Eschbach's Algorithm: USP 5,535,019) and the number of pixels There is a method (Marcu's Algorithm) to determine the position in advance and thereby determine the value of the binary pixel.

상기 에쉬바하(Eschbach)의 방법(USP 5,535,019)은 기본적으로 수학식 3의 T에 해당하는 2진 문턱값을 고정값으로 사용하지 않고, 수학식 1에서의 오차값이 원 영상의 화소값 x(m, n)을 변화시켜 수정된 입력값 u(m, n)을 생성하는 것과 유사한 방법을 사용하여 T값을 변화시키는 방법이다. T값을 변화시키기 위해서는 수학식 1과 같이 오차값에 해당하는 양을 결정해야 하는데, 이에 대응하는 값이 전사(轉寫)값(Imprint Value)이라 정의된 값이다. 전사값을 결정하는 함수에 대한 수식은 다음의 수학식 4 내지 수학식 6과 같다.Eschbach's method (USP 5,535,019) basically does not use a binary threshold value corresponding to T in Equation 3 as a fixed value, and the error value in Equation 1 is the pixel value of the original image x ( It is a method of changing the T value using a method similar to changing m, n) to generate a modified input value u (m, n). In order to change the T value, an amount corresponding to an error value must be determined as in Equation 1, and a corresponding value is a value defined as an imprint value. The equation for the function for determining the transfer value is shown in Equation 4 to Equation 6 below.

상기의 수학식에서 아래 첨자 W, B는 (m, n)화소에서의 2진 화소의 값이 백점 또는 흑점이라는 것을 나타낸다. 즉 상기 수학식은 입력 화소 x(m, n)와, (m, n)에서의 출력 화소값에 따라 전파된 전사값(Imprint Value)을 결정하는 과정이다. 이러한 방법으로 결정된 전사값은 가중하여 주위의 화소에 전파되는데, 이때, 사용된 가중치는 하기의 표와 같다.Subscripts W and B in the above equations indicate that the value of the binary pixel in the (m, n) pixel is a white point or a black point. That is, the above equation is a process of determining the propagated transfer value Imprint Value according to the input pixel x (m, n) and the output pixel value at (m, n). The transfer value determined in this way is weighted and propagated to surrounding pixels, wherein the weights used are shown in the table below.

에쉬바하(Eschbach) 방법에서의 전사 전파 가중계수Transcription Propagation Weighting Factor in Eschbach Method 위치location -6-6 -5-5 -4-4 -3-3 -2-2 -1-One 00 1One 22 33 44 55 66 가중치weight 0.0450.045 0.230.23 0.50.5 0.680.68 0.820.82 0.910.91 1One 0.910.91 0.820.82 0.680.68 0.50.5 0.230.23 0.0450.045

표 1에서의 위치는 현재 2진화를 수행한 위치(0)에 대해 x축 방향(영상에서의 동일 라인)으로의 상대적인 위치를 나타낸 것이다. 입력 화소 및 2진 화소의 값에 대해 전사값을 결정하는 수학식 4 내지 수학식 6의 과정과 전사값을 표 1과 같이 가중하여 전파하는 과정은 모든 화소에 대해 수행되며, 전파된 전사값이 2진 문턱값을 변조하는 식은 하기의 수학식 7과 같다.The position in Table 1 shows the relative position in the x-axis direction (same line in the image) with respect to the position (0) where the current binarization is performed. The process of Equation 4 to Equation 6 for determining the transfer value with respect to the values of the input pixel and the binary pixel and the process of weighting and propagating the transfer value as shown in Table 1 are performed for all the pixels. The equation for modulating the binary threshold is shown in Equation 7 below.

수학식 7에서 T(m, n)는 (m, n)에서 2진 화소값을 결정할 때 사용되는 2진 문턱값으로, 수학식 7에서 Timp(m-1,n-1)는 (m-1,n-1)화소에 저장된 전사값을 의미하며, 마지막 항은 2진화를 수행하는 라인에서 바로 전 화소까지의 전사값의 누적값을 의미한다.In Equation 7, T (m, n) is a binary threshold used when determining a binary pixel value in (m, n), and T imp (m-1, n-1) in Equation 7 is (m -1, n-1) means a transfer value stored in the pixel, and the last term means a cumulative value of the transfer value from the line to binarization to the previous pixel.

Marcu가 제안한 방법은 입력 화소의 계조값에 따라 소수 화소가 존재할 위치를 미리 정하여 현재 화소를 2진화할 때, 이미 정해진 순서에 의해 2진화된 화소값을 검색하여 검색 중에 소수 화소가 발견되면 현재 화소에 대한 2진 출력값은 소수 화소값과 반대되는 출력값을 가지게 하고, 검색이 완료될 때까지 소수 화소가 발견되지 않으면 현재 화소에 대한 출력값이 소수 화소값이 되도록 하는 방법이다.The method proposed by Marcu is to predetermine the position of the decimal pixel according to the gray value of the input pixel, and to binarize the current pixel when the binary pixel is searched by the predetermined order. The binary output value for may have an output value opposite to the decimal pixel value, and if the decimal pixel is not found until the search is completed, the output value for the current pixel becomes the decimal pixel value.

소수 화소 검색 순서의 예Example of fractional pixel search order ...... 2020 ...... ...... 1919 1212 2121 ...... ...... 1818 1111 66 1313 2222 ...... ...... 1717 1010 55 22 77 1414 2323 ...... ...... 1616 99 44 1One 00 33 88 1515 2424 ......

표 2는 현재 화소(0)로부터 이미 2진화된 화소들 중에 소수 화소의 유무를 검색하는 검색 순서를 나타낸다. 이 때 검색의 끝을 나타내는 값은 입력 화소의 계조값에 따라 결정되어진다. 즉, 입력 화소값 x(m, n)에 대한 검색 한계값이 22라고 가정할 때, 검색 순서는 1에서 22까지에 대응하는 위치에 소수 화소가 존재하는가를 검색하게 되고 검색하는 중에 소수 화소가 발견되면 검색을 중단하며, 소수 화소와 반대되는 값으로 2진화를 수행하게 된다. 반면에, 22까지의 검색동안에 소수 화소가 발견되지 않으면 현재 화소에 대한 출력값이 소수 화소값이 된다. 표 3은 입력 계조에 따라 결정된 검색의 한계값이다.Table 2 shows a search order for searching for the presence or absence of a few pixels among the pixels already binarized from the current pixel (0). At this time, the value indicating the end of the search is determined according to the gray value of the input pixel. That is, assuming that the search limit value for the input pixel value x (m, n) is 22, the search order searches whether there are decimal pixels at positions corresponding to 1 to 22, If found, the search is aborted and binarization is performed with values opposite to the fractional pixel. On the other hand, if no decimal pixel is found during the search up to 22, the output value for the current pixel becomes the decimal pixel value. Table 3 shows the limit values of the search determined according to the input gray level.

입력 계조값에 따른 검색의 한계값Limit value of search according to input gradation value 계조Gradation 1One 22 33 44 55 66 ...... 251251 252252 253253 254254 검색한계Search limit 148148 111111 9292 7979 7070 6363 ...... 7979 9292 111111 148148

상기 Eschbach 방법은 전사값을 정의하고 오차값이 원 영상의 화소값 x(m, n)을 변화시켜 수정된 입력값 u(m, n)을 생성하는 것과 유사한 방법을 사용하여 T값을 변화시키는 방법이고, Marcu 방법은 입력 화소의 계조값에 따라 소수 화소가 존재할 위치를 미리 정하여 현재 화소를 2진화 할 때 이미 정해진 순서에 의해 2진화된 화소값을 검색하여 2진화를 하는 방법이다.The Eschbach method changes the T value by using a method that defines a transfer value and the error value is similar to generating a modified input value u (m, n) by changing the pixel value x (m, n) of the original image. The Marcu method is a method of binarizing a binary value by searching a binarized pixel value according to a predetermined order when binarizing a current pixel by pre-determining a position where a small number of pixels exist according to a gray value of an input pixel.

본 발명은 2진 화소들 간의 거리가 서로 특정 거리를 유지하도록 함으로써 화소들을 공간적으로 균일하게 분포시켜 화질이 좋은 2진 영상을 만드는데 목적이 있다.SUMMARY OF THE INVENTION An object of the present invention is to make a binary image having good image quality by spatially uniformly distributing pixels by maintaining a distance between binary pixels.

따라서, 본 발명은 2진 화소들 간에 유지되어야 할 거리는 연속 계조 영상의 화소값에 의해 결정되어지므로, 2진 화소들 간에 유지되어야 할 이상적인 거리인 최적거리(Principal Distance)를 정의하고 계산하는 과정과, 입력 화소로부터 최소거리를 계산하는 과정을 통하여 결정된 최적거리와 최소거리를 이용하여 2진 문턱값을 변화시켜 2진화를 수행하는데 목적이 있다.Therefore, since the distance to be maintained between the binary pixels is determined by the pixel value of the continuous grayscale image, a process of defining and calculating a principal distance, which is an ideal distance to be maintained between the binary pixels, In addition, the object of the present invention is to perform binarization by changing a binary threshold value using an optimal distance and a minimum distance determined by calculating a minimum distance from an input pixel.

도 1은 본 발명의 최적 거리를 유지하여 이진 영상의 도트간의 균일 분포를 얻기 위한 영상 양자화 방법의 전체적인 흐름도,1 is an overall flowchart of an image quantization method for obtaining a uniform distribution between dots of a binary image by maintaining an optimal distance of the present invention;

도 2는 본 발명의 소수 화소 결정부의 흐름도,2 is a flowchart of a decimal pixel determination unit of the present invention;

도 3은 본 발명의 최소거리 계산부의 흐름도,3 is a flowchart of a minimum distance calculation unit of the present invention;

도 4는 본 발명의 2진 화소 y축값 저장부의 흐름도,4 is a flowchart of a binary pixel y-axis value storing unit of the present invention;

도 5는 에쉬바하(Eschbach)방법, 마르쿠(Marcu)방법 및 본 발명의 2진 영상의 점의 분포도,5 is a distribution diagram of the points of the Eschbach method, the Marku method, and the binary image of the present invention;

도 6은 에쉬바하(Eschbach)방법에 의한 영상을 나타낸 도면,6 is a view showing an image by the Eschbach method,

도 7은 마르쿠(Marcu)방법에 의한 영상을 나타낸 도면,7 is a view showing an image by the Marku method (Marcu) method,

도 8은 본 발명에 의한 영상을 나타낸 도면,8 is a view showing an image according to the present invention,

도 9은 입력 계조에 따른 2진 화소들 간의 최적거리를 나타내는 그래프,9 is a graph showing an optimal distance between binary pixels according to an input gray scale;

도 10은 2진 영상의 분포 예를 나타낸 도면,10 is a diagram illustrating an example of distribution of a binary image;

도 11는 최소거리와 최적거리와의 관계를 나타내는 도면.11 is a diagram showing a relationship between a minimum distance and an optimal distance.

상기의 목적을 달성하기 위한 본 발명은, 입력 계조에 대해 균일한 점의 분포를 갖기 위해 2진 화소들 간에 유지되어야 하는 이상적인 거리인 최적거리(Principal Distance)를 결정하는 단계; 이미 2진화된 소수 화소에 대하여 소수 화소값을 결정하는 단계; 2진 화소들 사이의 거리가 최적거리를 유지하도록 하기 위해 이미 2진화된 화소들 중 소수 화소(Minor Pixel)에 대해 최소거리를 계산하는 단계; 최적거리와 최소거리를 이용하여 2진 문턱값을 변화시켜 결정하는 단계; 변화된 문턱값으로부터 2진 화소값을 결정하는 단계; 이미 2진화된 상위 라인의 흑점과 백점 각각의 y 위치를 저장하는 단계; 이미 2진화된 동일 라인의 흑점과 백점 각각의 x 위치를 저장하는 단계를 수행하여 입력 계조에 따라 2진 화소들 간에 유지되어야 할 이상적인 거리인 최적거리를 정의하였고, 최적거리를 유지하기 위해 2진 문턱값을 변화시킴으로써 균일한 점의 분포를 실현한 것이 특징이다.The present invention for achieving the above object comprises the steps of determining a Principal Distance, which is an ideal distance that must be maintained between binary pixels to have a uniform distribution of points with respect to the input grayscale; Determining a fractional pixel value for the fractionalized pixel already binarized; Calculating a minimum distance with respect to a minor pixel among the binarized pixels so that the distance between the binary pixels maintains an optimal distance; Determining by changing a binary threshold value using an optimal distance and a minimum distance; Determining a binary pixel value from the changed threshold; Storing the y position of each of the black and white points of the upper line already binarized; By storing the x positions of the black and white points of the same line already binarized, we defined the optimal distance, which is the ideal distance to be maintained between binary pixels according to the input gradation, and to maintain the optimal distance. It is a characteristic that the uniform point distribution was realized by changing the threshold.

이하에서 첨부된 도면을 참조하여 본 발명에 관하여 상세하게 설명하면 다음과 같다.Hereinafter, the present invention will be described in detail with reference to the accompanying drawings.

도 1은 본 발명의 전체 흐름도로, 먼저, 단계(S100)에서 입력 계조에 대해 균일한 점의 분포를 갖기 위해 2진 화소들 간에 유지되어야 하는 이상적인 거리인 최적거리(Principal Distance)를 결정한다.FIG. 1 is an overall flowchart of the present invention. First, in step S100, a Principal Distance, which is an ideal distance that should be maintained between binary pixels in order to have a uniform distribution of points with respect to an input gray scale, is determined.

계조에 따른 이진 영상이 가져야 할 이상적인 주파수는 하기 수학식 8로 정의된다.The ideal frequency that the binary image according to the gray scale should have is defined by Equation 8 below.

본 개발에서는 수학식 8에 정의된 이상적인 주파수의 역수를 이진 화소들간에 유지되야 할 이상적인 거리인 최적거리(Principal Distance)로 정의한다.In this development, the inverse of the ideal frequency defined in Equation (8) is defined as a principal distance, which is an ideal distance to be maintained between binary pixels.

상기 수학식 9에서 계산된 최적거리는 2진 문턱값 T를 변화시키는데 이용된다.The optimal distance calculated in Equation 9 is used to change the binary threshold value T.

도 9는 입력 계조에 따른 2진 화소들 간의 이상적인 거리를 나타내는 그래프이다.9 is a graph illustrating an ideal distance between binary pixels according to input gray levels.

다음으로, 단계(S101)에서는 이미 2진화된 소수 화소에 대하여 소수 화소값을 결정하는 것으로, 소수 화소값의 결정은, 2진 화소들 간의 거리가 최적거리를 유지하도록 하기 위해 이미 2진화된 화소들 중 소수 화소(minor pixel)에 대해 최소거리를 계산한다. 이때, 소수 화소(흑점 또는 백점)의 결정은 입력 계조에 따라 결정된다. 소수 화소의 결정에 관한 식은 하기 수학식 10와 같고, 도 2에 도시되어 방법으로 결정한다.Next, in step S101, a fractional pixel value is determined for a fractional pixel that has already been binarized. In the determination of the fractional pixel value, a pixel that has already been binarized so that the distance between the binary pixels maintains an optimal distance. The minimum distance is calculated for a minor pixel among them. At this time, the determination of the decimal pixel (black point or white point) is determined according to the input gray scale. The equation for the determination of the minority pixel is shown in Equation 10 below, and is determined by the method shown in FIG.

입력화소 x(m, n)가 128보다 작을 경우에는 소수 화소는 백점이 되며, 입력화소 x(m, n)가 128보다 클 경우에는 소수 화소(minor pixel)는 흑점이 된다. 이렇게 결정된 소수 화소의 분포가 2진 영상의 화질을 결정하게 된다.If the input pixel x (m, n) is smaller than 128, the decimal pixel becomes a white point, and if the input pixel x (m, n) is larger than 128, the minor pixel becomes a black point. The distribution of the minority pixels thus determined determines the image quality of the binary image.

이와 같은 소수 화소값을 결정하는 단계는 입력된 화소 x(m, n)가 중간 계조값보다 작은지를 판단하는 단계(S110)와, 중간 계조값보다 작지 않을 경우에 소수 화소를 흑점으로 결정하는 단계(S111)와, 중간 계조값보다 작을 경우에 소수 화소를 백점으로 결정하는 단계(S112)를 더 포함하여 수행한다.The determining of the fractional pixel value may include determining whether the input pixel x (m, n) is smaller than the middle gray value (S110), and determining the fractional pixel as a black spot when it is not smaller than the middle gray value. (S111) and determining a small number of pixels as a white point when it is smaller than the intermediate gray scale value (S112).

또한, 2진 화소의 위치 저장은 현재 2진화를 수행하는 화소로부터 2진화된 화소들 중 소수 화소의 거리를 계산하기 위해서 2진화된 화소들에 대한 위치를 저장한다. 본 발명은 2진화된 화소들의 위치를 저장하기 위해 2차원 위치를 1차원의 정보로 변화시킴으로서 사용되는 메모리 양을 최소화하는 방법을 제안한다. 2차원 위치를 저장하는데 있어서 표 4와 같이 y축에 대한 정보와 x축에 대한 정보를 분리하여 저장한다.In addition, storing the position of the binary pixel stores the position of the binarized pixels in order to calculate the distance of the decimal pixel among the binarized pixels from the pixel which is currently binarized. The present invention proposes a method of minimizing the amount of memory used by changing a two-dimensional position into one-dimensional information to store the positions of binarized pixels. In storing the two-dimensional position, as shown in Table 4, the information about the y-axis and the information about the x-axis are separately stored.

상위 라인의 2진 화소에 대한 y축 위치 정보 저장 예Example of saving y-axis position information for binary pixels in the upper line 33 55 -2-2 77 1One 77 -3-3 77 -3-3 77 1One

표 4는 현재 2진화하는 화소의 상위 라인에서 연속적으로 발생하는 화소의 수를 나타낸다. 예를 들어, 3은 바로 위의 라인으로부터 수직 방향으로 연속으로 백점이 3개가 발생한다는 것을 의미하며, -2는 흑점이 연속해서 2개가 발생하였다는 것을 의미한다. 이러한 방식은 2차원 메모리를 이용하지 않고 1차원 메모리로서 상위 라인에 가장 가까이 존재하는 소수 화소의 y축상의 위치를 코드화하여 저장하는 효과를 나타낸다. 하기 표 5는 표 4로부터 가장 가까운 소수 화소의 y축상의 위치의 실제 값 yoff를 나타낸다. 누적값으로 2진 영상의 위치를 저장함에 있어서 부호를 이용하여 2진 영상의 종류를 표시할 수 있다. 도 10은 이진 영상의 결과의 한 예로서 표 5와 같은 방법으로 y의 위치를 코드화 되게 된다.Table 4 shows the number of pixels that occur continuously in the upper line of the pixel currently binarized. For example, 3 means that 3 white spots occur continuously in the vertical direction from the line immediately above, and -2 means that 2 black spots occur continuously. This method has the effect of encoding and storing the position on the y-axis of the few pixels that are closest to the upper line as the one-dimensional memory without using the two-dimensional memory. Table 5 below shows the actual value y off of the position on the y-axis of the nearest few pixels from Table 4. In storing the position of the binary image as a cumulative value, the type of the binary image may be displayed using a sign. 10 is an example of the result of the binary image is to code the position of y in the manner shown in Table 5.

위치 저장 LUT(Look-Up Table; 테이블 검색)로부터 상대적인 y축 값의 예Example of relative y-axis values from position-saved look-up table (LUT) value 33 55 -2-2 77 1One 77 -3-3 77 -3-3 77 1One 흑점y값Sunspot y value -4-4 -6-6 -1-One -8-8 -2-2 -8-8 -1-One -8-8 -1-One -8-8 -2-2 백점 y값100 point y value -1-One -1-One -3-3 -1-One -1-One -1-One -4-4 -1-One -4-4 -1-One -1-One

화소 (m, n)과 동일한 라인에 있는 2진 화소들에 대해서도 동일한 방법으로 x축에 대한 위치를 저장할 수 있다.The same position can be stored for the binary pixels on the same line as the pixel (m, n) in the same manner.

이와 같은 화소의 위치를 저장하는 단계(S105)에서는 이미 2진화된 흑점과 백점 각각의 위치를 저장하는 것으로, 상기 2진 화소의 위치를 저장하는 단계는 2진 영상 b(m, n)을 y축 저장 메모리의 m번째 값으로 저장하는 단계(S130)와, 저장된 2진 영상이 흑점인 지를 판단하는 단계(S131)와, 흑점일 경우에 yoff값이 0보다 작은 지를 판단하는 단계(S132)와, yoff값이 0보다 작을 경우에 y축 저장 메모리의 m번째 값으로 1을 감소시키는 단계(S133)와, yoff값이 0보다 작지 않을 경우에 y축 저장 메모리의 m번째 값으로 +1로 초기화시키는 단계(S134)와, 흑점이 아닐 경우에 yoff값이 0보다 큰 지를 판단하는 단계(S135)와, yoff값이 0보다 클 경우에 y축 저장 메모리의 m번째 값으로 1을 증가시키는 단계(S136)와, yoff값이 0보다 크지 않을 경우에 y축 저장 메모리의 m번째 값으로 -1로 초기화시키는 단계(S137)를 포함하여 수행한다.In the storing of the position of the pixel as described above (S105), the positions of the black and white dots which have already been binarized are stored. The storing of the position of the binary pixel is performed by storing the binary image b (m, n) in y. Storing at the m th value of the axis storage memory (S130), determining whether the stored binary image is a black spot (S131), and determining whether the y off value is less than zero (S132). And reducing 1 to the m-th value of the y-axis storage memory when the y off value is less than 0 (S133), and + m to the m-th value of the y-axis storage memory when the y off value is not less than zero. Initializing to 1 (S134), determining whether the y off value is greater than 0 if not black (S135), and if the y off value is greater than 0 as the m-th value of the y-axis storage memory Step S136, and -1 as the m th value of the y-axis storage memory when the y off value is not greater than zero. It performs the step including the initialization to (S137).

상기 y위치 저장은 (m, n)화소를 이진화할 때마다 수행한다. y축 저장공간은 m개가 있다. 이때, (m, n)의 화소를 이진화한 후에 (m-16, n)의 2진 상태를 y축 저장 메모리의 m-16의 위치에 저장한다. 이러한 이유는 y축 저장 메모리는 상위 라인에 있는 소수 화소의 y위치를 저장해야 하는데, (m, n)의 화소에서 문턱값을 계산할 때, (m-16)에서 (m+16)까지에 저장되어 있는 상위 라인의 y위치가 사용되기 때문이다.The y position storage is performed each time the (m, n) pixel is binarized. There are m y-axis storage spaces. At this time, after binarizing the pixel of (m, n), the binary state of (m-16, n) is stored at the position of m-16 of the y-axis storage memory. For this reason, the y-axis storage memory must store the y position of the decimal pixel on the upper line, which is stored from (m-16) to (m + 16) when calculating the threshold value at the pixel of (m, n). This is because the y position of the upper line is used.

따라서, (m, n)화소를 2진화한 후에 (m+1, n)화소에서는 (m-16)의 위치에 있는 상위 라인의 소수화소 y정보는 사용되지 않기 때문에(최대 검색이 x축 방향으로 ±16) (m-16)의 위치 정보를 변화 시켜도 된다.Therefore, after the binarization of the (m, n) pixel, the (m + 1, n) pixel does not use the minority pixel y information of the upper line at the position (m-16) (the maximum search is in the x-axis direction). You can change the position information of ± 16) (m-16).

상기 표 6에서 회색 부분은 (m, n)화소를 2진화하는데 영향을 주지 않으므로 현재 라인에 대한 2진화 결과를 고려하여 y축 누적값을 갱신하고, 흰색 부분은 (m, n)화소의 2진 결과를 계산함에 있어서, 상위 라인의 y정보를 가지고 있으므로 갱신하지 않는다. 즉 화소를 2진화할 때마다 x축으로 16이전의 화소에 대한 2진 결과를 y축 누적값에 갱신하게 된다. 참고로, 처리하는 화소가 영상의 가로의 끝이 될 경우에는 2진화를 수행한 후에 16개 이전의 모든 화소를 y축 누적값에 갱신하게 된다. 이렇게 함으로써 최소의 메모리를 사용할 수 있게 되며, 표 6에서 흰색으로 처리된 16개의 위치에 해당하는 16개의 2진 상태를 저장하는 메모리가 필요하다.In Table 6, the gray part does not affect binarization of (m, n) pixels, so the y-axis cumulative value is updated in consideration of the binarization result of the current line, and the white part is 2 of (m, n) pixels. In calculating the true result, it does not update because it contains y information of the upper line. That is, each time the pixel is binarized, the binary result of the pixel before 16 on the x-axis is updated to the y-axis accumulated value. For reference, when the pixel to be processed becomes the horizontal end of the image, the binarization is performed to update all 16 pixels before the y-axis accumulated value. This allows the minimum memory to be used and requires memory to store the 16 binary states corresponding to the 16 white positions in Table 6.

또한, 2진 화소들 간의 거리가 최적거리를 유지하도록 하기 위해 이미 2진화된 화소들 중 소수 화소(Minor Pixel)에 대해 최소거리를 계산하는 단계(S102)의 상세한 계산과정은 도 3에 도시되어 있다. 저장된 가장 가까운 소수 화소의 위치로부터 거리, 즉 최소 거리를 계산하는 과정은 다음과 같다. 최소거리를 계산하기 위해서는 현재의 화소 위치와 소수 화소들간의 거리들을 계산하고 계산된 거리들 중의 최소값을 선택하면 된다. 이 때 거리 계산의 대상은 x축 좌표값들에 따라 한정된 화소에 대해서만 거리를 계산한다. 표 7은 입력화소에 대해 거리를 계산하여야 할 저장 메모리의 범위를 나타낸다.In addition, the detailed calculation process of the step (S102) of calculating the minimum distance for the minor pixels among the binarized pixels in order to maintain the optimum distance between the binary pixels is shown in FIG. have. The process of calculating the distance, i.e., the minimum distance, from the position of the nearest stored few pixels is as follows. In order to calculate the minimum distance, the distances between the current pixel position and the decimal pixels are calculated and the minimum value of the calculated distances is selected. At this time, the object of distance calculation calculates the distance only for a limited pixel according to the x-axis coordinate values. Table 7 shows the range of storage memory for which distances should be calculated for input pixels.

표 7에서 int(r)은 입력 계조에 대해 이미 계산된 최적거리의 정수값을 나타낸다. 즉, 상위 라인에 존재하는 소수 화소들의 거리를 계산하기 위해서는 현재 화소로부터 int(r)의 범위 안에 있는 메모리의 위치로부터 표 5에서 설명되어진 방법과 같이 소수 화소들의 y축상의 위치값을 계산한 후 유클리드 거리(Euclidean distance)를 계산하여 최소값을 찾을 수 있다. 최소 거리를 계산하는 방법에 있어서, 유클리드 거리를 미리 계산하여 LUT(테이블 색인; 테이블 속에서 각 항목을 색인할 때에 비교하거나 주사하거나 하여 색인하는 것이 아니라 직접 계산에 의하여 항목의 위치를 찾아내고 그것을 색인하는 방법)에 저장하여 계산과정을 생략시키는 방법을 사용할 수 있다. 하기 표 8은 유클리드 거리가 저장된 LUT를 나타낸다.In Table 7, int (r) represents an integer value of the optimum distance already calculated for the input gray scale. That is, in order to calculate the distance of the minority pixels existing in the upper line, after calculating the position value on the y-axis of the minority pixels as described in Table 5 from the position of the memory in the range of int (r) from the current pixel, The minimum can be found by calculating the Euclidean distance. In the method of calculating the minimum distance, Euclidean distance is precomputed to find the position of an item by direct calculation and index it rather than comparing or scanning or indexing each item in the table. Can be used to save the calculation process and omit the calculation process. Table 8 below shows the LUT stored Euclidean distance.

사용된 거리 저장 LUTUsed distance storage LUT 메모리 x축 위치Memory x-axis position 소수화소의 y출 위치값Extraction position of the fractional pixel 거리Street 00 1One 1One 22 22 33 33 5050 5050 1One 1One 1.141.14 22 2.2632.263 33 3.1623.162 5050 5050 1616 1One 16.0316.03 22 16.1216.12 33 16.2716.27 5050 52.4952.49

수학식 9에서 계산된 거리의 최대값을 포함하는 최소의 정수가 16이기 때문에, 표 8에서 메모리의 x축 위치는 16까지의 값을 갖는다. y축상의 위치값의 범위도 50까지이다. 50 이상의 값에 대해 LUT를 정의 하지 않은 이유는 x축값의 최대 16일 경우 y값이 50 이상이면 약 50으로 근사화 할 수 있기 때문이다.Since the minimum integer including the maximum value of the distance calculated in Equation 9 is 16, the x-axis position of the memory in Table 8 has a value up to 16. The range of position values on the y-axis is also up to 50. The reason why the LUT is not defined for a value above 50 is that if the maximum value of the x axis value is 16, the y value can be approximated to about 50 if the value is 50 or more.

또한, 2진 화소의 백점 및 흑점 각각의 x위치를 저장하는 단계(S106)는 y위치가 2진화된 상위 라인에 있는 2진 화소의 정보를 가지고 있어야 하기 때문에 원 영상의 가로 크기와 동일한 크기의 저장공간이 필요한 반면에 x위치 저장부는 (m, n)화소에 대해 (0, n)-(m-1, n) 까지의 화소의 위치를 저장하고 있으면 되므로, 하나의 변수에 저장할 수 있다. 즉 (m, n)화소를 2진화할 때마다 바뀌는 값이다.In addition, the step (S106) of storing the x position of each of the white point and the black point of the binary pixel has the same size as the horizontal size of the original image because the y position should have information of the binary pixel in the upper line binarized. While storage space is required, the x position storage unit can store the positions of pixels (0, n)-(m-1, n) for (m, n) pixels, and thus can store them in one variable. That is, the value changes every time the (m, n) pixel is binarized.

이와 같이 최소거리를 계산하는 단계(S102)는 입력된 화소 x(m, n)에 따라 검색 x범위를 결정하는 단계(S120)와, x범위를 -L로 치환하는 단계(S121)와, 라인상에서의 검색 x위치를 증가시키는 단계(S127)와, x범위가 가산된 L보다 작은 지를 판단하는 단계(S122)와, x범위가 L보다 작으면 2진 화소 y좌표에 저장되어 있는 값을 이용하여 위치 저장 LUT(Look-Up Table; 테이블 검색)로부터 상대적인 y축상의 위치값을 얻는 단계(S123)와, 검색위치 x와 y축 좌표값을 이용하여 거리 LUT를 이용하여 유클리드 거리 d를 계산하는 단계(S124)와, 최소거리 dmin이 거리 d보다 큰지를 판단하는 단계(S125)와, 클 경우에 최소거리 dmin를 거리 d로 치환하는 단계(S126)와, 검색 위치 x가 L보다 클 경우에 dmin과 xmin를 비교하여 최종적으로 가장 가까운 소수 화소의 거리를 결정하는 단계(S128)로 구성된다.As described above, calculating the minimum distance (S102) includes determining a search x range according to the input pixel x (m, n) (S120), replacing the x range with -L (S121), and a line. Increasing the search x position on the image (S127), determining whether the x range is smaller than the added L (S122), and using the value stored in the binary pixel y coordinate if the x range is smaller than L. Obtaining a relative position value on the y-axis from a position-stored look-up table (LUT) (S123), and calculating the Euclidean distance d using the distance LUT using the search position x and y-axis coordinate values. Step S124, determining whether the minimum distance d min is greater than the distance d, replacing the minimum distance d min with the distance d, if larger, S126, and searching position x is greater than L and when compared to the d min and x min obtain in step (S128) of determining the distance of the nearest decimal pixel finally It is.

또한, 단계(S104)는 최적거리와 최소거리를 이용하여 2진 문턱값을 변화시켜 결정하고, 단계(S105)에서는 변화된 문턱값으로부터 2진 화소값을 결정하는 단계를 수행하게 된다.In operation S104, the binary threshold value is changed by using the optimal distance and the minimum distance, and in step S105, the binary pixel value is determined from the changed threshold value.

상기 문턱값 변화 과정을 설명하면, 2진 영상에서 2진 화소들 간의 거리를 일정하게 유지하기 위해서 입력 계조에 대해 이미 정해진 이상적인 거리인 최적거리와 최소 거리 계산과정으로부터 계산되어진 소수 화소들 중 가장 가까운 거리를 이용하여 수학식 3에서의 2진 문턱값인 T를 변화시킨 후에 2진화를 수행하게 된다. 이 때 2진 문턱값의 변화는 하기 도 12에 의해 설명되어진다.Referring to the threshold value change process, in order to maintain a constant distance between binary pixels in a binary image, the closest of the few pixels calculated from the optimal distance and the minimum distance calculation process, which are already defined ideal distances for the input grayscale, are described. Binarization is performed after changing the binary threshold T in Equation 3 using the distance. The change in the binary threshold at this time is illustrated by Figure 12 below.

수학식 11에서 입력 화소값이 128보다 같거나 큰 경우 최소거리 dmin이 최적거리 r보다 큰 경우에는 (m, n)에서의 2진 출력값은 최적거리를 만족시키기 위해 흑점으로 2진화가 이루어져야 하며, dmin이 최적거리보다 작은 경우에는 (m, n)화소에 대한 2진 출력은 백점이 되도록 해야 한다. 2진 문턱값의 변화식은 하기 수학식 11과 같다.In Equation 11, when the input pixel value is greater than or equal to 128, when the minimum distance d min is greater than the optimal distance r, the binary output value at (m, n) must be binarized to a black spot to satisfy the optimal distance. If d min is less than the optimum distance, the binary output for (m, n) pixels should be at the white point. The equation of change of the binary threshold is shown in Equation 11 below.

수학식 11에서 A는 10-25 사이의 임의의 상수값이다.In Equation 11, A is any constant value between 10 and 25.

최적거리와 최소 거리를 이용하여 2진 문턱값인 T를 변화시킨 후에는 하기의 수학식 12 내지 수학식 14의 계산에 의하여 2진화를 수행하게 된다.After changing the binary threshold value T by using the optimum distance and the minimum distance, binarization is performed by the calculation of Equation 12 to Equation 14 below.

2진화된 화소들은 도 4의 과정에 따라 2진 화소의 y축값을 저장한다.The binarized pixels store the y-axis value of the binary pixel according to the process of FIG. 4.

이상에서 설명한 본 발명에 따르면, 화소가 2진 영상의 전 영역에 대해 골고루 분포되며, Marcu 방법에서와 같은 일정한 패턴을 갖지 않으므로 시각적으로 좋은 효과를 나타나고, 모든 2진 및 다계조 출력장치에 응용할 수 있는 것으로, 특히 2진 출력 디지털 프린터의 경우에 출력 영상의 화질을 개선할 수 있으며, 도 5에서 계조 250를 갖는 256x256 크기의 영상을 Eschbach 방법, Marcu 방법 및 본 발명에 의한 방법으로 2진화를 수행한 결과를 나타내고 있고, 또한, 본 발명에 의한 방법은 전 영역에 걸쳐 이진 화소가 골고루 균일하게 분포함을 볼 수가 있으며, 도 6 내지 도 8은 밝은 계조값을 주로 갖는 일반 영상에 대해 Eschbach 방법, Marcu 방법 및 본 발명에 의한 방법으로 2진화를 수행한 결과이고, 이마 부근의 영역에서의 점의 분포에서 보듯이 본 발명에 의한 2진 화소의 분포가 특정한 패턴없이 균일하게 분포하고 있음을 확인할 수 있어 2진 영상의 균일 분포를 위한 오차확산 방법에 의한 결과가 종래의 2진 영상에 비하여 향상된 화질을 갖는 효과가 있다.According to the present invention described above, since the pixels are evenly distributed over the entire area of the binary image, and do not have a constant pattern as in the Marcu method, it has a good visual effect and can be applied to all binary and multi-gradation output devices. In particular, in the case of a binary output digital printer, the image quality of the output image can be improved. In FIG. 5, the 256x256 size image having the gray level 250 is binarized by the Eschbach method, the Marcu method, and the method according to the present invention. In addition, the method of the present invention shows that the binary pixels are uniformly distributed evenly over the entire area. FIGS. 6 to 8 illustrate an Eschbach method for a general image mainly having bright gray values. The result of binarization by the Marcu method and the method according to the present invention, as shown in the distribution of points in the area near the forehead. It can be seen that the distribution of pixels is uniformly distributed without a specific pattern, and the result of the error diffusion method for the uniform distribution of the binary image has an improved image quality compared to the conventional binary image.

Claims (8)

입력 계조에 대해 균일한 점의 분포를 갖기 위해 2진 화소들 간에 유지되어야 하는 이상적인 거리인 최적거리(Principal Distance)를 결정하는 단계;Determining a principal distance, which is an ideal distance that should be maintained between binary pixels to have a uniform distribution of points with respect to the input grayscale; 이미 2진화된 소수 화소에 대하여 소수 화소값을 결정하는 단계;Determining a fractional pixel value for the fractionalized pixel already binarized; 2진 화소들 사이의 거리가 최적거리를 유지하도록 하기 위해 이미 2진화된 화소들 중 소수 화소(Minor Pixel)에 대해 최소거리를 계산하는 단계;Calculating a minimum distance with respect to a minor pixel among the binarized pixels so that the distance between the binary pixels maintains an optimal distance; 최적거리와 최소거리를 이용하여 2진 문턱값을 변화시켜 결정하는 단계;Determining by changing a binary threshold value using an optimal distance and a minimum distance; 변화된 문턱값으로부터 2진 화소값을 결정하는 단계;Determining a binary pixel value from the changed threshold; 이미 2진화된 상위 라인의 흑점과 백점 각각의 y 위치를 저장하는 단계;Storing the y position of each of the black and white points of the upper line already binarized; 이미 2진화된 동일 라인의 흑점과 백점 각각의 x 위치를 저장하는 단계를 수행하는 것을 특징으로 하는 거리제약에 따른 2진 영상의 균일 분포를 위한 오차확산 방법.And storing the x position of each of the black and white points of the same line already binarized. 제 1항에 있어서, 상기 최적거리를 결정하는 단계에서 최적거리로 수학식가 적용되는 것을 특징으로 하는 거리 제약에 따른 이진 영상의 균일 분포를 위한 오차확산 방법.The method of claim 1, wherein the optimum distance in the step of determining the optimum distance Error diffusion method for the uniform distribution of binary images according to the distance constraint characterized in that is applied. 제 1항에 있어서, 상기 최소거리를 계산하는 단계는The method of claim 1, wherein calculating the minimum distance 입력된 소수 화소값과 입력 화소 x(m, n)에 따라 검색 x범위를 결정하는 단계와,Determining a search x range according to the input decimal pixel value and the input pixel x (m, n); x범위를 -L로 치환하는 단계와,replacing x with -L, n라인상에서의 검색 x위치를 증가시키는 단계와,increasing the search x position on line n, x범위가 가산된 L보다 작은 지를 판단하는 단계와,determining whether the x range is less than the added L, x범위가 L보다 작으면 2진 화소 y좌표에 저장되어 있는 값을 이용하여 위치 저장 LUT(Look-Up Table; 테이블 검색)로부터 상대적인 y축값으로 소수 화소의 y축 좌표를 얻는 단계와,If the x range is less than L, using the values stored in the binary pixel y-coordinates to obtain the y-axis coordinates of the decimal pixel as a relative y-axis value from the look-up table lookup table (LUT), 검색위치 x와 y축 좌표값을 이용하여 거리 LUT를 이용하여 유클리드 거리 d를 계산하는 단계와,Calculating Euclidean distance d using distance LUT using search location x and y-axis coordinates, 최소거리 dmin이 거리 d보다 큰지를 판단하는 단계와,Determining whether the minimum distance d min is greater than the distance d, 클 경우에 최소거리 dmin를 거리 d로 치환하는 단계와,If large, substituting the distance d min for the distance d, 검색 위치 x가 L보다 클 경우에 dmin과 xmin를 비교하여 최종적으로 가장 가까운 소수 화소의 거리를 결정하는 단계를 더 포함하는 것을 특징으로 하는 거리 제약에 따른 이진 영상의 균일 분포를 위한 오차확산 방법.If the search position x is greater than L, comparing the min min and x min and finally determining the distance of the nearest few pixels, error diffusion for uniform distribution of the binary image according to the distance constraint Way. 제 1항에 있어서, 상기 2진 화소의 위치를 저장하는 단계는The method of claim 1, wherein the storing of the position of the binary pixel is performed. 2진 영상 b(m, n)을 y축 저장 메모리의 m번째 값으로 저장하는 단계와,Storing the binary image b (m, n) as the m th value of the y-axis storage memory; 저장된 2진 영상이 흑점인 지를 판단하는 단계와,Determining whether the stored binary image is a sunspot; 흑점일 경우에 yoff값이 0보다 작은 지를 판단하는 단계와,Determining whether y off is less than 0 in the case of sunspot; yoff값이 0보다 작을 경우에 y축 저장 메모리의 m번째 값으로 1을 감소시키는 단계와,if the value of y off is less than 0, decreasing 1 to the m-th value of the y-axis storage memory; yoff값이 0보다 작지 않을 경우에 y축 저장 메모리의 m번째 값으로 +1로 초기화시키는 단계와,initializing it to +1 as the mth value of the y-axis storage memory when y off is not less than 0; 흑점이 아닐 경우에 yoff값이 0보다 큰 지를 판단하는 단계와,Determining whether the y off value is greater than 0 when it is not a black point, yoff값이 0보다 클 경우에 y축 저장 메모리의 m번째 값으로 1을 증가시키는 단계와,incrementing 1 to the m th value of the y-axis storage memory when the y off value is greater than 0; yoff값이 0보다 크지 않을 경우에 y축 저장 메모리의 m번째 값으로 -1로 초기화시키는 단계가 포함된 것을 특징으로 하는 거리 제약에 따른 이진 영상의 균일 분포를 위한 오차확산 방법.and a y-initializing value to -1 as the mth value of the y-axis storage memory when the y off value is not greater than 0. 제 1항에 있어서, 상기 2진 화소값을 결정하는 단계에서 문턱값 변화식인The method of claim 1, wherein the threshold value change equation is determined in the step of determining the binary pixel value. (A는 10-25 사이의 임의의 상수값)가 적용되고,(A is any constant value between 10 and 25), 최적거리와 최소 거리를 이용하여 2진 문턱값인 T를 변화시킨 후에는 다음의 수학식After changing the binary threshold T using the optimal and minimum distances, 가 적용되는 것을 특징으로 하는 거리 제약에 따른 이진 영상의 균일 분포를 위한 오차확산 방법.Error diffusion method for the uniform distribution of binary images according to the distance constraint characterized in that is applied. 제 1항에 있어서, 상기 2진 화소의 위치를 저장하는 방법이 2진 영상의 2차원 위치를 저장하고, 저장된 2진 영상의 위치를 1차원의 정보로 변화시켜 누적값으로 저장하여 메모리 사용량을 최소화하는 것을 특징으로 하는 거리제약에 따른 2진 영상의 균일 분포를 위한 오차확산 방법.The method of claim 1, wherein the storing of the position of the binary pixel comprises storing a two-dimensional position of a binary image, changing a stored binary image into one-dimensional information, and storing the accumulated binary value as a cumulative value. Error diffusion method for uniform distribution of binary images according to distance constraint, characterized in that to minimize. 제 1항에 있어서, 상기 2진 영상의 거리를 계산하는 단계가 입력 계조값에 따라 메모리의 검색범위를 정하여 한정된 화소에 대해서만 거리를 계산하는 것을 특징으로 하는 거리제약에 따른 2진 영상의 균일 분포를 위한 오차확산 방법.The uniform distribution of the binary image according to the distance constraint of claim 1, wherein the calculating of the distance of the binary image comprises calculating a search range of a memory according to an input gray value and calculating a distance only for a limited pixel. Error diffusion method for 제 7항에 있어서, 상기 한정된 화소에 대해서만 거리를 계산하는 방법이 메모리의 검색 위치를 x축으로 하고 y축 값에 대해 미리 거리를 계산하여 LUT에 저장하는 것을 특징으로 하는 거리제약에 따른 2진 영상의 균일 분포를 위한 오차확산 방법.8. The binary method according to claim 7, wherein the method for calculating the distance for only the limited pixels is based on the search position of the memory as the x-axis and the distance is calculated in advance for the y-axis value and stored in the LUT. Error diffusion method for uniform distribution of images.
KR1019990053325A 1999-11-27 1999-11-27 Principal Distance Constraint Image Halftoning for Homogeneous Dot Distribution KR100317246B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019990053325A KR100317246B1 (en) 1999-11-27 1999-11-27 Principal Distance Constraint Image Halftoning for Homogeneous Dot Distribution

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019990053325A KR100317246B1 (en) 1999-11-27 1999-11-27 Principal Distance Constraint Image Halftoning for Homogeneous Dot Distribution

Publications (2)

Publication Number Publication Date
KR20010048592A true KR20010048592A (en) 2001-06-15
KR100317246B1 KR100317246B1 (en) 2001-12-24

Family

ID=19622295

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019990053325A KR100317246B1 (en) 1999-11-27 1999-11-27 Principal Distance Constraint Image Halftoning for Homogeneous Dot Distribution

Country Status (1)

Country Link
KR (1) KR100317246B1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100438712B1 (en) * 2002-01-12 2004-07-05 삼성전자주식회사 Binary image generating method using minority pixel location information
KR100453043B1 (en) * 2002-02-26 2004-10-15 삼성전자주식회사 Method and apparatus for converting level of image
US7619777B2 (en) 2005-07-25 2009-11-17 Samsung Electronics Co., Ltd Method of generating halftone screen and system thereof

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100438734B1 (en) * 2002-08-29 2004-07-05 삼성전자주식회사 Half toning method and apparatus of digital color printer
KR100462633B1 (en) * 2003-02-17 2004-12-23 삼성전자주식회사 Binary image generating method using minority pixel location information

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100438712B1 (en) * 2002-01-12 2004-07-05 삼성전자주식회사 Binary image generating method using minority pixel location information
KR100453043B1 (en) * 2002-02-26 2004-10-15 삼성전자주식회사 Method and apparatus for converting level of image
US7619777B2 (en) 2005-07-25 2009-11-17 Samsung Electronics Co., Ltd Method of generating halftone screen and system thereof

Also Published As

Publication number Publication date
KR100317246B1 (en) 2001-12-24

Similar Documents

Publication Publication Date Title
US6643398B2 (en) Image correction device, image correction method and computer program product in memory for image correction
KR0150150B1 (en) System of error diffusion algorithm with edge enhancement
KR0173456B1 (en) Dither image processing method
US6466225B1 (en) Method of halftoning an image on a video display having limited characteristics
US7064862B2 (en) Printer and printing method for image-quality correction
Morovic et al. Accurate 3d image colour histogram transformation
JPH05308515A (en) Method for quantizing pixel value in picture
CN101207710A (en) Image processing device
US7301673B2 (en) Error diffusion processing method
KR100317246B1 (en) Principal Distance Constraint Image Halftoning for Homogeneous Dot Distribution
US6690389B2 (en) Tone modifying dithering system
JPH1093820A (en) Error spread system and error spread method
JP3554077B2 (en) Image processing device
JPH0846784A (en) Image processing unit
KR100462633B1 (en) Binary image generating method using minority pixel location information
KR100388262B1 (en) A Principal Distance Based Error Diffusion Technique
KR100438712B1 (en) Binary image generating method using minority pixel location information
KR100508305B1 (en) An Error Diffusion Method based on Phase Shift of Sinusoidal Function on Plasma Display Panel
JP3565402B2 (en) Image processing apparatus, image processing method, and recording medium recording image processing program
JPH08111777A (en) Image processor
KR20030083875A (en) Color tone correct method of liquid display device
JP2887809B2 (en) Multi-value image input device
KR100238045B1 (en) Halftoning image processing method of image system
KR100544192B1 (en) Method and apparatus detecting a pixel distance for regulation of a threshold
Lee et al. Color quantization and dithering method based on HVS characteristics

Legal Events

Date Code Title Description
A201 Request for examination
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20121012

Year of fee payment: 12

FPAY Annual fee payment

Payment date: 20140415

Year of fee payment: 13

FPAY Annual fee payment

Payment date: 20141128

Year of fee payment: 14

FPAY Annual fee payment

Payment date: 20151020

Year of fee payment: 15

FPAY Annual fee payment

Payment date: 20171128

Year of fee payment: 17