KR19990011500A - Local binarization method of the imaging system - Google Patents

Local binarization method of the imaging system Download PDF

Info

Publication number
KR19990011500A
KR19990011500A KR1019970034620A KR19970034620A KR19990011500A KR 19990011500 A KR19990011500 A KR 19990011500A KR 1019970034620 A KR1019970034620 A KR 1019970034620A KR 19970034620 A KR19970034620 A KR 19970034620A KR 19990011500 A KR19990011500 A KR 19990011500A
Authority
KR
South Korea
Prior art keywords
edge
row
pixel
column pixel
interest
Prior art date
Application number
KR1019970034620A
Other languages
Korean (ko)
Other versions
KR100467565B1 (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 KR1019970034620A priority Critical patent/KR100467565B1/en
Publication of KR19990011500A publication Critical patent/KR19990011500A/en
Application granted granted Critical
Publication of KR100467565B1 publication Critical patent/KR100467565B1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/40Picture signal circuits
    • H04N1/403Discrimination between the two tones in the picture signal of a two-tone original

Abstract

본 발명은, 화상 시스템에 있어서 이치화 대상 화상에서 이치화할 주목 화소를 순차적으로 지정하는 주목 화소 지정 단계와, 복수의 에지 방향 검출 마스크를 이용하여 각각 상기 주목 화소를 중심으로 인접 화소를 마스킹한 후, 최대의 에지 크기를 갖는 방향을 산출함으로써 상기 주목 화소에 대응하는 최대 에지 크기와 최적 에지 방향을 검출하는 에지 검출 단계와, 상기 주목 화소의 주변에 위치한 인접 화소의 특성을 반영하는 국부 이치화 여부를 상기 최대 에지 크기를 이용하여 결정한 후, 상기 최적 에지 방향에 따라 선정한 복수의 인접 화소들을 통해 국부 역치를 결정하여 상기 주목 화소에 대한 국부 이치화를 수행하는 이치화 단계로 구성된 화상 시스템의 국부 이치화 방법에 관한 것이다.According to the present invention, in an image system, a pixel of interest designation step of sequentially designating a pixel of interest to be binarized in a binarization target image, and masking adjacent pixels around the pixel of interest using a plurality of edge direction detection masks, respectively, An edge detection step of detecting a maximum edge size and an optimal edge direction corresponding to the pixel of interest by calculating a direction having a maximum edge size, and whether localization is performed to reflect characteristics of adjacent pixels positioned around the pixel of interest; And a binarization step of performing local binarization on the pixel of interest by determining a local threshold through a plurality of adjacent pixels selected according to the optimal edge direction after determining using a maximum edge size. .

본 발명에 따르면, 이치화 마스크를 통해 문서 화상을 이치화할 시에 에지의 방향성을 이용하여 국부 이치화를 수행함으로써 오경계화(false contouring)를 최소화하고, 노이즈에 의한 고립점의 발생을 억제할 수 있는 이점이 있다.According to the present invention, localization is performed by using edge orientation when binarizing a document image through a binarization mask, thereby minimizing false contouring and suppressing generation of isolated points due to noise. There is this.

Description

화상 시스템의 국부 이치화 방법.Local binarization method of the imaging system.

본 발명은 화상 시스템의 국부 이치화 방법(local binarization method)에 관한 것으로, 더욱 상세하게는 화상 입력 시스템에 있어서, 이치화 마스크를 통해 문서 화상을 이치화할 시에 에지의 방향성을 이용하여 국부 이치화를 수행함으로써 오경계화(false contouring)를 최소화하고, 노이즈에 의한 고립점의 발생을 억제할 수 있도록 하는 화상 시스템의 국부 이치화 방법에 관한 것이다.The present invention relates to a local binarization method of an image system, and more particularly, in an image input system, by performing local binarization using edge orientation when binarizing a document image through a binarization mask. The present invention relates to a localized binarization method of an image system that minimizes false contouring and suppresses generation of an isolated point due to noise.

대표적인 화상 시스템 중 하나인 스캐너(즉, 독취 수단)는 인쇄물, 사진, 사람의 손으로 작성한 메모 형태의 글자나 그림 등을 독취하기 위한 가장 일반적인 수단으로써, 복합기, 문서 번역기, CAD(Computer Aided Design)용 컴퓨터, 팩시밀리, 문자 인식기, 디지털 복사기 등의 필수 구성 요소이다.One of the typical imaging systems, the scanner (ie, reading means) is the most common means for reading printed texts, photographs, human-written letters or pictures, and includes a multifunction device, a document translator, and CAD (Computer Aided Design). Essential components such as computer, facsimile, character recognizer and digital copier.

최근 들어, 날로 발전의 기로에 있는 사무 자동화에 편승하여 프린터, 스캐너 및 팩시밀리 등과 같은 사무 자동화 기기에 대한 수요가 급증하고 있음에 따라 각각의 사무 자동화 기기들은 각기 고유의 기능을 확장하기 위해 고성능으로 개발되고 있으며, 이와 더불어, 독자적으로 사용되던 각각의 사무 자동화 기기를 일체형으로 개발하여 사용자에게 경제적 부담과 설치 공간을 경감시켜주면서 동시에 복합 문서 출력 기능을 수행하는 제품이 생산·제공되고 있는 추세이다.In recent years, as office electronics, which are at the crossroads of development, is rapidly increasing in demand for office automation devices such as printers, scanners, and facsimile machines, each office automation device is developed with high performance to expand its own functions. In addition, it is a trend to produce and provide a product that performs a complex document output function at the same time to reduce the economic burden and installation space for the user by developing each office automation equipment that was used independently as an integrated.

특히, 팩시밀리, 복합기 등과 같이 내부에 문서에 대한 독취가 가능한 스캐너를 내장한 장치들에 있어서, 다단계의 계조를 갖는 화상을 스캐너를 통해 독취한 후, 독취된 데이터에 대한 이치화 방법의 특성은 스캐너의 성능을 평가함에 있어 주요한 평가 항목이 되고 있다.In particular, in devices having a scanner capable of reading a document therein, such as a facsimile machine or a multifunction printer, after reading an image having multiple levels of gradation through the scanner, the characteristics of the binarization method of the read data are characterized by In evaluating performance, it becomes a major evaluation item.

통상, 『화상 이치화(image binarization)』는 화상 시스템에서 다단계 계조(multi-step gray level)로 표현된 계조 화상(gray level image)을 양자화수가 1비트, 즉, '1'과 '0'의 이진 화상(binary image, 또는 이치 화상)으로 표현하고자 할 시에 이용하는 화상 처리 기법으로, 대상 화상의 특징 정보를 보존할 수 있으면서도 처리 데이터량을 현격하게 줄일 수 있는 신호 처리적인 특성에 입각하여 화상 압축, 화상 출력, 화상 인식 등의 분야에서 광범위하게 이용되고 있다.In general, "image binarization" refers to a gray level image represented by a multi-step gray level in an image system, where a quantization number is one bit, that is, a binary number of '1' and '0'. An image processing technique used to express a binary image or binary image. Image compression is performed based on a signal processing characteristic capable of preserving the characteristic information of a target image while significantly reducing the amount of processing data. It is widely used in the field of image output, image recognition, etc.

이와 같이 응용 분야가 광범위함에 힘입어 다양한 화상 이치화 방법이 공지되어 있다.Due to this wide range of applications, various image binarization methods are known.

가장 일반적인 이치화 방법은 임의의 역치를 결정해 놓고, 이 역치 보다 큰 화소값에는 1을 할당하고 역치 보다 작은 화소값에는 0을 할당함으로써 이치화된 영상을 얻는 것이다. 이처럼 화상 이치화 처리는 역치를 기준삼아 계조를 상하로 분류하는 역치 처리의 일종이며, 이러한 역치 처리에서 가장 중요한 것은 역치의 결정에 있는 데, 가장 단순하게는 화상 계조의 중간값을 역치로 취하는 방법이 있으며, 농도 히스토그램을 통해 더욱 더 정확한 역치를 결정하는 방법이 있기도 하다.The most common binarization method is to obtain a binarized image by determining an arbitrary threshold and assigning 1 to a pixel value larger than the threshold and 0 to a pixel value smaller than the threshold. Thus, image binarization processing is a kind of threshold processing for classifying gray levels up and down based on a threshold value. The most important thing in the threshold processing is the determination of a threshold value. There are also ways to determine more precise thresholds through concentration histograms.

한편, 시각적으로 중요한 화상의 에지 영역(edge region)을 적절하게 이치화하기 위해 소정의 에지 강조 필터(edge enhancement filter)를 통해 원영상의 에지를 강조한 후에 이치화를 수행하는 방법이 있는데, 이러한 방법은 에지 강조 과정을 포함하지 않는 방법에 비해 양호한 이치화 영상을 얻을 수 있는 것으로 알려져 있다.Meanwhile, in order to properly binarize an edge region of a visually important image, there is a method of performing binarization after emphasizing an edge of an original image through a predetermined edge enhancement filter. It is known that a good binarization image can be obtained compared to a method that does not include the emphasis process.

이에 대한 일례를 도 1을 참조하여 설명하면 다음과 같다.An example thereof will be described with reference to FIG. 1.

원화상의 계조값이 표 1과 같이 주어질 경우,If the gradation value of the original image is given in Table 1,

7878 7777 7676 9393 152152 176176 227227 222222

표 2와 같은 1×3 에지 강조 마스크(1×3 edge enhancement mask)를 이용하여 공간 필터링(spatial filtering)을 수행하면,When spatial filtering is performed using a 1 × 3 edge enhancement mask as shown in Table 2,

-1-One 33 -1-One

표 3과 같은 에지가 강조된 결과를 얻을 수 있다.You can get the result with the edge shown in Table 3.

7777 5858 5151 187187 149149 255255

도 1은 원화상의 계조값과 에지가 강조된 계조값을 도시한 것으로, 여기서, 실선은 원화상의 계조값을 나타낸 것이며, 점선은 에지를 강조한 결과 화상의 계조값을 나타낸다.Fig. 1 shows the gradation value of the original image and the gradation value of which the edge is emphasized, where the solid line represents the gradation value of the original image, and the dotted line represents the gradation value of the image as a result of emphasizing the edge.

이때, 역치를 150으로 설정하면, 표 3의 78, 58, 51은 0으로 설정되고, 187은 1로, 149는 0으로, 255는 1로 설정됨에 따라 1로 설정된 화소를 흑색으로 나타내고, 0으로 설정된 화소를 흰색으로 나타낼 경우, 에지가 분포하는 187, 149, 255 부분에서 149를 기준으로 양쪽에 에지가 각각 하나씩 존재함에 따라 두줄의 에지가 나타냄으로써 원화상을 변형 또는 왜곡시키는 결과를 초래한다.In this case, when the threshold is set to 150, 78, 58, and 51 in Table 3 are set to 0, 187 is set to 1, 149 is set to 0, and 255 is set to 1, so that the pixel set to 1 is displayed in black, and 0 When the pixel set to is white, the edges of 187, 149, and 255 where the edges are distributed have one edge on each side of 149, resulting in two lines of edges, resulting in deformation or distortion of the original image. .

이와 같이, 보다 성능이 월등한 이치화 특성을 갖고 있는 것으로 알려진 에지 강조 과정을 포함하는 이치화 방법을 이용하는 경우에도 도 1을 통해 설명한 바와 같은 에지 영역에서 오경계화가 발생함에 따라 에지 영역(edge region)과 비에지 영역(non-edge region)을 분리하여 이치화를 수행할 수 있는 국부 이치화 방법의 등장이 기대되고 있으며, 이에 따라 현재 다수의 국부 이치화 방법이 공지되어 있는 상태이다.As described above, even when a binarization method including an edge enhancement process known to have superior binarization characteristics is used, an edge region and an edge boundary are generated in the edge region as described with reference to FIG. 1. It is expected that a localized binarization method capable of performing binarization by separating non-edge regions is expected. Accordingly, many localized binarization methods are currently known.

본 발명의 출원인도 이와 같은 기술적인 기대에 부응하고자 대한 민국 특허 출원 번호 91-8508 호, 국부적인 최대 및 최소 밝기값을 이용한 이치화 방법을 포함하여 다수의 국부 이치화 방법을 제안한 바 있다.Applicants of the present invention have also proposed a number of localized binarization methods, including Korean Patent Application No. 91-8508, a binarization method using local maximum and minimum brightness values, to meet such technical expectations.

대한 민국 특허 출원 번호 91-8508 호, 국부적인 최대 및 최소 밝기값을 이용한 이치화 방법은 발명의 명칭에서 의미하는 바와 같이 소정의 윈도우를 갖는 이치화 마스크를 이용하여 화상의 주목 화소를 중심으로 인접 화소를 마스킹한 후, 이 이치화 마스크에 마스킹된 화소들의 국부적인 최대값과 최소값을 이용하여 주목 화소를 적응적으로 이치화한다.The Korean Patent Application No. 91-8508, a binarization method using local maximum and minimum brightness values, uses a binarization mask having a predetermined window as indicated by the name of the invention to focus adjacent pixels around the pixel of interest in the image. After masking, the pixel of interest is adaptively binarized using the local maximum and minimum values of the pixels masked in this binarization mask.

이와 같은 종래 기술에 따른 최대-최소 기반 국부 이치화 방법은, 스캐닝 대상 화상을 다단계 계조로 셔틀 스캐닝 방식에 입각하여 밴드 단위로 스캐닝하는 스캐닝 단계와, 셔틀 스캐닝을 위한 윈도우 진행 방향에 따라 소정의 윈도우를 갖는 이치화 마스크를 이용하여 화상의 주목 화소를 중심으로 인접 화소를 마스킹하는 이치화 마스킹 단계와, 상기 이치화 마스크에 마스킹된 화소들의 최대값과 최소값을 구한 후, 상기 최대값과 상기 최소값의 차분값의 절대값이 기설정된 기준치보다 작으면 기설정된 전역 역치를 이용하여 주목 화소를 이치화하고 그렇지 않으면 상기 전역 역치보다 상대적으로 작은 기설정된 국부 역치를 이용하여 상기 주목 화소를 이치화하는 이치화 단계를 수행하도록 구성된다.According to the prior art, the maximum-minimum localized localization method includes a scanning step of scanning a scanning target image in bands based on a shuttle scanning method in multi-level grayscales, and a predetermined window according to a window advance direction for shuttle scanning. A binarization masking step of masking adjacent pixels around the pixel of interest in the image by using a binarization mask having a maximum value, and after obtaining the maximum and minimum values of the pixels masked in the binarization mask, an absolute value of the difference between the maximum value and the minimum value And if the value is less than a predetermined reference value, binarizes the pixel of interest using a predetermined global threshold and otherwise binarizes the pixel of interest using a predetermined local threshold that is relatively smaller than the global threshold.

종래 기술에 따른 최대-최소 기반 국부 이치화 방법에 따르면 에지 강조 필터링을 생략하고도 선명한 화질을 얻을 수 있는 장점이 있으나, 최대-최소 기반 국부 이치화 방법의 단점은 인접 화소들 중에서 단 하나의 화소라도 노이즈 성분을 가지게 되면, 최대값과 최소값의 차분치가 기준치를 초과하게 되어 실제 문자나 화상의 에지(즉, 경계)가 아님에도 불구하고 에지로 인식하게 되어 국부 역치가 적용됨으로써 결과적으로 이치화된 화상에 불필요한 고립 화소가 발생하여 화질을 저해하는 요인이 되는 문제가 있다.According to the conventional maximum-minimum localized localization method, there is an advantage that a clear image quality can be obtained without omitting edge enhancement filtering. However, the disadvantage of the maximum-minimum localized localized method is that even a single pixel among the adjacent pixels is noisy. With the component, the difference between the maximum and minimum values exceeds the reference value and is recognized as an edge even though it is not the edge (i.e., the edge) of the actual character or image, and the local threshold is applied, resulting in unnecessary use for the binarized image. There is a problem that an isolated pixel is generated, which causes a deterioration in image quality.

다시 말해서, 종래 기술에 따른 최대-최소 기반 국부 이치화 방법은 에지의 방향을 고려하지 않고 인접 화소의 최대값 및 최소값을 구하기 때문에 노이즈 성분과 실제 문자나 화상의 에지 성분을 구별할 수 있는 별도의 조치가 취해지지 않음에 기인하여 노이즈에 민감하게 되는 것이다.In other words, the maximum-minimum based local binarization method according to the prior art obtains the maximum and minimum values of adjacent pixels without considering the direction of the edges, so that a separate measure can be distinguished between noise components and edge components of an actual character or image. Is not sensitive to noise.

따라서, 본 발명은 이와 같은 문제점에 착안하여 안출된 것으로, 화상 입력 시스템에 있어서, 이치화 마스크를 통해 문서 화상을 이치화할 시에 에지의 방향성을 이용하여 국부 이치화를 수행함으로써 오경계화(false contouring)를 최소화하고, 노이즈에 의한 고립점의 발생을 억제할 수 있도록 하는 화상 시스템의 국부 이치화 방법을 제공함에 그 목적이 있다.Accordingly, the present invention has been made in view of such a problem, and in the image input system, false contouring is performed by performing local binarization by using edge directionality when binarizing a document image through a binarization mask. It is an object of the present invention to provide a localized binarization method of an image system that can minimize and suppress the occurrence of an isolated point due to noise.

도 1은 종래 기술에 따라 원화상의 계조값과 에지가 강조한 계조값을 도시한 그래프,1 is a graph showing a gray value of an original image and a gray value highlighted by an edge according to the prior art;

도 2는 본 발명에 따른 화상 시스템의 국부 이치화 방법의 바람직한 실시예의 순서도,2 is a flow chart of a preferred embodiment of a localized method of image system in accordance with the present invention;

도 3은 셔틀 스캐닝 기반 화상 시스템의 일례가 되는 셔틀 스캐너 모듈을 도시한 블록도,3 is a block diagram illustrating a shuttle scanner module as an example of a shuttle scanning based imaging system;

도 4는 A4 사이즈 원고를 셔틀 스캐너 모듈로 스캐닝하기 위한 셔틀 블록을 도시한 예시도,4 is an exemplary view showing a shuttle block for scanning an A4 size original with a shuttle scanner module;

도 5는 한 개의 셔틀 블록이 스캐닝되는 방법을 설명하기 위한 예시도,5 is an exemplary diagram for describing a method in which one shuttle block is scanned;

도 6은 4 방향에 대한 각각의 3×3 에지 방향 검출 마스크를 도시한 예시도,6 is an exemplary diagram showing each 3x3 edge direction detection mask for four directions;

도 7은 본 발명의 에지 영역에서 인접 화소의 선정 예를 도시한 예시도.7 is an exemplary diagram showing an example of selecting adjacent pixels in an edge region of the present invention;

<도면의 주요부분에 사용된 부호의 설명><Description of the code used in the main part of the drawing>

21 : 셔틀 스캐너 모듈 22 : 프린터 헤드21: shuttle scanner module 22: print head

23 : 수평 이동축 24 : 캐리지 리턴 모터23: horizontal moving shaft 24: carriage return motor

25 : 라인 피드 모터 26 : 이동벨트25: line feed motor 26: moving belt

이와 같은 본 발명의 목적을 달성하기 위해, 본 발명에 따른 화상 시스템의 국부 이치화 방법은, 화상 시스템에 있어서, 이치화 대상 화상에서 이치화할 주목 화소를 순차적으로 지정하는 주목 화소 지정 단계와, 복수의 에지 방향 검출 마스크를 이용하여 각각 상기 주목 화소를 중심으로 인접 화소를 마스킹한 후, 최대의 에지 크기를 갖는 방향을 산출함으로써 상기 주목 화소에 대응하는 최대 에지 크기와 최적 에지 방향을 검출하는 에지 검출 단계와, 상기 주목 화소의 주변에 위치한 인접 화소의 특성을 반영하는 국부 이치화 여부를 상기 최대 에지 크기를 이용하여 결정한 후, 상기 최적 에지 방향에 따라 선정한 복수의 인접 화소들을 통해 국부 역치를 결정하여 상기 주목 화소에 대한 국부 이치화를 수행하는 이치화 단계로 구성되는 것이 특징이다.In order to achieve the above object of the present invention, the localized binarization method of the image system according to the present invention includes a target pixel specifying step of sequentially specifying a pixel of interest to be binarized in a binarization target image in the image system, and a plurality of edges. An edge detection step of detecting a maximum edge size and an optimal edge direction corresponding to the pixel of interest by masking adjacent pixels around the pixel of interest using a direction detection mask, and then calculating a direction having a maximum edge size; Determining whether localization is performed by reflecting the characteristics of adjacent pixels located around the pixel of interest using the maximum edge size, and then determining a local threshold through a plurality of adjacent pixels selected according to the optimal edge direction. Characterized by a binarization step that performs localized binarization for All.

본 발명의 특징에 있어서, 상기 이치화 단계는 상기 최대 에지 크기를 기설정된 기준치와 비교하여 상기 최대 에지 크기가 상기 기준치보다 크면 상기 주목 화소가 속한 영역을 에지 영역(edge region)으로 결정하고, 그렇지 않으면, 비에지 영역(non-edge region)으로 결정하는 영역 결정 단계와, 상기 주목 화소가 속한 영역이 상기 에지 영역(edge region)으로 결정되면, 상기 최적 에지 방향의 에지 방향 검출 마스크에 마스킹된 화소들 중에서 상기 최적 에지 방향을 따라 복수의 인접 화소를 선정하는 인접 화소 선정 단계와, 선정된 인접 화소들을 평균하여 상기 국부 역치를 결정한 후, 상기 국부 역치에 따라 상기 주목 화소에 대한 이치화를 수행하는 국부 이치화 단계와, 상기 주목 화소가 속한 영역이 비에지 영역(non-edge region)으로 결정되면, 기설정된 전역 역치를 이용하여 상기 주목 화소를 이치화하는 전역 이치화 단계로 구성되는 것이 바람직하다.In the aspect of the present invention, the binarizing step compares the maximum edge size with a preset reference value and determines an area to which the pixel of interest belongs as an edge region if the maximum edge size is larger than the reference value. Determining a non-edge region, and when the region to which the pixel of interest belongs is determined as the edge region, pixels masked in an edge direction detection mask in the optimal edge direction. A local pixel selection step of selecting a plurality of adjacent pixels along the optimal edge direction among the plurality of pixels; determining the local threshold by averaging the selected neighbor pixels, and performing localization on the pixel of interest according to the local threshold; And if the region to which the pixel of interest belongs is determined to be a non-edge region, the preset global region. That by using a global consisting binarizing step of binarizing the pixel of interest it is preferred.

이하, 본 발명에 따른 화상 시스템의 국부 이치화 방법의 바람직한 실시예를 도 2를 참조하여 설명하면 다음과 같다.Hereinafter, a preferred embodiment of the method for localizing the image system according to the present invention will be described with reference to FIG.

도 2는 본 발명에 따른 화상 시스템의 국부 이치화 방법의 바람직한 실시예의 순서도를 도시한 것이다.Figure 2 shows a flowchart of a preferred embodiment of the localized method of image system according to the invention.

본 발명에 따른 화상 시스템의 국부 이치화 방법의 바람직한 실시예는 도 2에 도시한 바와 같이, 이치화 대상 화상에서 이치화할 주목 화소를 순차적으로 지정하는 주목 화소 지정 단계(S10);According to a preferred embodiment of the method of localized binarization of an image system according to the present invention, as shown in Fig. 2, a target pixel specifying step (S10) of sequentially specifying a pixel of interest to be binarized in a binarization target image (S10);

복수의 에지 방향 검출 마스크를 이용하여 각각 상기 주목 화소를 중심으로 인접 화소를 마스킹한 후, 최대의 에지 크기를 갖는 방향을 산출함으로써 상기 주목 화소에 대응하는 최대 에지 크기와 최적 에지 방향을 검출하는 에지 검출 단계(S20); 및An edge for detecting the maximum edge size and the optimal edge direction corresponding to the pixel of interest by masking adjacent pixels around the pixel of interest using a plurality of edge direction detection masks, and then calculating the direction having the largest edge size. Detection step S20; And

상기 주목 화소의 주변에 위치한 인접 화소의 특성을 반영하는 국부 이치화 여부를 상기 최대 에지 크기를 이용하여 결정한 후, 상기 최적 에지 방향에 따라 선정한 복수의 방향 기반 인접 화소들을 통해 국부 역치를 결정하여 상기 주목 화소에 대한 국부 이치화를 수행하는 이치화 단계(S100)로 구성된다.After determining whether localization reflects characteristics of adjacent pixels located around the target pixel using the maximum edge size, the local threshold is determined through a plurality of direction-based adjacent pixels selected according to the optimal edge direction. And a binarization step S100 for performing local binarization of the pixels.

여기서, 상기 이치화 단계(S100)는 상기 최대 에지 크기를 기설정된 기준치와 비교하여 상기 최대 에지 크기가 상기 기준치보다 크면 상기 주목 화소가 속한 영역을 에지 영역(edge region)으로 결정하고, 그렇지 않으면, 비에지 영역(non-edge region)으로 결정하는 영역 결정 단계(S110);Here, in the binarizing step S100, when the maximum edge size is larger than the reference value, the maximum edge size is compared with a preset reference value, and the area to which the pixel of interest belongs is determined as an edge region. An area determining step S110 of determining a non-edge region;

상기 주목 화소가 속한 영역이 상기 에지 영역(edge region)으로 결정되면, 상기 최적 에지 방향의 에지 방향 검출 마스크에 마스킹된 화소들 중에서 상기 최적 에지 방향을 따라 복수의 방향 기반 인접 화소를 선정하는 인접 화소 선정 단계(S120);When the region to which the pixel of interest belongs is determined as the edge region, adjacent pixels for selecting a plurality of direction-based adjacent pixels along the optimal edge direction among pixels masked by the edge direction detection mask in the optimal edge direction. Selection step (S120);

선정된 방향 기반 인접 화소들을 평균하여 상기 국부 역치를 결정한 후, 상기 국부 역치에 따라 상기 주목 화소에 대한 이치화를 수행하는 국부 이치화 단계(S130); 및A local binarization step of determining the local threshold by averaging the selected direction-based neighboring pixels and performing binarization on the pixel of interest according to the local threshold; And

상기 주목 화소가 속한 영역이 비에지 영역(non-edge region)으로 결정되면, 기설정된 전역 역치를 이용하여 상기 주목 화소를 이치화하는 전역 이치화 단계(S140)로 구성된다.When the region to which the pixel of interest belongs is determined as a non-edge region, a global binarization step (S140) is performed to binarize the pixel of interest using a predetermined global threshold.

이와 같이 구성된 본 발명에 의한 화상 시스템의 국부 이치화 방법의 수행 절차를 도 2를 참조하여 설명하면 다음과 같다.Referring to Fig. 2, the procedure of performing a localized method of an image system according to the present invention configured as described above will be described.

우선, 본 발명의 방법에 대한 수행 절차를 설명하기에 앞서서, 본 발명을 적용 실시할 수 있는 시스템의 일례 중 하나인 셔틀 스캐닝 기반 화상 시스템에 대해 간략하게 살펴보면 다음과 같다.First of all, prior to explaining the execution procedure for the method of the present invention, the shuttle scanning based image system, which is one example of a system to which the present invention can be applied and described, will be briefly described as follows.

도 3은 셔틀 스캐닝 기반 화상 시스템의 일례가 되는 셔틀 스캐너 모듈을 도시한 블록도로, 셔틀 스캐너 모듈의 구성 및 동작을 보다 상세히 살펴보면, 셔틀 스캐너 모듈(21)은 CCD보드, 렌즈, 광원으로 구성되며, 프린터 헤드(22)와 동일한 수평 이동축(23)에 장치되어 1개의 캐리지 리턴 모터(Carriage Return Motor; 이하 'CR 모터'라 약칭함)(24)와 이동벨트(26)를 통하여 두 개의 모듈을 구동할 수 있다.3 is a block diagram illustrating a shuttle scanner module as an example of a shuttle scanning-based imaging system. Referring to the configuration and operation of the shuttle scanner module in more detail, the shuttle scanner module 21 includes a CCD board, a lens, and a light source. Two modules are mounted on the same horizontal moving shaft 23 as the print head 22 and through one carriage return motor 24 and the moving belt 26. I can drive it.

도 4는 A4 사이즈 원고를 셔틀 스캐너 모듈로 스캐닝하기 위한 셔틀 블록을 도시한 예시도이다.4 is an exemplary view showing a shuttle block for scanning an A4 size document with a shuttle scanner module.

도 5는 한 개의 셔틀 블록이 스캐닝되는 방법을 설명하기 위한 예시도이다.5 is an exemplary diagram for describing a method in which one shuttle block is scanned.

셔틀 스캐너 모듈(shuttle scanner module)에 이용되는 CCD(Charge Coupled Device)는 128도트(dot) CCD를 사용하는 용례가 대표적이다.The CCD (Charge Coupled Device) used in the shuttle scanner module is a typical example of using a 128-dot CCD.

128도트 CCD를 채택하고 있는 셔틀 스캐닝 방식의 스캐너의 경우, A4(210mm×297mm) 포맷의 문서를 기준할 때, 300dpi로 스캐닝할 시에 도트수가 2551dot×3507dot인 바, 전체 스캐닝 가능 영역을 27개의 셔틀 블럭으로 분할하여 스캐닝하는 기술이 공지되어 있다.In the case of a shuttle scanning scanner employing a 128-dot CCD, when scanning at 300 dpi when the A4 (210 mm x 297 mm) format document is used, the number of dots is 2551 dots x 3507 dots. Techniques for scanning by dividing into shuttle blocks are known.

이를 상술하면, A4 사이즈의 원고를 128 도트 크기의 CCD를 사용하는 셔틀 스캐너 모듈(21)로 스캐닝할 경우(2551 × 3507; 300dpi 기준) 원고는 27개의 셔틀 블록으로 나누어지며, 셔틀 스캐너 모듈(21)은 한 개의 셔틀 블록을 수직으로 한 라인씩 독취하면서 CR 모터(24)에 의하여 수평방향으로 이송되고, 이와 같이 하여 셔틀 블록의 수직 1 라인에서 2551 라인까지 모두 독취한다. 하나의 셔틀 블록에 대한 스캐닝이 완료되면 셔틀 스캐너 모듈(21)은 CR 모터(24)에 의해 다시 첫 번째 라인 위치로 리턴하며 라인 피드 모터(Line Feed Motor)(25)에 의해 원고가 이송되고, 다음의 셔틀 블록이 셔틀 스캐너 모듈(21)에 위치한다. 위의 과정을 반복적으로 수행하여 [BLOCK1]에서 [BLOCK 27]까지의 모든 셔틀 블록을 스캐닝하게 되면 A4 사이즈의 원고 한 페이지에 대한 화상 데이터가 모두 독취된다.In detail, when an A4 size original is scanned with a shuttle scanner module 21 using a 128-dot CCD (2551 × 3507; based on 300 dpi), the original is divided into 27 shuttle blocks, and the shuttle scanner module 21 ) Is transported horizontally by the CR motor 24 while reading one shuttle block vertically one by one, and thus reads everything from the vertical one line to the 2551 line of the shuttle block. When the scanning of one shuttle block is completed, the shuttle scanner module 21 returns to the first line position by the CR motor 24 and the original is fed by the Line Feed Motor 25, The next shuttle block is located in the shuttle scanner module 21. When the above steps are repeated to scan all shuttle blocks from [BLOCK1] to [BLOCK 27], all the image data for one page of an A4 size document is read.

이와 같이 함으로써, 제한된 자원(즉, 128dot CCD)을 이용함에 따른 저해상도 CCD의 문제를 극복하며 스캐닝하고자 하는 원고에 대한 전체적인 데이터 독취를 완료할 수 있다.By doing so, it is possible to complete the entire data reading on the original to be scanned while overcoming the problem of low resolution CCD by using limited resources (ie, 128 dot CCD).

이러한 셔틀 스캐닝 기반 화상 시스템을 포함하여 화상 시스템에 있어서, 본 발명에 의한 화상 시스템의 국부 역치화 방법은 화상 시스템의 중앙 처리 장치(미도시)에 의해 소프트웨어적으로 용이하게 실시될 수 있으며, 또한 별도의 하드웨어를 구비하여 이에 의해 구현·실시될 수도 있으나, 화상 시스템의 중앙 처리 장치에 의해 수행되는 실시예가 좀 더 일반적인 경우임에 따라 이에 기반하여 설명하기로 한다.In an imaging system including such a shuttle scanning-based imaging system, the local thresholding method of the imaging system according to the present invention can be easily implemented in software by a central processing unit (not shown) of the imaging system, and also separately. Although it may be implemented and implemented by the hardware of the present invention, the embodiment performed by the central processing unit of the image system is a more general case and will be described based on this.

따라서, 이하의 설명에서 본 발명을 실시하는 하드웨어적인 주체는 화상 시스템의 중앙 처리 장치가 됨은 주지의 사실이다.Therefore, in the following description, it is well known that the hardware subject of the present invention becomes the central processing unit of the image system.

우선, 주목 화소 지정 단계(S10)에서 이치화 대상 화상에서 이치화할 주목 화소를 순차적으로 지정한다.First, in the pixel of interest specification step S10, pixels of interest to be binarized in the binarization target image are sequentially specified.

이때, 통상의 화상인 경우, 상기 이치화 화상의 계조는 단일 화소를 8비트로 표현하는 256계조인 것이 일반적이며, 각 응용 분야에 따라 할당되는 비트는 가감이 가능하며, 많은 비트를 할당할수록 정확하고 세밀하게 화소를 표현할 수 있는 반면에 이에 따라 상대적으로 많은 자원을 할당해야 하고 신호 처리 시에 연산량이 기하급수적으로 증가하는 것을 감수해야 함은 주지의 사실이다.In this case, in the case of a normal image, the gray level of the binarized image is generally 256 grays representing a single pixel as 8 bits, and the bits allocated according to each application field can be added or subtracted. It is well known that while a pixel can be easily represented, a relatively large amount of resources must be allocated and a computational amount must be exponentially increased during signal processing.

이후, 에지 검출 단계(S20)에서는 복수의 에지 방향 검출 마스크를 이용하여 각각 상기 주목 화소를 중심으로 인접 화소를 마스킹한 후, 최대의 에지 크기를 갖는 방향을 산출함으로써 상기 주목 화소에 대응하는 최대 에지 크기와 최적 에지 방향을 검출한다.Subsequently, in the edge detection step S20, after masking adjacent pixels around the pixel of interest using a plurality of edge direction detection masks, the maximum edge corresponding to the pixel of interest is calculated by calculating a direction having a maximum edge size. Detect magnitude and optimal edge direction.

도 6은 4 방향에 대한 각각의 3×3 에지 방향 검출 마스크를 도시한 예시도이다.6 is an exemplary diagram showing each 3x3 edge direction detection mask for four directions.

도 6의 (a)는 0。방향의 에지 방향 검출 마스크를 도시한 예시도이고, 도 6의 (b)는 45。방향의 에지 방향 검출 마스크를 도시한 예시도이며, 도 6의 (c)는 90。방향의 에지 방향 검출 마스크를 도시한 예시도, 도 6의 (d)는 135。방향의 에지 방향 검출 마스크를 도시한 예시도이다.FIG. 6A is an exemplary diagram illustrating an edge direction detection mask in the 0 ° direction, and FIG. 6B is an exemplary diagram illustrating an edge direction detection mask in the 45 ° direction, and FIG. 6C. 6 is an exemplary diagram showing an edge direction detection mask in a 90 ° direction, and FIG. 6D is an exemplary diagram illustrating an edge direction detection mask in a 135 ° direction.

주목 화소(x)에 대한 각 에지 방향 검출 마스크의 a~f는 에지의 방향성에 입각하여 선정되는 상기 주목 화소(x)의 주변에 위치한 인접 화소의 계조값이다.A to f of each edge direction detection mask with respect to the pixel of interest x are the gradation values of adjacent pixels located around the pixel of interest x selected based on the directionality of the edge.

각 에지 방향 검출 마스크에 의해 결정되는 에지 크기()는 수학식 1에 의해 산출된다.Edge size determined by each edge direction detection mask ( Is calculated by Equation 1.

여기서,중에서 최소값을 나타내며,는 절대값을 나타낸다.here, Represents the minimum value of Denotes an absolute value.

본 발명에 따른 바람직한 실시예에서는 상기 4 방향의 에지 방향 검출 마스크들의 출력값들, 즉, 각각의 에지 크기들 중에서 최대값을 갖는 값을 최대 에지 크기로 결정하고, 이때의 에지 방향을 최적 에지 방향으로 결정한다.In a preferred embodiment according to the present invention, the output values of the edge direction detection masks in the four directions, that is, the value having the maximum value among the respective edge sizes are determined as the maximum edge size, and the edge direction at this time is determined as the optimum edge direction. Decide

이를 좀 더 정리하여 설명하면, 상기 에지 검출 단계(S20)는 상기 0。방향의 에지 방향 검출 마스크에 의해 마스킹되는 1행 3열 화소값에서 1행 1열 화소값을 감산한 절대값, 2행 3열 화소값에서 2행 1열 화소값을 감산한 절대값, 3행 3열 화소값에서 3행 1열 화소값을 감산한 절대값 중에서 최소값을 제 1 에지 크기로 선정하는 제 1 단계와, 상기 45。방향의 에지 방향 검출 마스크에 의해 마스킹되는 1행 2열 화소값에서 2행 1열 화소값을 감산한 절대값, 1행 3열 화소값에서 3행 1열 화소값을 감산한 절대값, 2행 3열 화소값에서 3행 2열 화소값을 감산한 절대값 중에서 최소값을 제 2 에지 크기로 선정하는 제 2 단계와, 상기 90。방향의 에지 방향 검출 마스크에 의해 마스킹되는 1행 1열 화소값에서 3행 1열 화소값을 감산한 절대값, 1행 2열 화소값에서 3행 2열 화소값을 감산한 절대값, 1행 3열 화소값에서 3행 3열 화소값을 감산한 절대값 중에서 최소값을 제 3 에지 크기로 선정하는 제 3 단계와, 상기 135。방향의 에지 방향 검출 마스크에 의해 마스킹되는 2행 1열 화소값에서 3행 2열 화소값을 감산한 절대값, 1행 1열 화소값에서 3행 3열 화소값을 감산한 절대값, 1행 2열 화소값에서 2행 3열 화소값을 감산한 절대값 중에서 최소값을 제 4 에지 크기로 선정하는 제 4 단계와, 상기 제 1 에지 크기, 상기 제 2 에지 크기, 상기 제 3 에지 크기, 상기 제 4 에지 크기 중에서 최대값을 상기 최대 에지 크기로 선정한 후, 상기 최대 에지 크기를 갖는 에지 방향 검출 마스크의 방향을 상기 최적 에지 방향으로 선정하는 제 5 단계를 수행하도록 하여 최대 에지 크기와 최적 에지 방향을 결정하는 것이다.To sum it up, the edge detection step S20 is an absolute value obtained by subtracting one row and one column pixel value from one row and three column pixel values masked by the edge direction detection mask in the 0 ° direction. A first step of selecting a minimum value as a first edge size from an absolute value obtained by subtracting two rows and one column pixel values from three column pixel values, and an absolute value obtained by subtracting three rows and one column pixel values from three rows and three column pixel values; Absolute value obtained by subtracting the 2-row and 1-column pixel values from the 1-row and 2-column pixel values masked by the 45 ° edge-direction detection mask, and subtracting the 3-row and 1-column pixel values from the 1-row and 3-column pixel values And a second step of selecting a minimum value as the second edge size from an absolute value obtained by subtracting the three-row and two-column pixel values from the two-row and three-column pixel values, and the first row 1 masked by the edge direction detection mask in the 90 ° direction. Absolute value by subtracting 3 rows, 1 columns of pixel values from column pixel values, 3 rows, 2 columns of pixel values from 1 row, 2 columns pixel value A third step of selecting a minimum value as the third edge size from the subtracted absolute value, the absolute value obtained by subtracting the three-row and three-column pixel values from the one-row and three-column pixel values, and masking by the edge direction detection mask in the 135 ° direction Absolute value by subtracting 3-row 2-column pixel value from 2-row 1-column pixel value, Absolute value by subtracting 3-row 3-column pixel value from 1-row 1-column pixel value, 2-row 3-column from 1-row 2-column pixel value A fourth step of selecting a minimum value as a fourth edge size among absolute values obtained by subtracting the pixel value, and a maximum value among the first edge size, the second edge size, the third edge size, and the fourth edge size; After selecting the maximum edge size, a fifth step of selecting the direction of the edge direction detection mask having the maximum edge size as the optimum edge direction is performed to determine the maximum edge size and the optimal edge direction.

이후, 이치화 단계(S100)에서는 상기 주목 화소의 주변에 위치한 인접 화소의 특성을 반영하는 국부 이치화 여부를 상기 최대 에지 크기를 이용하여 결정한 후, 상기 최적 에지 방향에 따라 선정한 복수의 인접 화소들을 통해 국부 역치를 결정하여 상기 주목 화소에 대한 국부 이치화를 수행하게 되는 데, 이를 좀 더 상세하게 설명하면 다음과 같다.Subsequently, in the binarization step (S100), it is determined whether the local binarization reflecting the characteristics of adjacent pixels located around the pixel of interest is determined using the maximum edge size, and then localized through a plurality of adjacent pixels selected according to the optimal edge direction. The threshold value is determined to perform local binarization of the pixel of interest, which will be described in more detail as follows.

먼저, 영역 결정 단계(S110)에서는 상기 최대 에지 크기를 기설정된 기준치와 비교하여 상기 최대 에지 크기가 상기 기준치보다 크면 상기 주목 화소가 속한 영역을 에지 영역(edge region)으로 결정하고, 그렇지 않으면, 비에지 영역(non-edge region)으로 결정한다.First, in the region determining step (S110), when the maximum edge size is larger than the reference value, the maximum edge size is compared with a predetermined reference value, and the area to which the pixel of interest belongs is determined as an edge region. Decide on a non-edge region.

이에 대해 부언하기 위해 문자의 경우를 예를 들어 설명하면, 영역 결정 단계(S110)를 수행함에 있어서, 최대 에지 크기가 기준치 보다 크면, 주목 화소가 문자의 경계 부분(즉, 에지 영역)에 속해 있음을 의미하는 것이고, 그렇지 않으면, 상기 주목 화소가 경계 부분이 아닌 문자의 내부나 배경임을 의미하는 것이다.In order to clarify this, the case of the text will be described as an example. In the case of performing the region determination step S110, if the maximum edge size is larger than the reference value, the pixel of interest belongs to the boundary portion (ie, the edge region) of the text. Otherwise, it means that the pixel of interest is the inside or background of the character, not the boundary portion.

이후, 인접 화소 선정 단계(S120)에서는 상기 주목 화소가 속한 영역이 상기 에지 영역(edge region)으로 결정되면, 상기 최적 에지 방향의 에지 방향 검출 마스크에 마스킹된 화소들 중에서 상기 최적 에지 방향을 따라 복수의 인접 화소를 선정한다.Subsequently, in an adjacent pixel selection step (S120), when the region to which the pixel of interest belongs is determined as the edge region, a plurality of pixels masked in the edge direction detection mask in the optimal edge direction are arranged along the optimal edge direction. Select adjacent pixels.

도 7은 본 발명의 에지 영역에서 인접 화소의 선정 예를 도시한 예시도로, 선정된 인접 화소의 위치는 도 7에 빗금으로 표시한 화소들로, 도 6에 도시한 각 에지 방향 검출 마스크의 a~f와 동일하게 선정된다.FIG. 7 is a diagram illustrating an example of selecting adjacent pixels in an edge region of the present invention. The positions of the selected adjacent pixels are pixels indicated by hatching in FIG. 7, and a of each edge direction detection mask shown in FIG. 6 is shown. It is selected in the same way as ~ f.

이후, 국부 이치화 단계(S130)에서는 선정된 인접 화소들을 평균하여 상기 국부 역치를 결정한 후(S311), 상기 국부 역치에 따라 상기 주목 화소에 대한 이치화를 수행한다.In operation S130, the local threshold is determined by averaging the selected adjacent pixels (S311), and then binarization is performed on the pixel of interest according to the local threshold.

즉, 에지 영역에 속하는 주목 화소가 국부 역치보다 크면, 주목 화소를 백색으로 이치화하고, 그렇지 않으면, 흑색으로 이치화한다.That is, if the pixel of interest belonging to the edge region is larger than the local threshold, the pixel of interest is binarized to white, otherwise it is binarized to black.

반면, 상기 주목 화소가 속한 영역이 비에지 영역(non-edge region)으로 결정되면, 전역 이치화 단계(S140)에서는 기설정된 전역 역치를 이용하여 상기 주목 화소를 이치화한다.On the other hand, when the region to which the pixel of interest belongs is determined as a non-edge region, the pixel of interest is binarized using a global threshold in a global binarization step S140.

즉, 비에지 영역에 속하는 주목 화소가 전역 역치보다 크면, 주목 화소를 백색으로 이치화하고, 그렇지 않으면, 흑색으로 이치화한다.That is, if the pixel of interest belonging to the non-edge region is larger than the global threshold, the pixel of interest is binarized to white, otherwise it is binarized to black.

이때, 전역 역치는 최대 계조값의 반으로 정할 수도 있으며, 또 다르게는 이치화 대상 화상의 모든 계조값을 합산하여 평균한 전체 평균치를 구한 후, 상기 전체 평균치에 비례 상수를 곱하여 전역 역치를 결정할 수도 있다.In this case, the global threshold may be determined as half of the maximum gray scale value. Alternatively, the global threshold may be determined by multiplying all the gray scale values of the binarization target image by averaging them and multiplying the overall average by a proportional constant. .

이때, 상기 전체 평균치는 영상의 통계적인 특성을 에지 결정 임계치에 반영하기 위한 것이고, 비례 상수는 에지 블록으로 분류되는 비율 정도를 가감할 수 있는 파라미터이다. 또한, 영상의 통계적인 특성을 전역 역치의 결정에 반영하기 위해 전체 평균치만을 이용하는 것외에 좀 더 정확한 통계적인 특성을 반영하기 위해서는 데이터의 표준 편차(standard deviation)나 분산(variance) 등을 전체 평균치와 함께 고려하는 것도 고려될 수 있다.In this case, the overall average value is for reflecting the statistical characteristics of the image to the edge determination threshold value, and the proportional constant is a parameter that can add or subtract the ratio of the classification to the edge block. In addition to using only the overall mean to reflect the statistical properties of the image in the determination of the global threshold, the standard deviation or variance of the data is compared to the overall mean to reflect more accurate statistical properties. Considering together may be considered.

한편, 본 발명의 바람직한 실시예에서는 에지 방향 검출 마스크의 커널 크기를 3×3을 이용하고 있으나, 또 다른 별도의 에지 방향 검출 마스크가 이용될 수 있으며, 본 발명의 취지에서 벗어난 것이 아니라면 어떤 에지 방향 검출 마스크를 이용하여도 무방하다.Meanwhile, although the kernel size of the edge direction detection mask is 3 × 3 in the preferred embodiment of the present invention, another separate edge direction detection mask may be used, and any edge direction may be used without departing from the spirit of the present invention. You may use a detection mask.

다시 말해서, 에지의 방향을 검출할 수 있는 컨벌루션 마스크(convolution mask)가 화상 처리와 관련된 전문 서적이나 특허 출원을 통해 다수 공지되어 있음에 따라 여하의 에지 방향 검출용 컨벌루션 마스크를 이용하여도 무방하다.In other words, as many convolution masks capable of detecting the direction of the edges are known through specialized books or patent applications related to image processing, any convolution mask for detecting edge direction may be used.

본원에서는 바람직한 실시예를 통해 본 발명을 설명했으므로 본 발명의 기술적인 난이도 측면을 고려할 때, 당분야에 통상적인 기술을 가진 사람이면 용이하게 본 발명에 대한 또 다른 실시예와 다른 변형을 가할 수 있으므로, 상술한 설명에서 사상을 인용한 실시예와 변형은 모두 본 발명의 청구 범위에 모두 귀속됨은 명백하다.Since the present invention has been described through the preferred embodiments, in view of the technical difficulty aspects of the present invention, a person having ordinary skill in the art may easily change other embodiments of the present invention. It is apparent that all embodiments and modifications cited in the above description belong to the claims of the present invention.

이상에서 상세하게 설명한 바와 같이, 화상 시스템에 있어서, 이치화 대상 화상에서 이치화할 주목 화소를 순차적으로 지정하는 주목 화소 지정 단계와, 복수의 에지 방향 검출 마스크를 이용하여 각각 상기 주목 화소를 중심으로 인접 화소를 마스킹한 후, 최대의 에지 크기를 갖는 방향을 산출함으로써 상기 주목 화소에 대응하는 최대 에지 크기와 최적 에지 방향을 검출하는 에지 검출 단계와, 상기 주목 화소의 주변에 위치한 인접 화소의 특성을 반영하는 국부 이치화 여부를 상기 최대 에지 크기를 이용하여 결정한 후, 상기 최적 에지 방향에 따라 선정한 복수의 인접 화소들을 통해 국부 역치를 결정하여 상기 주목 화소에 대한 국부 이치화를 수행하는 이치화 단계로 구성된 본 발명에 의한 화상 시스템의 국부 이치화 방법에 따르면, 이치화 마스크를 통해 문서 화상을 이치화할 시에 에지의 방향성을 이용하여 국부 이치화를 수행함으로써 오경계화(false contouring)를 최소화하고, 노이즈에 의한 고립점의 발생을 억제할 수 있는 이점이 있다.As described in detail above, in the image system, a pixel of interest designation step of sequentially designating a pixel of interest to be binarized in a binarization target image, and adjacent pixels around the pixel of interest using a plurality of edge direction detection masks, respectively. After masking, the edge detection step of detecting the maximum edge size and the optimal edge direction corresponding to the pixel of interest by calculating the direction having the largest edge size, reflecting the characteristics of adjacent pixels located around the pixel of interest According to an embodiment of the present invention, there is provided a localization method for determining local localization using the maximum edge size, and then performing a localized value for the pixel of interest by determining a local threshold value through a plurality of adjacent pixels selected according to the optimal edge direction. According to the localized binarization method of the imaging system, binarized mas The via has the advantage that can be performed by the local binarized by using the direction of the edge at the time of binarizing a document image to minimize the Pentateuch globalization (false contouring), and suppress the occurrence of the isolated points caused by noise.

Claims (6)

화상 시스템의 국부 이치화 방법에 있어서,In the local binarization method of the imaging system, 이치화 대상 화상에서 이치화할 주목 화소를 순차적으로 지정하는 주목 화소 지정 단계;A target pixel specifying step of sequentially specifying a pixel of interest to binarize in the binarization target image; 복수의 에지 방향 검출 마스크를 이용하여 각각 상기 주목 화소를 중심으로 인접 화소를 마스킹한 후, 최대의 에지 크기를 갖는 방향을 산출함으로써 상기 주목 화소에 대응하는 최대 에지 크기와 최적 에지 방향을 검출하는 에지 검출 단계;An edge for detecting the maximum edge size and the optimal edge direction corresponding to the pixel of interest by masking adjacent pixels around the pixel of interest using a plurality of edge direction detection masks, and then calculating the direction having the largest edge size. Detection step; 상기 주목 화소의 주변에 위치한 인접 화소의 특성을 반영하는 국부 이치화 여부를 상기 최대 에지 크기를 이용하여 결정한 후, 상기 최적 에지 방향에 따라 선정한 복수의 방향 기반 인접 화소들을 통해 국부 역치를 결정하여 상기 주목 화소에 대한 국부 이치화를 수행하는 이치화 단계로 구성되는 것을 특징으로 하는 화상 시스템의 국부 이치화 방법.After determining whether localization reflects characteristics of adjacent pixels located around the target pixel using the maximum edge size, the local threshold is determined through a plurality of direction-based adjacent pixels selected according to the optimal edge direction. And a binarization step of performing local binarization on the pixels. 제 1 항에 있어서, 상기 이치화 단계는,The method of claim 1, wherein the binarization step, 상기 최대 에지 크기를 기설정된 기준치와 비교하여 상기 최대 에지 크기가 상기 기준치보다 크면 상기 주목 화소가 속한 영역을 에지 영역(edge region)으로 결정하고, 그렇지 않으면, 비에지 영역(non-edge region)으로 결정하는 영역 결정 단계;The maximum edge size is compared with a predetermined reference value, and when the maximum edge size is larger than the reference value, an area to which the pixel of interest belongs is determined as an edge region, otherwise, as a non-edge region. Determining an area to determine; 상기 주목 화소가 속한 영역이 상기 에지 영역(edge region)으로 결정되면, 상기 최적 에지 방향의 에지 방향 검출 마스크에 마스킹된 화소들 중에서 상기 최적 에지 방향을 따라 상기 복수의 방향 기반 인접 화소들을 선정하는 인접 화소 선정 단계;When the region to which the pixel of interest belongs is determined as the edge region, the neighboring pixels that select the plurality of direction-based adjacent pixels along the optimal edge direction among pixels masked by the edge direction detection mask in the optimal edge direction Pixel selection step; 상기 복수의 방향 기반 인접 화소들을 이용하여 상기 국부 역치를 결정한 후, 상기 국부 역치에 따라 상기 주목 화소에 대한 이치화를 수행하는 국부 이치화 단계; 및A local binarization step of determining the local threshold using the plurality of direction-based neighboring pixels and then binarizing the pixel of interest according to the local threshold; And 상기 주목 화소가 속한 영역이 상기 비에지 영역(non-edge region)으로 결정되면, 기설정된 전역 역치를 이용하여 상기 주목 화소를 이치화하는 전역 이치화 단계로 구성되는 것을 특징으로 하는 화상 시스템의 국부 이치화 방법.And a local binarization step of binarizing the pixel of interest using a predetermined global threshold when the region to which the pixel of interest belongs is determined as the non-edge region. . 제 2 항에 있어서, 상기 국부 역치는 상기 복수의 방향 기반 인접 화소들을 평균한 값인 것을 특징으로 하는 화상 시스템의 국부 이치화 방법.3. The method of claim 2, wherein the local threshold is a value obtained by averaging the plurality of direction-based neighboring pixels. 제 1 항에 있어서, 상기 복수의 에지 방향 검출 마스크는,The method of claim 1, wherein the plurality of edge direction detection masks, 0。방향의 에지 방향 검출 마스크, 45。방향의 에지 방향 검출 마스크, 90。방향의 에지 방향 검출 마스크 및 135。방향의 에지 방향 검출 마스크로 이루어진 것을 특징으로 하는 화상 시스템의 국부 이치화 방법.A localized binarization method of an image system, comprising an edge direction detection mask in a 0 ° direction, an edge direction detection mask in a 45 ° direction, an edge direction detection mask in a 90 ° direction, and an edge direction detection mask in a 135 ° direction. 제 4 항에 있어서, 상기 에지 검출 단계는,The method of claim 4, wherein the edge detection step, 상기 0。방향의 에지 방향 검출 마스크에 의해 마스킹되는 1행 3열 화소값에서 1행 1열 화소값을 감산한 절대값, 2행 3열 화소값에서 2행 1열 화소값을 감산한 절대값, 3행 3열 화소값에서 3행 1열 화소값을 감산한 절대값 중에서 최소값을 제 1 에지 크기로 선정하는 제 1 단계;Absolute value by subtracting one-row, one-column pixel value from one-row, three-column pixel value masked by the edge direction detection mask in the 0 ° direction, and subtracting two-row, one-column pixel value from two-row, three-column pixel value A first step of selecting a minimum value as a first edge size from an absolute value obtained by subtracting a 3 row 1 column pixel value from a 3 row 3 column pixel value; 상기 45。방향의 에지 방향 검출 마스크에 의해 마스킹되는 1행 2열 화소값에서 2행 1열 화소값을 감산한 절대값, 1행 3열 화소값에서 3행 1열 화소값을 감산한 절대값, 2행 3열 화소값에서 3행 2열 화소값을 감산한 절대값 중에서 최소값을 제 2 에지 크기로 선정하는 제 2 단계;Absolute value obtained by subtracting the 2-row and 1-column pixel values from the 1-row and 2-column pixel values masked by the 45 ° edge-direction detection mask, and subtracting the 3-row and 1-column pixel values from the 1-row and 3-column pixel values A second step of selecting a minimum value as a second edge size from an absolute value obtained by subtracting the third row second column pixel value from the second row third column pixel value; 상기 90。방향의 에지 방향 검출 마스크에 의해 마스킹되는 1행 1열 화소값에서 3행 1열 화소값을 감산한 절대값, 1행 2열 화소값에서 3행 2열 화소값을 감산한 절대값, 1행 3열 화소값에서 3행 3열 화소값을 감산한 절대값 중에서 최소값을 제 3 에지 크기로 선정하는 제 3 단계;An absolute value obtained by subtracting a 3-row one-column pixel value from a one-row, one-column pixel value masked by the 90 ° edge-direction detection mask, and an absolute value obtained by subtracting the three-row, two-column pixel value from a one-row, two-column pixel value A third step of selecting a minimum value as a third edge size among absolute values obtained by subtracting the third row and three column pixel values from the first row and three column pixel values; 상기 135。방향의 에지 방향 검출 마스크에 의해 마스킹되는 2행 1열 화소값에서 3행 2열 화소값을 감산한 절대값, 1행 1열 화소값에서 3행 3열 화소값을 감산한 절대값, 1행 2열 화소값에서 2행 3열 화소값을 감산한 절대값 중에서 최소값을 제 4 에지 크기로 선정하는 제 4 단계; 및An absolute value obtained by subtracting a 3-row 2-column pixel value from a 2-row, 1-column pixel value masked by the edge direction detection mask in the 135 ° direction, and an absolute value obtained by subtracting a 3-row, 3-column pixel value from a 1-row, 1-column pixel value A fourth step of selecting a minimum value as a fourth edge size from an absolute value obtained by subtracting the second row and third column pixel values from the first row and second column pixel values; And 상기 제 1 에지 크기, 상기 제 2 에지 크기, 상기 제 3 에지 크기, 상기 제 4 에지 크기 중에서 최대값을 상기 최대 에지 크기로 선정한 후, 상기 최대 에지 크기를 갖는 에지 방향 검출 마스크의 방향을 상기 최적 에지 방향으로 선정하는 제 5 단계로 구성되는 것을 특징으로 하는 화상 시스템의 국부 이치화 방법.After selecting the maximum value among the first edge size, the second edge size, the third edge size, the fourth edge size as the maximum edge size, the direction of the edge direction detection mask having the maximum edge size is the optimal And a fifth step of selecting in the edge direction. 제 1 항에 있어서, 상기 복수의 방향 기반 인접 화소들은,The method of claim 1, wherein the plurality of direction-based neighboring pixels include: 상기 최대 에지 크기를 갖는 에지 방향 검출 마스크에 마스킹되는 화소들로 이루어지는 것을 특징으로 하는 화상 시스템의 국부 이치화 방법.And pixels masked to an edge direction detection mask having said maximum edge size.
KR1019970034620A 1997-07-24 1997-07-24 Local binarization method of the imaging system. KR100467565B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019970034620A KR100467565B1 (en) 1997-07-24 1997-07-24 Local binarization method of the imaging system.

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019970034620A KR100467565B1 (en) 1997-07-24 1997-07-24 Local binarization method of the imaging system.

Publications (2)

Publication Number Publication Date
KR19990011500A true KR19990011500A (en) 1999-02-18
KR100467565B1 KR100467565B1 (en) 2005-04-06

Family

ID=37302091

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019970034620A KR100467565B1 (en) 1997-07-24 1997-07-24 Local binarization method of the imaging system.

Country Status (1)

Country Link
KR (1) KR100467565B1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100551371B1 (en) * 2004-04-12 2006-02-09 주식회사 대우일렉트로닉스 Method for processing data in holographic system
KR100569480B1 (en) * 2004-08-20 2006-04-07 주식회사 대우일렉트로닉스 Holography data encoding/decoding method
KR100698426B1 (en) * 1999-11-26 2007-03-26 후지쯔 가부시끼가이샤 Image processing apparatus and method for processing an image
KR100850173B1 (en) * 2006-12-29 2008-08-04 포스데이타 주식회사 The method and apparatus for image binarization

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0435171A (en) * 1990-05-25 1992-02-05 Nikon Corp Picture binarizing device
JP2654294B2 (en) * 1991-07-25 1997-09-17 松下電工株式会社 Edge detection method
JP2502928B2 (en) * 1993-11-26 1996-05-29 松下電送株式会社 Image signal processor
JP3638026B2 (en) * 1994-07-07 2005-04-13 富士ゼロックス株式会社 Image processing apparatus and image processing method
KR0181129B1 (en) * 1995-06-17 1999-05-01 김광호 Image processing apparatus
KR100209194B1 (en) * 1996-08-31 1999-07-15 전주범 Target tracking apparatus and method of video phone
KR100206338B1 (en) * 1997-02-17 1999-07-01 윤종용 Binary coding method of letter image having both character and picture

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100698426B1 (en) * 1999-11-26 2007-03-26 후지쯔 가부시끼가이샤 Image processing apparatus and method for processing an image
KR100551371B1 (en) * 2004-04-12 2006-02-09 주식회사 대우일렉트로닉스 Method for processing data in holographic system
KR100569480B1 (en) * 2004-08-20 2006-04-07 주식회사 대우일렉트로닉스 Holography data encoding/decoding method
KR100850173B1 (en) * 2006-12-29 2008-08-04 포스데이타 주식회사 The method and apparatus for image binarization

Also Published As

Publication number Publication date
KR100467565B1 (en) 2005-04-06

Similar Documents

Publication Publication Date Title
US5563403A (en) Method and apparatus for detection of a skew angle of a document image using a regression coefficient
EP0358815B1 (en) System and method for automatic segmentation
JP3768052B2 (en) Color image processing method, color image processing apparatus, and recording medium therefor
US7764835B2 (en) Method and apparatus for recognizing code
JP4000488B2 (en) System and method for evaluating outline of document image
JP2003219184A (en) Imaging process for forming clear and legible binary image
US20080018938A1 (en) Halftoning method and apparatus to improve sharpness of boundary region
EP1014691A2 (en) An image processing system for reducing vertically disposed patterns on images produced by scanning
US6782129B1 (en) Image segmentation apparatus and method
US6360009B2 (en) Image segmentation apparatus and method
US6775031B1 (en) Apparatus and method for processing images, image reading and image forming apparatuses equipped with the apparatus, and storage medium carrying programmed-data for processing images
KR100296596B1 (en) Edge Enhancement Method by 4-Directional 1-D High Pass Filtering
US7145694B2 (en) Image processing apparatus and method
KR100467565B1 (en) Local binarization method of the imaging system.
US8330997B2 (en) Image processing apparatus, image forming apparatus and image processing method
US6529629B2 (en) Image segmentation apparatus and method
KR100260923B1 (en) Apparatus and method for local binarization on images
US7251059B2 (en) System for distinguishing line patterns from halftone screens in image data
US20070159655A1 (en) Method and apparatus for compensating two-dimensional images for illumination non-uniformities
US7280253B2 (en) System for identifying low-frequency halftone screens in image data
US8260057B2 (en) Image processing apparatus that obtains a ruled line from a multi-value image
US6411735B1 (en) Method and apparatus for distinguishing between noisy continuous tone document types and other document types to maintain reliable image segmentation
KR100288706B1 (en) Image binarization method for removing the noise due to isolated pixel
KR100246440B1 (en) Local binarization method for the image system based on shuttle scanning
KR20140063378A (en) Image forminag apparatus, method for image forming and computer-readable recording medium

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
LAPS Lapse due to unpaid annual fee