KR930010022B1 - All processing circuit for binary picture signal - Google Patents

All processing circuit for binary picture signal Download PDF

Info

Publication number
KR930010022B1
KR930010022B1 KR1019910007635A KR910007635A KR930010022B1 KR 930010022 B1 KR930010022 B1 KR 930010022B1 KR 1019910007635 A KR1019910007635 A KR 1019910007635A KR 910007635 A KR910007635 A KR 910007635A KR 930010022 B1 KR930010022 B1 KR 930010022B1
Authority
KR
South Korea
Prior art keywords
signal
data
output
binary image
preprocessing
Prior art date
Application number
KR1019910007635A
Other languages
Korean (ko)
Other versions
KR920022797A (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 KR1019910007635A priority Critical patent/KR930010022B1/en
Publication of KR920022797A publication Critical patent/KR920022797A/en
Application granted granted Critical
Publication of KR930010022B1 publication Critical patent/KR930010022B1/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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Image Processing (AREA)

Abstract

The preprocessor includes a control signal generator (10) for generating control clock signal, a memory (20) for storing pixel data, a first counter (30) for generating memory address signal to output image data to be processed a second counter (40) for generating memory address signal to store external pixel data on the memory (20), a shift register (50) for shifting data sent from the memory (20), a shift register (60) for shifting data in N x N mask by 90 degrees according to a control signal transmitted from the first counter, a programmable logic array (70) for removing noise in the data, a 2 x 1 multiplexer (80) for outputting processed data, a comparator (70) for comparing center pixel data of N x N mask with output data of the 2 x 1 multiplexer (80), and a counter (100) for counting the operation of the comparator (90).

Description

이진 영상의 전처리 회로Preprocessing Circuit of Binary Image

제 1 도는 본 발명에 따른 전처리 칩의 외형과 스테이트 다이아그램(state diagram)이다.1 is an appearance and state diagram of a pretreatment chip according to the present invention.

제 2 도는 본 발명에 따른 전처리 칩의 개략적인 구성을 나타내기 위한 블럭도이다.2 is a block diagram illustrating a schematic configuration of a preprocessing chip according to the present invention.

제 3 도는 본 발명에 따른 전처리 칩의 상세한 구성을 나타내기 위한 블럭도이다.3 is a block diagram showing a detailed configuration of a preprocessing chip according to the present invention.

제 4 도는 본 발명의 전처리에 사용된 3*3 기본 마스크이다.4 is a 3 * 3 base mask used in the pretreatment of the present invention.

제 5 도는 본 발명의 좌측방향의 잡음제거와 세선화에 적용될 마스크를 나타낸 것이다.5 shows a mask to be applied to the noise reduction and thinning of the left direction of the present invention.

제 6 도는 본 발명의 좌측방향의 잡음제거와 세선화에 적용될 마스크를 프로그래머블 로직 어레이(Programmable Logic Array : PLA)로 구현한 회로를 나타낸 것이다.FIG. 6 is a circuit diagram illustrating a programmable logic array (PLA) of a mask to be applied to noise reduction and thinning in the left direction of the present invention.

제 7 도는 본 발명에 따른 전처리 회로에 적용될 9비트 쉬프트 회로를 나타낸 것이다.7 shows a 9-bit shift circuit to be applied to the preprocessing circuit according to the present invention.

제 8 도는 본 발명에 따른 전처리 회로에 적용될 2*1멀티플렉서(multipexer)를 나타낸 것이다.8 shows a 2 * 1 multipexer to be applied to the preprocessing circuit according to the present invention.

제 9 도는 본 발명에 따른 전처리 회로에 적용될 일실시예의 비교기(comparator)를 나타낸 것이다.9 shows a comparator of one embodiment to be applied to a preprocessing circuit according to the invention.

제 10 도는 본 발명에 따른 전처리 회로에 적용될 일 실시예의 비교기(comparator)를 나타낸 것이다.10 shows a comparator of an embodiment to be applied to a preprocessing circuit according to the invention.

제 11a, b , c 도는 본 발명에 따른 전처리 회로에 적용될 기본적인 회로와 기호들을 나타낸 것이다.11a, b, c show basic circuits and symbols to be applied to the preprocessing circuit according to the invention.

제 12 도는 본 발명에 따른 전처리 회로에 적용될 3비트 쉬프트 레지스터들을 나타낸 것이다.Figure 12 shows three bit shift registers to be applied to the preprocessing circuit according to the present invention.

제 13 도는 본 발명에 따른 전처리회로에 적용될 4비트 바이너리 리플카운터(binary ripple counter)를 나타낸 것이다.13 shows a 4-bit binary ripple counter to be applied to the preprocessing circuit according to the present invention.

제 14 도는 본 발명에 따른 전처리 회로에 적용될 스태틱 랜덤 억세스 메모리(Static Random Access Memory : SRAM)의 기본적인 구조를 나타낸 것이다.14 illustrates a basic structure of a static random access memory (SRAM) to be applied to a preprocessing circuit according to the present invention.

제 15 도는 본 발명에 따른 전처리 회로에 제어신호 발생기에 적용될 4비트 뫼비우스카운터(Mobius counter)와 그 출력 파형을 나타낸 것이다.FIG. 15 shows a 4-bit Mobius counter and its output waveform to be applied to a control signal generator in a preprocessing circuit according to the present invention.

제 16 도는 본 발명에 따른 전처리 회로에 적용될 제어신호 발생기를 나타낸 것이다.16 shows a control signal generator to be applied to the preprocessing circuit according to the present invention.

제 17 도는 본 발명에 따른 전처리 회로에 적용될 제어신호의 파형을 나타낸 것이다.17 shows a waveform of a control signal to be applied to a preprocessing circuit according to the present invention.

제 18 도는 본 발명에 따른 전처리 회로의 알고리즈믹 스테이트 머신 챠트(Algorithmic State Machine chart)를 나타낸 것이다.18 shows an Algorithmic State Machine chart of a preprocessing circuit according to the present invention.

본 발명은 이진 영상의 인식회로에 관한 것으로, 특히 이진 영상의 전처리 회로에 관한 것이다.The present invention relates to a recognition circuit of a binary image, and more particularly to a preprocessing circuit of a binary image.

일반적으로 이진 영상인식을 영상인식의 제반분야들중에서 기초적이면서 매우 중요한 부분으로서 필요성과 상대적으로 구현의 용이성으로 인하여 크게 각광을 받고 있다. 이진 영상이란 물체(흑색, 이진수1)와 배경(백색, 이진수0)의 집합으로 이루어진 2차원 영상을 말하며, 이러한 이진 영상으로 표현되는 데이타는 한글, 영문자, 숫자등의 모든 문자와 지문, 도면, 인쇄회로 기판(PCB), 인영, 의료사진등 매우 많으며 광범위한 분야에 응용될 수 있다. 특히, 문자인식은 자판이 없고 고속입력을 가능하게 할 수 있고, 팩시밀리의 전송속도를 향상시킬 수 있다.In general, binary image recognition is a basic and very important part of various fields of image recognition, and it is receiving great attention because of necessity and relatively ease of implementation. A binary image is a two-dimensional image composed of a set of objects (black and binary 1) and a background (white and binary 0). The data represented by these binary images are all letters, fingerprints, drawings, etc. Printed circuit board (PCB), printing, medical photography, etc. are very many and can be applied to a wide range of applications. In particular, the character recognition can be made without a keyboard, high-speed input, and can improve the transmission speed of the fax.

이진 영상의 인식과정은 크게 전처리와 인식 단계로 구분된다.The recognition process of binary image is largely divided into preprocessing and recognition stages.

스캐너(scanner)등에 의해 영상을 입력하여 양자화(이진 영상화)하면 이진 영상이 되는데 전처리에는 이러한 이진 영상의 잡음을 제거하고 센서화를 수행한다. 인식단계에서는 세선화된 영상에서 특징점을 추출하고 정해진 알고리즘과 기법을 이용하여 영상을 인식한다.When the image is input by a scanner or the like and quantized (binary imaged), a binary image is obtained. In the preprocessing, the noise of the binary image is removed and sensorization is performed. In the recognition phase, feature points are extracted from thinned images and images are recognized using a predetermined algorithm and technique.

효과적인 인식을 위하여 전처리 단계는 필수적이며 전처리를 얼마나 빨리 그리고 얼마나 효과적으로 수행하느냐가 영상 인식의 성과를 크게 좌우하며 세선화 및 인식을 용이하게 해준다. 전처리중에서도 핵심을 이루는 세선화를 영상의 형태를 골격화하여 인식을 용이하게 하는 매우 중요한 과정으로 많은 연구 결과로 다양한 방법이 존재한다.The preprocessing step is essential for effective recognition, and how fast and how effective the preprocessing is depends on the performance of image recognition and facilitates thinning and recognition. In the preprocessing, the thinning, which is the core, is a very important process that facilitates the recognition by skeletal form of the image.

전처리에 관한 연구는 약 35년전 부터 꾸준히 계속되어 오고 있으며 주로 세선화에 대한 연구가 활발하여 다양한 세선화 알고리즘과 기법들이 발표되었다. 대부분의 전처리가 소프트웨어로 수행되고 있으며, 연구된 많은 알고리즘도 소프트웨어 처리에 기반을 두고 있다. 그러나 소프트웨어(software)로 구현할 경우 많은 반복 연산과 기억 장치 접근(memory access)에 의해 수행속도가 매우 느리고 병렬처리 컴퓨터에 사용한다고 할지라도 속도 단축에 한계가 있으며 실용적인 속도에는 미치지 못한다.The research on pretreatment has been continued for about 35 years, and various thinning algorithms and techniques have been published mainly due to the active research on thinning. Most preprocessing is done in software, and many of the algorithms studied are based on software processing. However, when implemented in software, the speed of execution is very slow due to many repetitive operations and memory accesses, and even if used in a parallel processing computer, the speed is limited and does not reach the practical speed.

따라서 전처리(잡음제거 및 세선화)과정을 하드웨어(hardware)로 구현하여 속도를 향상시킬 필요성이 크게 대두되었으며 근래에 활발한 연구가 이루어지고 있다.Therefore, the need to improve the speed by implementing the pre-processing (noise removal and thinning) in hardware (hardware) has emerged greatly, and active research is being made in recent years.

본 발명은 이미 국내 출원된 출원번호 제 91-4637호에 기재된 전처리 알고리즘을 하드웨어로 구현한 것이다.The present invention implements the pre-processing algorithm described in the already filed domestic application No. 91-4637 in hardware.

본 발명의 목적은 수행속도가 빠른 전처리 회로를 제공하는데 있다.An object of the present invention is to provide a preprocessing circuit having a high performance speed.

본 발명의 다른 목적은 하드웨어가 간략화된 전처리 회로를 제공하는데 있다.Another object of the present invention is to provide a preprocessing circuit with simplified hardware.

이와같은 목적을 달성하기 위하여 본 발명의 이진 영상의 전처리회로는 화소데이타를 리드 또는 라이트하기 위한 저장수단, 상기 저장수단으로 부터의 데이타를 입력하여 3×3 윈도우 내의 중앙화소에 인접하는 이웃화소들을 90도씩 회전시키면서 잡음제거 및 세선화를 수행하는 전처리수단 및 상기 저장수단과 전처리수단에 적절한 클럭을 발생하기 위한 제어수단을 구비한 것을 특징으로 한다.In order to achieve the above object, the binary image preprocessing circuit includes a storage means for reading or writing pixel data, and inputting data from the storage means to determine neighboring pixels adjacent to a central pixel in a 3x3 window. And a preprocessing means for performing noise reduction and thinning while rotating by 90 degrees, and a control means for generating a clock suitable for the storage means and the preprocessing means.

첨부된 도면을 참고로 하여 본 발명의 전처리 회로의 구성과 동작을 설명하면 다음과 같다.Referring to the accompanying drawings, the configuration and operation of the preprocessing circuit of the present invention will be described.

제 1 도는 본 발명에 따른 전처리 칩의 외형과 상태도를 나타낸 것으로서, 클리어신호(P-Clear)는 펄스성의 신호로서 칩을 리세트(reset)시키는 기능을 수행한다. 아이들(Idle)신호는 스테이블(stable)한 신호로서 칩이 동작상태에 있는지 아닌지를 알리는 기능을 수행한다. 데이타 입력신호(P-Date In)는 펄스성의 신호로서 칩에 32비트 I/O 버스를 통하여 32비트 데이타를 입력하는 기능을 수행한다.1 is a diagram showing the appearance and state of the preprocessing chip according to the present invention. The clear signal P-Clear performs a function of resetting the chip as a pulsed signal. The idle signal is a stable signal and indicates whether the chip is in an operating state. The data input signal (P-Date In) is a pulsed signal that performs 32bit data input to the chip through a 32bit I / O bus.

레디-포-아웃신호(Ready-for-Out)는 스테이블(stable)한 신호로서 데이타의 전처리를 수행했음을 알리고 데이타의 출력을 위하여 대기하는 기능을 수행한다. 데이타 출력신호(P-Date Out)는 펄스성의 신호로서 전처리된 데이타를 32I/O 버스를 통하여 32비트 데이타를 출력하는 기능을 수행한다. 클리어신호(P-Clear)가 인가되면 칩은 리세트되고 아무런 동작도 하고 있지 않은, 아이들 상태(Idle State)가 된다.The ready-for-out signal is a stable signal indicating that the preprocessing of the data has been performed and waiting for the output of the data. The data output signal (P-Date Out) is a pulsed signal and performs a function of outputting 32-bit data through a 32I / O bus. When the clear signal P-Clear is applied, the chip is reset and enters an idle state, which is not operating.

데이타 입력신호(P-Date-In)가 인가되면 32비트 I/O버스를 통하여 데이타를 입력하는 데이타 입력 상태(Data Input State)가 된다.When a data input signal (P-Date-In) is applied, a data input state is input to input data through a 32-bit I / O bus.

데이타가 입력되면 클럭 신호(Clock)에 의해서 전처리 동작을 수행하는 실행 상태(Execution State)가 된다. 전처리 동작의 수행이 끝나면 레디-포-아웃신호(Ready-for-Out)를 발생하고 데이타를 출력하기 위한 준비상태(Ready State for Date Output)가 된다. 데이타 출력 신호(P-Date-Out)가 인가되면 데이타를 32비트 I/O버스를 통하여 데이타를 출력하는 데이타 출력 상태(Data Output State)가 된다. 그 이후는 같은 동작을 반복적으로 수행하게 된다.When data is input, the clock signal (Clock) to the execution state (Execution State) to perform the preprocessing operation. When the preprocessing operation is completed, a ready-for-out signal is generated and a ready state for date output is output. When the data output signal (P-Date-Out) is applied, the data is output to the data output state (Data Output State) through the 32-bit I / O bus. After that, the same operation is performed repeatedly.

제 2 도는 본 발명에 따른 전처리 회로의 개략적인 구성을 나타낸 것으로서, 시스템을 제어하기 위한 제어클럭을 발생하는 제어신호발생기(10)와, 외부로부터 화소데이타를 저장하기 위한 저장수단(20)과, 상기 저장수단(20)에 전처리 되어야할 데이타를 출력하기 위한 메모리 어드레스를 발생하고 제어신호를 발생하는 제 1 카운터(30)와, 상기 저장수단(20)에 외부로부터의 화소데이타를 입력하고, 전처리가 수행되는 데이타를 입력하기 위한 메모리 어드레스를 발생하는 제 2 카운터(40)와, 상기 저장수단(20)으로부터의 데이타를 쉬프트하기 위한 쉬프트 레지스트(50)과, 상기 쉬프트 레지스터로의 N×N 마스크내의 데이타를 상기 제 1 카운터의 제어신호에 의해서 90도방향으로 쉬프트하는 쉬프트레지스터(60)와, 상기 쉬프트레지스터로부터의 데이타를 입력하는 잡음 제거와 세선화를 수행하는 프로그래머블 로직 어레이(Programmable Logic Array, PLA(70)와, 상기 제 1 카운터의 제어신호에 의해서 잡음 제거 결과나 세선화될 결과를 출력하는 2*1 멀티플랙서(80)와, 상기 멀티플랙서(80)로 부터의 결과의 N×N 마스크내의 중심 화소값을 비교하기 위한 비교회로(Comparator) (90)와, 상기 비교회로(comparator) (90)의 수행 횟수를 카운트 하기 위한 제 3 카운터(100)로 구성되어 있다.2 shows a schematic configuration of a preprocessing circuit according to the present invention, a control signal generator 10 for generating a control clock for controlling a system, a storage means 20 for storing pixel data from the outside, A first counter 30 generating a memory address for outputting data to be preprocessed to the storage means 20 and generating a control signal, and inputting pixel data from the outside into the storage means 20, and preprocessing A second counter 40 for generating a memory address for inputting data to which data is to be performed, a shift resist 50 for shifting data from the storage means 20, and an N × N mask to the shift register. A shift register 60 for shifting the data in the 90-degree direction by the control signal of the first counter and data from the shift register are inputted. Is a programmable logic array (PLA) 70 that performs noise canceling and thinning, and a 2 * 1 multiplexer that outputs a noise canceling result or a thinning result by a control signal of the first counter. 80, a comparator 90 for comparing the center pixel value in the N × N mask resulting from the multiplexer 80, and the number of times the comparator 90 is performed It consists of a third counter 100 for counting.

제 3 도는 본 발명에 따른 전처리회로의 상세한 구성을 나타낸 것으로서, 32×32비트의 화소 데이타를 전처리하고 3×3마스크를 전화소에 대해서 윈도우하면서 90도씩 회전하면서 좌측, 상측, 우측, 하측에 대해서 잡음제거 및 세선화를 수행하기 위한 회로를 나타낸 것이다. 제 3 도의 전체적인 구성과 동작을 이해하기 위해서 각 개별소자들의 구성과 동작에 대해서 먼저 기술하기로 한다.3 shows a detailed configuration of the preprocessing circuit according to the present invention, which preprocesses 32x32-bit pixel data and rotates the 3x3 mask by 90 degrees while windowing the telephone station for left, upper, right and lower sides. A circuit for performing noise reduction and thinning is shown. In order to understand the overall configuration and operation of FIG. 3, the configuration and operation of each individual device will be described first.

제 4 도는 3*3 기본 마스크를 나타낸 것이다. 중심화소(P)를 중심으로 좌상방에서부터 오른쪽으로 회전하면서 8개의 이웃화소(n1, n2, n3, n4, n5, n6, n7, n8)가 존재한다. 제 5 도는 본 발명에 따른 좌측방향의 잡읍제거와 세선화 마스크를 나타낸 것으로서, 다음과 같은 경우를 잡음으로 정의한다.4 shows a 3 * 3 base mask. Eight neighboring pixels n1, n2, n3, n4, n5, n6, n7, n8 exist while rotating from the top left to the right about the center pixel P. 5 is a diagram illustrating a left-handed removal and thinning mask according to the present invention, and the following cases are defined as noise.

첫째, 1개의 고립된 화소(제 5 도의 마스크 NA), 둘째, 두 화소가 독립되어 떨어져 있는 경우(제 5 도의 마스크 NA), 셋째, 1개의 사선방향으로 돌출된 화소(제 5 도의 마스크 NA), 넷째, 1개의 직각 방향으로 돌출된 화소(제 5 도의 마스크 NB).First, one isolated pixel (mask NA of FIG. 5), second, when two pixels are separated apart (mask NA of FIG. 5), and third, pixel protruding in one diagonal direction (mask NA of FIG. 5) Fourth, the pixel (mask NB of FIG. 5) which protrudes in one orthogonal direction.

상기 조건을 토대로 좌측방향에 대한 잡음 제거 태그(NTAG)를 구하면, NTAG=NA or NBBased on the above conditions, the noise canceling tag (NTAG) for the left direction is obtained. NTAG = NA or NB

=n1', n2', n3', n4', n5', n6', n7', n8'+n1', n2', n2', n4', n5', n6', n7', n8'n 1 ', n 2 ', n 3 ', n 4 ', n 5 ', n 6 ', n 7 ', n 8 ' + n 1 ', n 2 ', n 2 ', n 4 ', n 5 ', n 6 ', n 7 ', n 8 '

=n1', n2', n6', n7', n8'(n3'+n3, n4, n5)= n 1 ', n 2 ', n 6 ', n 7 ', n 8 '(n 3 ' + n 3 , n 4 , n 5 )

=n1', n2', n6', n7', n8'(n3'+n4, n5)= n 1 ', n 2 ', n 6 ', n 7 ', n 8 '(n 3 ' + n 4 , n 5 )

NTAG' = P(n1+n2+n6+n7+n8(n3+n4n5)')NTAG '= P (n 1 + n 2 + n 6 + n 7 + n 8 (n 3 + n 4 n 5 )')

=P(n1+n2+n6+n7+n8+n3(n4, n5)')= P (n 1 + n 2 + n 6 + n 7 + n 8 + n 3 (n 4 , n 5 ) ')

=P(n1+n2+n6+n7+n8+n3n4' n3n5')= P (n 1 + n 2 + n 6 + n 7 + n 8 + n 3 n 4 'n 3 n 5 ')

와 같은 논리식으로 표현될 수 있다.It can be expressed as a logical expression such as

세선화 알고리즘으로 마스크의 중앙화소가 1일때 0으로 변환시켜 제거할 수 있는데 해당 중앙화소가 다음 조건을 만족하면 제거한다.With the thinning algorithm, the mask can be removed by converting it to 0 when the mask's central pixel is 1.

첫째, 경계화소 이어야함(마스크 TA), 둘째, 굴곡(arc)화소가 아니어야 함(마스크 TB, TC). 셋째, 단말 화소가 아니어야 함(마스크 TO).First, it must be a border pixel (mask TA); second, it must not be an arc pixel (mask TB, TC). Third, it must not be a terminal pixel (mask TO).

상기 세가지 조건이 동시에 만족될때 중앙화소를 제거해도 연결관계가 보존되고, 패턴의 특징이 변형되지 않는다. 위와 같은 조건을 만족하는 마스크를 설계하여 알고리즘에서 정한 순서와 방법에 따라 이진 영상을 스캐닝(Scanning)하면서 해당 화소를 마스크에 대응시켜 제거 여부를 결정 가능한 화소이면 중앙화소를 1에서 TB, TC, TD를 토대로 좌측 방향에 대한 세선화 태그(TTAG)를 구하면,When the three conditions are satisfied at the same time, removing the central pixel preserves the connection and does not deform the characteristics of the pattern. If you design a mask that satisfies the above conditions and scan the binary image according to the algorithm and procedure, you can determine whether to remove the pixel by matching the pixel to the mask. Based on, we get a thinning tag (TTAG) for the left direction,

TTAG=TA and (not TB) and (not TC) and (not TD)TTAG = TA and (not TB) and (not TC) and (not TD)

=(n4n8') (n1n2'n4n8') (n4n6'n7n8') (n2'n3'n4'n5'n6'n8')= (n 4 n 8 ') (n 1 n 2 ' n 4 n 8 ') (n 4 n 6 ' n 7 n 8 ') (n 2 ' n 3 'n 4 ' n 5 'n 6 ' n 8 ')

=n4n8'(n4n8'(n1n2'+n6'n7+n2'n3'n5n6))'= n 4 n 8 '(n 4 n 8 ' (n 1 n 2 '+ n 6 ' n 7 + n 2 'n 3 ' n 5 n 6 )) '

=n4n8'(n2(n1+n3'n5'n6')+n6'n7'= n 4 n 8 '(n 2 (n 1 + n 3 ' n 5 'n 6 ') + n 6 'n 7 '

TTAG'=P(n4n8')'n2'(n1+n3'n5'n6')+n6'n7)TTAG '= P (n 4 n 8 ') 'n 2 ' (n 1 + n 3 'n 5 ' n 6 ') + n 6 ' n 7 )

=P(n4'+n8+(n1n2'+n2'n3'n5'n6'+n6'n7))= P (n 4 '+ n 8 + (n 1 n 2 ' + n 2 'n 3 ' n 5 'n 6 ' + n 6 'n 7 ))

=P(n4'+n8+n1n2'+n2'n3'n5'n6'+n6'n7)= P (n 4 '+ n 8 + n 1 n 2 ' + n 2 'n 3 ' n 5 'n 6 ' + n 6 'n 7 )

와 같은 논리식으로 표현될 수 있다.It can be expressed as a logical expression such as

제 6 도는 이와같은 잡음제거 및 세선화 논리식을 PLA(Programmable Logic Array : PLA)로 나타낸 것으로서, 쉽게 구현할 수 있고 새로운 마스크를 추가시킬 경우 수정이 용이하며 필요로 하는 칩 면적(chip area) 도 줄일수 있다는 장점이 있다. 제 6 도와 잡음제거 및 세선화 회로를 4서브 사이클(subcycle)방식으로 좌측(서쪽), 상측(북측), 우측(동쪽), 하측(남쪽)의 순서를 시계방향으로 90도씩 회전시켜 입력방향을 바꾸면서 잡음제거 및 세선화를 수행한다. 4서브 사이클(subcycle)을 지원하기 위하여 9비트 쉬프트회로를 사용하는데 각 방향에서는 모든 화소에 대하여 병렬처리가 가능하여 잡음 제거 태그(NTAG)와 세선화 태그(TTAG)가 1이면 해당 화소를 제거한다.Figure 6 shows the noise reduction and thinning logic in PLA (Programmable Logic Array, PLA), which can be easily implemented and can be easily modified by adding a new mask, and also reduces the chip area required. There is an advantage. The sixth diagram and the noise reduction and thinning circuit are rotated by 90 degrees clockwise in the order of left (west), upper (north), right (east), and lower (south) in four subcycles. Perform noise reduction and thinning while changing. A 9-bit shift circuit is used to support 4 subcycles, and in each direction, parallel processing is possible for all pixels. If the noise canceling tag (NTAG) and the thinning tag (TTAG) are 1, the corresponding pixel is removed. .

제 7 도는 9비트 쉬프트회로를 나타낸 것으로서, 제어신호(clso, clsl)가 "0 0"인 경우에 입력되는 8개의 이웃화소(n1, n2, n3, n4, n5, n6, n7, n8)를 그대로 출력하기 위한 NMOS 트랜지스터들(110, 111)과, 제어신호(clso, clsl)가 "1 0"인 경우에 8개의 이웃화소를 180도 오른쪽으로 회전하기 위한 NMOS 트랜지스터들(110, 113)과, 제어신호(clso, clsl)를 반전하기 위한 2개의 인버터들(114)과, 입력신호를 버퍼하기 위한 8개의 인버터들(115)과, 출력신호를 버퍼하기 위한 8개의 인버터들(116)로 구성되며 중심화소(P)를 제외한 8개의 이웃화소를 시계 반대방향으로 90도씩 회전한다.7 shows a 9-bit shift circuit, in which eight neighboring pixels (n 1 , n 2 , n 3 , n 4 , n 5 , n 6) input when the control signals clso and clsl are "0 0". NMOS transistors 110 and 111 for directly outputting n 7 and n 8 , and NMOS for rotating eight neighboring pixels 180 degrees to the right when the control signals clso and clsl are "10". Transistors 110 and 113, two inverters 114 for inverting the control signals clso and clsl, eight inverters 115 for buffering the input signal, and buffers for the output signal. It consists of eight inverters 116 and rotates eight neighboring pixels excluding the center pixel P by 90 degrees counterclockwise.

제 8 도는 제어신호(S)에 의해서 잡음 제거 태그(NTAG')나 세선화 태그(TTAG')값을 선택적으로 출력시키기 위한 두개의 CMOS 전송 게이트(117)로 이루어진 2*1 멀티플랙서(2*1 multipexer)를 나타낸 것이다.8 shows a 2 * 1 multiplexer 2 comprising two CMOS transfer gates 117 for selectively outputting a noise canceling tag NTAG 'or a thinning tag TTAG' value by a control signal S. FIG. * 1 multipexer).

제 9 도는 30비트 비교기(comparator)를 나타낸 것으로서, 입력신호(P, TAG)가 "0 0"인 경우 PMOS트랜지스터(118, 119)을 턴온하고 NMOS 트랜지스터들(128)을 턴온해서 출력에 "1"의 신호를 발생하고, 입력신호(P, TAG)가 "0 1"인 경우 PMOS 트랜지스터들(118)과, NMOS트랜지스터들(120)을 턴온하고 NMOS 트랜지스터들(120)을 턴오프해서 출력에 "0"의 신호를 발생하고, 입력신호(P, TAG)가 "1 0"인 경우 PMOS 트랜지스터들(121)와 NMOS 트랜지스터들(119)을 턴온하고 NMOS 트랜지스터들(122)를 턴오프해서 출력에 "0"의 신호를 발생하고, 입력신호 (P, TAG)가 "1 1"인 경우 NMOS 트랜지스터들(121, 120)을 턴온하고 NMOS 트랜지스터들(122)을 턴온해서 출력에 "1"의 신호를 발생한다. 즉, 입력신호(P, TAGP가 동일한 경우는 "1"의 출력신호를 발생하고, 입력신호(P, TAG)가 다른 경우는 "0"의 출력신호를 발생한다. 이와 같이 해서 입력되는 30비트의 각 비트 값이 모두 동일한 경우는 "1"의 값을 출력하고, 입력되는 30비트의 각 비트 값이 상이한 경우는 "0"의 값을 출력한다.9 shows a 30-bit comparator. When the input signals P and TAG are " 0 ", the PMOS transistors 118 and 119 are turned on and the NMOS transistors 128 are turned on to " 1 " And the input signals P and TAG are " 0 1 ", turn on the PMOS transistors 118 and the NMOS transistors 120 and turn off the NMOS transistors 120 to the output. When the signal of "0" is generated and the input signals P and TAG are "1 0", the PMOS transistors 121 and the NMOS transistors 119 are turned on and the NMOS transistors 122 are turned off and output. Generates a signal of "0", and when the input signal (P, TAG) is "1 1", the NMOS transistors 121 and 120 are turned on and the NMOS transistors 122 are turned on to output "1" to the output. Generate a signal. In other words, if the input signals P and TAGP are the same, an output signal of "1" is generated, and if the input signals P and TAG are different, an output signal of "0" is generated. If each bit value is the same, a value of "1" is output. If each bit value of the input 30 bits is different, a value of "0" is output.

제 10 도는 30비트 비교기의 또 다른 실시예를 나타낸 것으로서, 제 9 도의 점선으로 표시한 부분에 대체하는 것이 가능하다. 입력신호(TAG)를 출력하기 위한 CMOS전송 게이트(123)를 턴온 또는 턴오프 하기 위한 제어 신호를 발생하는 입력신호(P)와 인버터(124)의 출력신호와 CMOS 전송게이트(123)가 턴오프시에 반전된 입력신호 (TAG)의 값"1"이 나타나고, "1"인 경우에 출력에 반전된 입력신호(TAG)의 값"0"이 나타나고, "1 0"인 경우에 출력에 입력 신호(TAG')의 값"1"이 나타나고, "1 1"인 경우에 출력에 입력신호(TAG')의 값 "1"이 나타난다. 즉, 제 9 도의 회로와 동일하게 동작하게 된다.FIG. 10 shows another embodiment of a 30-bit comparator, which can be replaced by the dotted line in FIG. An input signal P for generating a control signal for turning on or off the CMOS transfer gate 123 for outputting the input signal TAG and an output signal of the inverter 124. And the value "1" of the inverted input signal TAG appears when the CMOS transfer gate 123 is turned off, and the value "0" of the inverted input signal TAG appears in the output when "1". In the case of "1 0", the value "1" of the input signal TAG 'appears at the output, and in the case of "1 1", the value "1" of the input signal TAG' appears at the output. In other words, it operates in the same manner as the circuit of FIG.

제 11 (a), (b) 및 (c)는 본 발명에서 사용된 D플립플롭과 T플립플롭의 논리회로도, 동작 테이블(function table), 논리심볼(logic symbol) 및 동작 타이밍도를 나타낸 것으로서 공지의 회로도이다.11 (a), (b) and (c) show a logic circuit diagram, a function table, a logic symbol, and an operation timing diagram of a D flip flop and a T flip flop used in the present invention. It is a well-known circuit diagram.

제 12 도는 D플립플롭들(126)을 이용한 3비트 쉬프트 레지스터들을 나타낸 것으로서, 제어신호(E1)에 응답하여 32비트의 각 화소 데이타를 쉬프트하게 된다.FIG. 12 shows 3-bit shift registers using the D flip-flops 126, and shifts each 32-bit pixel data in response to the control signal E1.

제 13 도는 본 발명에 사용한 T플립플롭들(127)을 이용한 바이너리리플 카운터(binary ripple counter)를 나타낸 것으로서, 클럭 신호(CLK)를 T플립플롭의 클럭신호단자(CLK)에 인가하고 출력단자(Q)는 최하위 비트신호(Q0)를 발생하고 반전출력단자(Q)는 다음단 T플립플롭의 클럭신호단자에 인가하여 계속적으로 비트수를 늘려서 n비트를 카운트할 경우에는 n개의 T플립플롭(127)을 연결하여 구성한다.FIG. 13 shows a binary ripple counter using the T flip flops 127 used in the present invention. The clock signal CLK is applied to the clock signal terminal CLK of the T flip flop and the output terminal ( Q) generates the least significant bit signal Q0, and the inverted output terminal Q is applied to the clock signal terminal of the next T flip-flop to continuously increase the number of bits to count n bits. 127) by connecting.

제 14 도는 본 발명에서 사용된 스테틱 랜덤 억세스 메모리(Static Random Access Memory, SRAM)의 기본적인 구조를 나타낸 것이다.14 shows a basic structure of a static random access memory (SRAM) used in the present invention.

제 14 도는 본 발명에 따른 전처리 회로에 적용될 4비트 바이너리 리플 카운터를 나타낸 것이다. n개를 연결하면 n비트 카운터는 구성할 수 있다.14 shows a 4-bit binary ripple counter to be applied to the preprocessing circuit according to the present invention. By connecting n, n-bit counters can be configured.

제 15 도는 본 발명의 제어신호들을 만들기 위하여 사용된 4비트 뫼비우스 카운터(Mobius counter)의 구성을 나타낸 것으로서, 4개의 D플립플롭(126)의 클럭신호단자에 클럭신호(CLOCK)를 인가하고, 전단의 출력신호를 후단의 데이타 입력 단자(D)에 연결하고 마지막단의 반전출력단자신호(Q)를 첫째단의 데이타 입력단자(D)에 연결하여 각 D플립플롭의 출력단자를 통하여 출력신호(Q0, Q1, Q2, Q3)를 발생한다.FIG. 15 shows the configuration of the 4-bit Mobius counter used to generate the control signals of the present invention. The clock signal CLOCK is applied to the clock signal terminals of the four D flip-flops 126. Connect the output signal of D to the data input terminal (D) of the rear stage, and the inverted output terminal signal (Q) of the last stage to the data input terminal (D) of the first stage, and then output the output signal ( Q0, Q1, Q2, and Q3) are generated.

클럭신호(CLOCK)에 따른 출력파형과 출력 상태도 같이 나타낸 것이다.The output waveform and the output state according to the clock signal (CLOCK) are also shown.

제 16 도는 본 발명의 제어 신호 발생기(control signal generator)를 나타낸 것이다. 펄스성의 아이들 신호(P, Idle)를 D플립플롭(128)의 데이타 입력단자(D)와 클럭신호단자(CK)에 인가하여 아이들 신호(Idle)를 발생한다. D플립플롭(128)의 프리세트단자(PRESET)에 펄스성의 클리어신호(P Clear)를 인가하면 아이들신호(Idle)는 "1" 상태가 되어 칩을 리세트시킨다. D플립플롭(128)의 클리어 신호 단자(CLEAR)에 펄스성의 데이타 입력신호(P Data In)을 인가하면 아이들 신호(Idle)는 "0"상태가 되어 동작 상태임을 알린다. 펄스성의 데이타 입력신호(P Data In)을 인가하면 아이들 신호(Idle)는 "0"상태가 되어 동작 상태임을 알린다. 펄스성의 데이타 입력신호(P Data In)가 D플립플롭(129)의 데이타 입력단자(D)와 클럭신호단자(CK)에 인가되어 "1"상태 신호를 PLA1(130)에 인가한다. PLA1(130)은 4비트 뫼비우스 카운터(131)의 출력신호(Q0, Q1, Q2, Q3)를 입력하여 출력신호를 발생시킨다. 상기 출력신호에 의해 동작이 완료된 뒤에, 펄스성의 실행신호(P Execute)가 D플립플롭(132)의 데이타 입력 단자(D)와 클럭신호 단자(CK)에 인가되면 출력단자(Q)를 통하여 "1" 상태의 실행신호(Execute)를 발생한다. 실행신호(Execute)는 D플립플롭(129)의 크리어 신호 단자(CLR)에 인가되어 D플립플롭(129)을 클리어하고, 동시에 PLA2(133)에 인가된다. PLA2(133)는 4비트 뫼비우스 카운터(133)의 출력신호(Q0, Q1, Q2, Q3)를 입력하여 출력신호를 발생한다. 동작을 수행한 뒤에, 레디-포-아웃신호(Ready-for-Out)가 발생되고 D플립플롭(132)의 클리어 신호 단자(CLK)에 인가되어 D플립플롭(132)을 클리어시킨다. 그후에, 펄스성의 데이타 출력 신호(P-Data-Out)가 D플립플롭(134)의 데이타입력단자(D)와 클럭 신호 단자(CK)에 인가되면 출력 단자(Q)를 통하여 "1"상태의 데이타 출력 신호(Data Out)를 발생한다. 데이타 출력신호(Data-Out)는 PLA3(135)에 인가되고 4비트 뫼비우스 카운터(131)의 출력신호(Q0, Q1, Q2, Q3)를 입력하여 출력신호를 발생한다. 그리고 D플립플롭(134)의 클리어 신호 단자(CLK)에 아이들 신호(Idle)신호가 인가되면 D플립플롭(134)은 클리어된다.16 shows a control signal generator of the present invention. The pulsed idle signals P and Idle are applied to the data input terminal D and the clock signal terminal CK of the D flip-flop 128 to generate an idle signal Idle. When the pulsed clear signal P Clear is applied to the preset terminal PRESET of the D flip-flop 128, the idle signal Idle becomes "1" and resets the chip. When the pulsed data input signal P Data In is applied to the clear signal terminal CLEAR of the D flip-flop 128, the idle signal Idle becomes a " 0 " state to indicate that it is in an operating state. When the pulsed data input signal P Data In is applied, the idle signal Idle becomes a " 0 " state to indicate that it is in an operating state. The pulsed data input signal P Data In is applied to the data input terminal D and the clock signal terminal CK of the D flip-flop 129 to apply a " 1 " state signal to the PLA1 130. The PLA1 130 inputs the output signals Q0, Q1, Q2, and Q3 of the 4-bit Mobius counter 131 to output the signals. Generates. The output signal After the operation is completed by " 1 ", the pulsed execution signal P Execute is applied to the data input terminal D and clock signal terminal CK of the D flip-flop 132 to " 1 " state through the output terminal Q. Generates an Execute signal. The execute signal Execute is applied to the CREE signal terminal CLR of the D flip-flop 129 to clear the D flip-flop 129 and to the PLA2 133 at the same time. The PLA2 133 inputs the output signals Q0, Q1, Q2, and Q3 of the 4-bit Mobius counter 133 to output the output signals. Occurs. After performing the operation, the ready-for-out signal (Ready-for-Out) is generated is applied to a clear signal terminal (CLK) of the D flip-flop 132 clears the D flip-flop 132. After that, when the pulsed data output signal P - Data - Out is applied to the data input terminal D and the clock signal terminal CK of the D flip-flop 134, the output terminal Q is in the " 1 " state. Generates a data output signal (Data Out). Data output signal (Data - Out) is applied to PLA3 (135) and inputs the output signal (Q0, Q1, Q2, Q3) of the 4-bit Mobius counter 131 output signal Occurs. When the idle signal Idle signal is applied to the clear signal terminal CLK of the D flip flop 134, the D flip flop 134 is cleared.

제 17 도는 제 16 도의 제어 신호 발생기(control signal generator)에 의해 만들어지는 제어 신호의 파형을 나타내는 것이다.FIG. 17 shows waveforms of control signals generated by the control signal generator of FIG.

제 18 도는 본 발명에 따른 전처리 회로의 알고리즘을 정의하기 위한 알고리즈믹 스테이트머신챠트(Algorithmic State Machine chart : ASM chart)를 나타낸것으로서, 아이들 상태(135)에서 외부로부터 펄스성의 데이타 입력신호(P-Data-In)가 있으면, 데이타 입력신호(136)가 "1"의 상태로 되고 외부로부터 데이타가 입력되면 데이타 입력 상태(137)가 된다. 외부로부터 데이타의 입력이 완료되면 "1"의 실행 신호(Execute) (138)가 내부로부터 발생된다. 그러면 실행 상태(139)로 되어 실행을 하게 된다. 실행이 완료되면 "1"의 레디포 아웃(Ready-for-Out) (14)를 외부로 출력하고 데이타의 출력을 위한 대기상태(Ready-State for Data out) (141)가 된다. 데이타 출력신호(Data-Out)가 "0"이면 (142) 계속해서 대기상태를 유지하고 외부로부터 펄스성의 입력되면 데이타 출력신호(Data-Out)가 "1"이 되고, 출력상태(Outputstate) (143)가 되어 외부로 데이타를 출력한다.18 degrees known for defining an algorithm for pre-processing circuit according to the present invention Leeds dynamic state machine chart (Algorithmic State Machine chart: ASM chart ) for showing such, pulse sex data input from the outside in the idle state (135) (P - Data - In), the data input signal 136 is in the state "1", and when data is input from the outside, the data input state 137 is entered. When the input of data from the outside is completed, an execute signal (Execute) 138 of "1" is generated from inside. Then, the execution state 139 is executed. When the execution is completed, the ready - for - out 14 of " 1 " is output to the outside and the ready-state for data out 141 is output. If the data output signal (Data - Out) is "0" (142), the standby state is continuously maintained, and if pulsed input is received from the outside, the data output signal (Data - Out) becomes "1", and the output state (Outputstate ( 143) to output data to the outside.

데이타의 출력이 완료되면 "1"의 아이들 신호(Idle) (144)가 발생되어 외부로 출력되고 다시 아이들 상태(135)로 되돌아 간다. 이와 같은 동작을 반복적으로 수행함으로서 모든 데이타의 전처리를 완료하게 된다.When the output of the data is completed, an idle signal (Idle) 144 of " 1 " is generated to be output to the outside and back to the idle state 135 again. By repeatedly performing such an operation, the preprocessing of all data is completed.

제 3 도는 본 발명에 따른 전처리 회로를 나타낸 것으로서, 그 구성과 기능은 다음과 같다.3 shows a preprocessing circuit according to the present invention, the configuration and function of which are as follows.

NOR 게이트(145)는 펄스성의 데이타입력신호(P-Data-In), 실행 신호(P Execute), 아이들 신호(P-Idle), 레디-포-아웃신호(Ready-for-Out)가 인가되면 "0"의 신호를 출력하고, 5비트 어드레스 카운터(146)를 인버터(147)를 통해서 세트시키고, 8비트 어드레스 카운터(148)를 리세트시키는 기능을 한다. AND게이트(150)는 칩 셀렉트 신호와 라이트 인에이블 신호가 모두 "1"인 경우에 "1"의 신호를 출력한다. NOR 게이트(150)는 AND게이트(150)의 출력신호가 "1"이거나 데이타 입력신호(Data-In) 또는 데이타 출력 신호(Data-Out)가 "1"일때 인버터(151)를 통하여 "1"의 신호를 출력하여 3상태 버퍼(152)를 인에이블하여 8비트 어드레스 카운터(148)의 하위 5비트 신호를 출력하는 기능을 한다.When the NOR gate 145 is applied with a pulsed data input signal (P - Data - In), an execution signal (P Execute), an idle signal (P-Idle), and a ready-for-out signal (Ready - for - Out) A signal of " 0 " is output, the 5-bit address counter 146 is set via the inverter 147, and the 8-bit address counter 148 is reset. AND gate 150 is a chip select signal. And light enable signal When all are "1", the signal of "1" is output. NOR gate 150 is " 1 " through inverter 151 when output signal of AND gate 150 is " 1 " or data input signal (Data - In) or data output signal (Data - Out) is " 1 ". It outputs a signal of the to enable the three-state buffer 152 to output the lower 5-bit signal of the 8-bit address counter 148.

AND게이트(153)는 칩셀렉트 신호와 라이트 인에이블 신호가 모두 "0"인 경우에 "1"의 신호를 출력한다. AND게이트(154)는 AND게이트(153)의 출력 신호와 NOR게이트(150)의 출력 신호가 모두 "1"인 경우에 "1"의 신호를 출력하여 3상태 버퍼(155)를 인에이블하여 5비트 어드레스 카운터(146)의 5비트 신호를 출력하는 기능을 한다. 즉, AND게이트(153), AND게이트(149), NOR게이트(150), NAD게이트(154)는 SRAM(156)의 라이트(Write) 어드레스를 제어하고, AND게이트(149), NOR게이트(150), 인버터(151)은 SRAM(156)의 리드(Read)어드레스를 제어하는 기능을 한다. 5비트 어드레스 카운터(146)와 8비트 어드레스 카운터(148)의 카운터의 클럭 신호 단자(CK)에 인가되는 제어신호(EO)에 의해서 카운팅을 시작한다. SRAM(156)은 5비트 카운터(146)의 출력 신호에 의해서 32×32 비트의 화소 데이타를 출력하는 기능을 한다. AND 게이트(15)는 8비트 카운터(148)의 6번째 비트 출력 신호가 "1"이고 데이타 입력신호(Data-In)가 "1"일때 펄스성의 실행 신호(P-Execute)를 출력한다. AND게이트(158)는 8비트 카운트(148)의 6번째 비트 출력 신호가 "1"이고 데이타 출력 신호(Data-Out)가 "1"일때 펄스성의 아이들 신호(P-Idle)를 출력한다. D플립플롭(159)은 8번째 비트 출력신호가 "1"이면 제어신호를 (S)를 발생시킨다. 그리고 펄스성의 실행 신호(P-Execute)에 의해 D플립플롭(159)이 클리어 된다. D플립플롭들(160)은 SRAM(156)에 저장된 32×32 비트의 화소 데이타를 제어신호(E1)에 의해 저장하고 쉬프트 시킨다. 9비트 쉬프트회로들(161)은 8비트 카운터(148)의 6번째 7번째 비트로부터 출력되는 신호들(clso, clsl)에 의해서 좌측, 상측, 우측, 하측의 4가지 방향에 대한 잡음제거와 세선화를 수행하는 기능을 한다. D플립플롭들(160)과, 9비트 쉬프트 회로들(161) 사이의 연결은 제 4 도의 3×3 기본마스크에 배치된 8개의 이웃화소들(n1, n2, n3, n4, n5, n6, n7, n8)을 정해진 순서에 따라 접속한다. 그리고 D플립플롭들(160)의 첫번째와 마지막 비트는 접지단자(Vss)에 묶여있다. 왜냐하면, 그들 비트에는 화소데이타가 존재하지 않기 때문이다. 잡음제거와 세선화 PLA(62)는 9비트 쉬프트 회로들(161)로 부터의 출력신호를 입력하여 잡음제거와 세선화를 수행한다. 멀티플렉스(163)는 제어신호(163)의 제어신조(S)에 의해 잡음제거된 데이터나 세선화된 데이터를 선택적으로 출력한다. 30비트 비교기(164)는 멀티플렉서(163)의 출력신호와 중심화소신호(P)를 입력하여 같은 경우에는 "1"의 신호를 출력하고, 다른 경우에는 "0"의 신호를 출력한다.The AND gate 153 is a chip select signal And light enable signal If both are "0", a signal of "1" is output. The AND gate 154 outputs a signal of "1" when both the output signal of the AND gate 153 and the output signal of the NOR gate 150 are "1", thereby enabling the three-state buffer 155 to be 5 The 5-bit signal of the bit address counter 146 is output. That is, the AND gate 153, the AND gate 149, the NOR gate 150, and the NAD gate 154 control the write address of the SRAM 156, and the AND gate 149 and the NOR gate 150. The inverter 151 functions to control the read address of the SRAM 156. Counting is started by the control signal EO applied to the clock signal terminal CK of the counters of the 5-bit address counter 146 and the 8-bit address counter 148. The SRAM 156 functions to output 32x32 bits of pixel data by the output signal of the 5-bit counter 146. The AND gate 15 outputs a pulsed execution signal P - Execute when the sixth bit output signal of the 8-bit counter 148 is "1" and the data input signal Data - In is "1". The AND gate 158 outputs a pulsed idle signal P - Idle when the sixth bit output signal of the 8-bit count 148 is "1" and the data output signal Data - Out is "1". The D flip-flop 159 generates a control signal (S) when the eighth bit output signal is "1". The D flip-flop 159 is cleared by the pulsed execution signal P - Execute. The D flip-flops 160 store and shift 32 × 32-bit pixel data stored in the SRAM 156 by the control signal E1. The 9-bit shift circuits 161 use the signals (clso, clsl) output from the sixth seventh bit of the 8-bit counter 148 to remove noise in three directions: left, top, right, and bottom. Function to perform line drawing. The connection between the D flip-flops 160 and the 9-bit shift circuits 161 includes eight neighboring pixels n 1 , n 2 , n 3 , n 4 , arranged in the 3 × 3 basic mask of FIG. 4 . n 5 , n 6 , n 7 , n 8 ) are connected in the specified order. The first and last bits of the D flip-flops 160 are tied to the ground terminal Vss. This is because there is no pixel data in these bits. Noise reduction and thinning The PLA 62 inputs the output signals from the 9-bit shift circuits 161 to perform noise reduction and thinning. The multiplex 163 selectively outputs data which has been canceled by the control signal S of the control signal 163 or thinned data. The 30-bit comparator 164 inputs the output signal of the multiplexer 163 and the center pixel signal P to output a signal of "1" in the same case and a signal of "0" in other cases.

AND게이트(165)는 제어신호(E2)와 30비트 비교기(164)의 출력신호가 모두 "1"인 경우에 "1"의 신호를 출력한다. 8비트 카운터(166)는 AND게이트(165)의 출력 신호에 의해 카운팅을 시작한다. 인버터(167)는 30비트 비교기(164)와 출력 신호를 반전한다. OR게이트(168)는 인버터(167)의 출력 신호나 펄스성의 실행 신호(P-Execute)중의 하나가 "1"인 경우에 "1"의 신호를 출력하여 8비트 카운터(166)를 클리어 시키게 된다.The AND gate 165 outputs a signal of "1" when both the control signal E2 and the output signal of the 30-bit comparator 164 are "1". The 8-bit counter 166 starts counting by the output signal of the AND gate 165. Inverter 167 inverts the 30-bit comparator 164 and the output signal. The OR gate 168 outputs a signal of "1" when one of the output signal of the inverter 167 or the pulse execution signal (P - Execute) is "1" to clear the 8-bit counter 166. .

D플립플롭(169)은 8비트 카운터(166)의 8번째 비트 신호가 "1"이 되면 레디-포-아웃신호(Ready-for-Out)를 발생하고 펄스성의 데이타 입력신호(P-Date-In)에 의해서 크리어된다. 3상태버퍼(170)는 제어신호(W)에 의해서 인에이블되고, 멀티플렉서(163)의 출력신호를 32비트 I/O버스를 통해서 SRAM(156)에 저장한다.D flip-flop 169 is when the 8-th bit signal of the 8-bit counter 166 is "1", the ready-for-out signal is generated for (Ready - - for Out) and pulse sex data input signals (P - Date - Cree by In). The tri-state buffer 170 is enabled by the control signal W, and stores the output signal of the multiplexer 163 in the SRAM 156 through the 32-bit I / O bus.

제 3 도에 나타낸 본 발명의 전처리 회로의 동작을 설명하면 다음과 같다.The operation of the preprocessing circuit of the present invention shown in FIG. 3 is as follows.

아이들 상태(Idle State)는 펄스성의 클리어신호(P-Clear)가 D플립플롭(128)의 프리세트 신호단자(PRE)에 인가되면 아이들 신호(Idle)를 발생한다. 데이타 입력 상태(Data Input State)는 펄스성의 데이타 입력 신호(P-Data-In)가 D플립플롭(129)의 데이타 입력 신호 단자(D)에 인가되면, PLA1(130)은 제 18 도의 제어신호들을 발생한다. 그리고 펄스성의 데이타 입력신호(P-Data-In)가 NOR게이트(145)에 인가되면 5비트 카운터(146)를 "1"세트시키고, 8비트 카운터(148)를 "0"으로 리세트 시킨다. 칩 셀렉트 신호와 인에이블 신호가 모두 "0"일때 인버터(151)의 출력신호가 "1"이 되어 3상태 버퍼(152)를 인에이블한다. 칩 셀렉트신호가 "1"로 되고 1클럭(CLOCK) 주기 뒤에 제어신호(EO)가 "1"이 되면 8비트 카운터(148)는 3상태 버퍼(152)를 통해서 "0"의 어드레스를 발생하고 칩 셀렉트신호와 라이트인에이블신호가 "0"이면 SRAM(156)의 "0"번지에 32비트의 데이타를 I/O 버스를 통하여 데이타를 입력하여 라이트하게 된다. 그래서 8비트 카운터(148)가 "11111"의 어드레스를 발생하고 "11111"번지에 321 비트의 데이타를 라이트하여 32×32 비트의 데이타의 라이트 동작이 종료된다. 데이타의 입력이 종료되면 8비트 카운터(148)의 6번째 비트 신호가 "1"이 되어 AND게이트(157)는 펄스성의 실행 신호(P-Execute)를 발생한다. 실행 상태(Execute State)는 펄스성의 실행 신호(P-Execute)가 D플립플롭(159)의 클리어 신호 단자(CLR)와 OR게이트(168)에 인가되면 D플립플롭(159)과 8비트 카운터(166)를 클리어시키고 NOR 게이트 (145)에 입력되어 5비트 카운터(146)를 세트시키고 8비트 카운터(148)를 리세트 시킨다. 또한, D플립플롭(132)의 데이타 입력 신호 단자(D)에 인가되면, PLA2(132)는 제 18 도의 제어신호들을 발생한다. 칩 셀렉트 신호가 "0"이고 라이트 인에이블신호가 "1"이면 3상태 버퍼들(152)을 인에이블한다. 제어신호(E0)가 "1"이 되면 8비트 카운터(148)는 "0"의 5비트 신호들을 3상태 버퍼들(152)을 인에이블한다. 제어신호(E0)가 "1"이 되면 8비트 카운터(148)는 "0"의 5비트 신호들을 3상태 버피들(152)을 통하여 SRAM(156)에 입력한다. SRAM(156)은 어드레스 "0"의 32비트 데이타를 D플립플롭(160)에 저장하고 제어신호(E1)이 "1"이 될때 쉬프트한다. 8비트 카운터(148)의 6번째와 7번째 비트는 "0"의 상태이고 D플립플롭(159)의 데이타 입력단자(D)와 클럭 신호 단자(CK)에 인가되어 제어신호(S)를 발생한다. 제어신호(S)는 멀티플렉서(163)에 인가되어 잡음 제거 태그 신호를 출력한다. 이때 칩 셀렉트신호가 "1"이 되고 라이트 인에이블 신호가 "1"을 유지하여 3상태 버퍼들(152, 155)을 디스에이블하고 있다. 칩 셀렉트 신호와 라이트 인에이블신호가 모두 "0"상태이면 제어신호(W)가 "1"이 되어 3상태 버퍼들(155)을 인에이블한다. 또한 제어신호(W)는 3상태 버퍼들(170)을 인에이블한다. 5비트 카운터(146)의 5비트 출력신호들 "11111"은 3상태 버퍼들(155)을 통하여 SRAM(156)에 입력한다. SRAM(156)은 어드레스"11111"의 번지에 3상태 버퍼 (170)을 통하여 잡음제거 태그 신호를 SRAM(156)에 라이트 한다. 또한 잡음 제거 태그 신호는 중심화소값들과 30비트 비교기(164)에서 비교된다. 제어신호(E2)가 "1"이 되고 30 비트 비교기(164)의 출력신호가 "1"이면 8비트 카운터(166)는 카운팅 한다.The idle state generates an idle signal Idle when a pulsed clear signal P-Clear is applied to the preset signal terminal PRE of the D flip-flop 128. The data input state is a pulse input data input signal (P-Data-In) is applied to the data input signal terminal (D) of the D flip-flop 129, PLA1 (130) is a control signal of FIG. field Occurs. When the pulsed data input signal P - Data - In is applied to the NOR gate 145, the 5-bit counter 146 is set to "1", and the 8-bit counter 148 is reset to "0". Chip Select Signal And enable signal When all are "0", the output signal of the inverter 151 becomes "1" to enable the three-state buffer 152. Chip Select Signal Becomes "1" and the control signal EO becomes "1" after one clock cycle, the 8-bit counter 148 generates an address of "0" through the tri-state buffer 152 and the chip select signal. And light enable signal Is " 0 ", 32-bit data is written to " 0 " of the SRAM 156 through the I / O bus. Thus, the 8-bit counter 148 generates an address of " 11111 " and writes 321 bits of data to the address " 11111 ", thereby completing the write operation of 32x32 bits of data. When data input is completed, the sixth bit signal of the 8-bit counter 148 becomes "1", and the AND gate 157 generates a pulsed execution signal (P - Execute). The execute state is the D flip-flop 159 and the 8-bit counter when the pulsed execution signal P-Execute is applied to the clear signal terminal CLR and the OR gate 168 of the D flip-flop 159. Clear 166 and input to NOR gate 145 to set 5-bit counter 146 and reset 8-bit counter 148. Also, when applied to the data input signal terminal D of the D flip-flop 132, the PLA2 132 is the control signals of FIG. Occurs. Chip Select Signal Is "0" and the write enable signal is Is " 1 " enables the tri-state buffers 152. When the control signal E0 becomes "1", the 8-bit counter 148 enables the three-state buffers 152 with 5-bit signals of "0". When the control signal E0 becomes "1", the 8-bit counter 148 inputs 5-bit signals of "0" to the SRAM 156 through the tri-state buffy 152. SRAM 156 stores 32-bit data at address "0 " in D flip-flop 160 and shifts when control signal E1 becomes " 1 ". The sixth and seventh bits of the 8-bit counter 148 are in the state of "0" and are applied to the data input terminal D and the clock signal terminal CK of the D flip-flop 159 to generate the control signal S. do. The control signal S is applied to the multiplexer 163 to output a noise canceling tag signal. At this time, chip select signal Becomes "1" and the light enable signal Maintains " 1 " to disable the tri-state buffers 152 and 155. Chip Select Signal And light enable signal When both are in the "0" state, the control signal W becomes "1" to enable the three-state buffers 155. The control signal W also enables the three state buffers 170. The 5-bit output signals " 11111 " of the 5-bit counter 146 are input to the SRAM 156 through the tri-state buffers 155. The SRAM 156 writes the noise canceling tag signal to the SRAM 156 through the tri-state buffer 170 at the address "11111". The noise canceling tag signal is also compared with the center pixel values in the 30 bit comparator 164. If the control signal E2 becomes "1" and the output signal of the 30-bit comparator 164 is "1", the 8-bit counter 166 counts.

30비트 비교기(164)의 출력신호가 "0"이면 8비트(166)은 클리어된다. 잡음제거에서는 4서브 사이클을 한번만 반복 수행시키지만, 세선화를 수행할 경우에는 32비트씩을 32개의 3비트 쉬프트 레지스터에 차례로 받아서 4서브 사이클로 중앙화소가 더 이상을 제거되지 않을때까지 계속해서 반복 수행하는 일련의 반복 과정을 거친다.If the output signal of the 30-bit comparator 164 is "0", 8 bits 166 are cleared. In noise reduction, four sub cycles are repeated once, but when thinning is performed, 32 bits are sequentially received in 32 three-bit shift registers, and four sub cycles are repeatedly performed until the center pixel is no longer removed. It goes through a series of iterations.

9비트 쉬프트 회로들(161)은 2개의 비트신호(cls0, cls1)에 의해 4서브 사이클을 반복 수행시키는 역할을 한다. 즉, 2개의 비트 신호(cls0, cls1)이 각각 "0"이면 좌측방향, "1"이면 상측방향, "10"이면 우측방향, "11"이면 하측방향에서 처리한 결과가 된다. 중앙화소가 더이상 제거 안되는지의 여부를 판단하기 위해서 30비트 비교기(164)를 사용한다. 30비트 비교기(164)의 입력 데이타는 30개의 중앙화소(P1, P2,....., P30)와 멀택플렉서(163)를 거쳐 나온 30비트 신호(TAG1', TAG2', ....TAG30')의 각 대응되는 비트를 비교하여 모두 같으면, "1"이 출력되어 8비트 카운터(166)를 1증가시킨다. 하나라도 다른것이 있으면 "0"이 출력되어 8비트 카운터(166)를 클리어시킨다. 최종적으로 30비트 비교기(164)에서 4*32번 1이 출력되어서 8비트 카운터(166)를 클리어 시킨다. 최종적으로 30비트 비교기(164)에서 4*32번 1이 출력되어서 8비트 카운터(166)의 8번째 비트신호"1"이 되면 D플립플롭(169)를 통하여 레디-포-아웃신호(Ready-for-Out)가 "1"이 된다.The 9-bit shift circuits 161 repeats 4 sub cycles by the two bit signals cls0 and cls1. In other words, the two bit signals cls0 and cls1 are processed in the left direction when " 0 ", " 1 " in the upper direction, " 10 " A 30 bit comparator 164 is used to determine whether the central pixel is no longer removed. The input data of the 30-bit comparator 164 is the 30-bit signals TAG1 ', TAG2', ... which have passed through 30 central pixels (P1, P2, ....., P30) and the multiplexer 163. If each of the corresponding bits of .TAG30 ') is compared and are all equal, " 1 " is output to increase the 8-bit counter 166 by one. If any one is different, " 0 " is output to clear the 8-bit counter 166. Finally, 4 * 32 times 1 is output from the 30-bit comparator 164 to clear the 8-bit counter 166. Finally, when 4 * 32 times 1 is output from the 30-bit comparator 164 and becomes the 8th bit signal " 1 " of the 8-bit counter 166, the ready-for-out signal is read through the D flip-flop 169. for-Out) becomes "1".

즉, 잡음제거와 세선화가 끝났다는 것을 의미한다. 즉, 데이타 출력을 위한 대기 상태(Ready State for Data Output)가 된다. 레디-포-아웃신호(Ready-for-Out)는 D플립플롭의 클리어 신호 단자(CLR)에 인가되어 D플립플롭(132)을 클리어시킨다.This means that noise reduction and thinning are over. That is, it becomes a ready state for data output. The ready-for-out signal is applied to the clear signal terminal CLR of the D flip-flop to clear the D flip-flop 132.

또한, NOR 게이트(145)에 인가되어 5비트 카운터(146)을 세트시키고 8비트 카운터(148)를 클리어시킨다. 데이타 출력상태(Data-Output-State)는 펄스성의 데이타 출력 신호(P-Data-Out)가 외부로부터 D플립플롭(134)의 데이타 입력단자(D)와 클럭 신호 단자(CK)에 인가되면, PLA3(135)는 제 18 도의 제어신호를 발생한다. 칩 셀렉트 신호가 "0"이고 리세트 인에이블신호가 "1"이면 3상태 버퍼(152)가 인에이블되고 제어신호(E0)가 "1"이 되면 "0"의 신호를 발생한다.It is also applied to the NOR gate 145 to set the 5-bit counter 146 and clear the 8-bit counter 148. The data output state (Data-Output-State) is a pulsed data output signal (P-Data-Out) is applied to the data input terminal (D) and the clock signal terminal (CK) of the D flip-flop 134 from the outside, PLA3 135 is the control signal of FIG. Occurs. Chip Select Signal Is "0" and the reset enable signal Is 1, the tri-state buffer 152 is enabled, and when the control signal E0 is " 1 ", a signal of " 0 " is generated.

SRAM(156)의 어드레스 "0"이 인가되면 어드레스 "0"에 저장된 32비트 데이타가 32비트 I/0버스를 통하여 칩의 외부로 출력된다. 8비트 카운터(148)가 "11111"을 출력하면 SRAM(156)은 어드레스 "11111"에 저장된 32비트 데이타를 출력하여 데이타 출력상태는 완료된다. 8비트 카운터(148)의 6번째 비트가 "1"이 되면 AND게이트(158)은 펄스성의 아이들신호(P-IDLE)를 발생하고 아이들 상태(Idle State)로 되돌아간다.When the address "0" of the SRAM 156 is applied, 32-bit data stored at the address "0" is output to the outside of the chip through the 32-bit I / 0 bus. When the 8-bit counter 148 outputs "11111", the SRAM 156 outputs 32-bit data stored at the address "11111" and the data output state is completed. When the sixth bit of the 8-bit counter 148 becomes "1", the AND gate 158 generates a pulsed idle signal P-IDLE and returns to an idle state.

본 발명에 따른 전처리 회로는 소프트웨어로 처리한 경우, 이진영상의 잡음제거 및 세선화과정에서 많은 시간이 소요되지만, 하드웨어로 구현함으로서 고속으로 실시한 처리가 가능하다.The preprocessing circuit according to the present invention takes a lot of time in the process of removing the noise and thinning of the binary image when processed by software. However, the preprocessing circuit can be implemented at high speed by hardware.

이진 영상을 처리하는 컴퓨터에서 폭넓게 이용될 수 있다.It can be widely used in computers that process binary images.

고속 폰트 제너레이터용으로 사용될 수 있다.Can be used for high speed font generators.

Claims (32)

화소 데이타를 리드 또는 라이트하기 위한 저장수단, 상기 저장수단으로부터의 화소 데이타를 입력하여 3*3 윈도우내의 중앙 화소에 인접하는 이웃화소들을 90도씩 회전하면서 좌측, 상측, 우측, 하측에 대하여 잡음제거 및 세선화를 수행하기 위한 전처리 수단, 상기 저장수단과 전처리 수단에 적절한 클럭신호를 발생하기 위한 제어수단을 구비한 것을 특징으로 하는 이진 영상의 전처리 회로.A storage means for reading or writing the pixel data, inputting the pixel data from the storage means, and removing noise with respect to the left side, the upper side, the right side, and the lower side while rotating the neighboring pixels adjacent to the center pixel in the 3 * 3 window by 90 degrees; And preprocessing means for performing thinning, and control means for generating a clock signal suitable for said storage means and said preprocessing means. 제 1 항에 있어서, 상기 저장수단(20)은 화소 데이타를 리드하기 위한 제 1 어드레스 발생수단(30), 화소 데이타를 라이트하기 위한 제 2 어드레스 발생수단(40)을 더 구비한 것을 특징으로 하는 이진영상의 전처리 회로.The method of claim 1, wherein the storage means (20) further comprises a first address generating means (30) for reading pixel data, and a second address generating means (40) for writing pixel data. Preprocessing Circuit of Binary Image. 제 2 항에 있어서, 상기 제 1 어드레스 발생수단과 상기 제 2 어드레스 발생수단(30, 40)으로부터 발생되는 어드레스는 그차가 1인 것을 특징으로 하는 이진영상의 전처리 회로.3. The preprocessing circuit of a binary image according to claim 2, wherein an address generated from said first address generating means and said second address generating means (30, 40) has a difference of one. 제 2 항에 있어서, 상기 제 1 어드레스 발생수단(30)은 외부로 부터의 화소 데이타를 상기 저장수단의 해당되는 어드레스에 입력하기 위한 어드레스를 발생하고, 상기 전처리 수단에 의해서 잡음제거되거나 세선화된 데이타를 저장하기 위한 어드레스를 발생하는 것을 특징으로 하는 이진영상의 전처리 회로.3. The first address generating means (30) according to claim 2, wherein the first address generating means (30) generates an address for inputting pixel data from the outside into a corresponding address of the storage means, and the noise is removed or thinned by the preprocessing means. A preprocessing circuit for binary images, characterized by generating an address for storing data. 제 2 항에 있어서, 상기 제 2 어드레스 발생수단(40)은 외부로 화소 데이타를 출력하기 위한 어드레스를 발생하고, 상기 전처리 수단에 데이타를 출력하기 위한 어드레스를 발생하는 것을 특징으로 하는 이진영상의 전처리 회로.The preprocessing circuit of a binary image according to claim 2, wherein the second address generating means (40) generates an address for outputting pixel data to the outside, and generates an address for outputting data to the preprocessing means. . 제 2 항에 있어서, 상기 저장수단(20)은 상기 제 1 어드레스 및 제 2 어드레스 발생수단(30, 40)의 출력을 제어하기 위한 어드레스 제어수단(145, 147, 150, 151, 153, 154, 152, 155)을 더 구비한 것을 특징으로 하는 이진영상의 전처리 회로.3. The storage device according to claim 2, wherein the storage means (20) comprises address control means (145, 147, 150, 151, 153, 154,) for controlling the output of the first address and the second address generating means (30, 40). 152, 155, further comprising a binary image pre-processing circuit. 제 6 항에 있어서, 상기 제 1 어드레스 및 제 2 어드레스 발생수단(30, 40)은 제 1 제어신호에 의해서 제어되는 2진 리플카운터(146, 147)로 이루어진 것을 특징으로 하는 이진영상의 전처리 회로.The preprocessing circuit of a binary image according to claim 6, wherein the first address and the second address generating means (30, 40) comprise binary ripple counters (146, 147) controlled by a first control signal. 제 1 항에 있어서, 상기 전처리 수단은 제 2 제어신호에 응답하여 상기 저장수단(20)으로 부터의 화소 데이타를 저장하고 쉬프트하는 쉬프트수단(160), 상기 쉬프트수단(160)과 규칙적으로 접속되며 제 1 신호에 의해서 3*3 윈도우의 좌측, 상측, 우측, 하측으로 상기 이웃화소들을 회전하는 회전수단(161), 상기 회전수단(161)으로 부터 출력되는 데이타에 관해서 잡음제거 및 세선화를 수행하는 실행수단(162), 제 2 신호에 의해서 상기 잡음제거 또는 세선화된 결과를 선택적으로 출력하기 위한 선택수단(163), 제 3 신호에 의해서 상기 선택수단으로 부터의 데이타를 상기 저장수단에 저장하는 게이팅수단(170), 상기 선택수단(163)으로 부터의 데이타와 상기 중앙화소를 비교하기 위한 비교수단(164), 및 상기 실행횟수를 계수하고 전처리가 끝났음을 알리기 위한 카운팅 수단(166)을 구비한 것을 특징으로 하는 이진영상의 전처리 회로.The method of claim 1, wherein the preprocessing means is regularly connected to the shift means 160 and the shift means 160 for storing and shifting pixel data from the storage means 20 in response to a second control signal. Noise removal and thinning are performed on the rotating means 161 for rotating the neighboring pixels to the left, the upper side, the right side, and the lower side of the 3 * 3 window by the first signal, and the data output from the rotating means 161. Execution means 162, selection means 163 for selectively outputting the noise canceling or thinning result by a second signal, and storing data from the selection means by the third signal in the storage means. A gating means 170, a comparing means 164 for comparing the data from the selecting means 163 with the central pixel, and a count for counting the number of times of execution and for notifying that the preprocessing is finished. Preprocessing circuit of a binary image, characterized in that it comprises a setting means (166). 제 8 항에 있어서, 상기 쉬프트수단(160)은 N비트의 입출력선에 각각 직렬 연결된 3개의 D플립플롭들로 이루어진 것을 특징으로 하는 이진영상의 전처리 회로.10. The preprocessing circuit of a binary image according to claim 8, wherein the shift means (160) consists of three D flip-flops connected in series to an N-bit input / output line. 제 8 항에 있어서, 상기 회전수단(161)은 상기 제 1 신호가 제 1 상태인 경우는 입력되는 8개의 이웃화소를 그대로 출력하기 위한 제 1 NMOS트랜지스터들, 상기 제 1 신호가 제 2 상태인 경우에 상기 8개의 이웃화소를 90도 오른쪽으로 회전하기 위한 제 2 NMOS트랜지스터들, 상기 제 1 신호가 제 3 상태인 경우에 상기 8개의 이웃화소를 180도 오른쪽으로 회전하기 위한 제 3 NMOS트랜지스터들, 및 상기 제 1 신호가 제 4 상태인 경우에 상기 8개의 이웃화를 270도 오른쪽으로 회전하기 위한 제 4 NMOS트랜지스터들로 이루어진 것을 특징으로 하는 이진영상의 전처리 회로.The method of claim 8, wherein the rotating means 161 is the first NMOS transistors for outputting the eight neighboring pixels as it is when the first signal is the first state, the first signal is the second state Second NMOS transistors for rotating the eight neighboring pixels 90 degrees to the right, and third NMOS transistors for rotating the eight neighboring pixels 180 degrees to the right when the first signal is in a third state. And fourth NMOS transistors for rotating the eight neighbors to the right by 270 degrees when the first signal is in the fourth state. 제 8 항에 있어서, 상기 실행수단(162)은 3*3 윈도우에서 1개의 고립된 화소, 두 화소가 독립되어 떨어져 있는 경우에 1개의 사선방향으로 돌출된 화소, 1개의 직각 방향으로 돌출된 화소를 제거하는 잡음제거 회로, 및 경계화소이고, 굴곡화소가 아니고, 단말화소가 아닌 경우에 중앙화소를 제거하는 세선화 회로로 이루어진 것을 특징으로 하는 이진영상의 전처리 회로.The method of claim 8, wherein the execution means 162 comprises one isolated pixel in a 3 * 3 window, one diagonally protruding pixel when two pixels are separated from each other, and one rectangularly protruding pixel. And a thinning circuit which removes a central pixel when the noise removing circuit removes a center pixel and the boundary pixel is not a curved pixel and is not a terminal pixel. 제 11 항에 있어서, 상기 잡음제거회로는 PLA로 구성된 것을 특징으로 하는 이진영상의 전처리 회로.12. The pre-processing circuit of binary image according to claim 11, wherein the noise canceling circuit is composed of PLA. 제 11 항에 있어서, 상기 세선화 회로는 PLA로 구성된 것을 특징으로 하는 이진영상의 전처리 회로.The preprocessing circuit of a binary image according to claim 11, wherein the thinning circuit is composed of PLA. 제 8 항에 있어서, 상기 선택수단(163)은 두개의 CMOS전송 게이트로 이루어진 것을 특징으로 하는 이진영상의 전처리 회로.9. The pre-processing circuit of binary image according to claim 8, wherein the selecting means (163) consists of two CMOS transfer gates. 제 8 항에 있어서, 상기 게이팅 수단은 3상태 버퍼들로 이루어진 것을 특징으로 하는 이진영상의 전처리 회로.9. The preprocessing circuit of binary image according to claim 8, wherein the gating means is composed of three state buffers. 제 8 항에 있어서, 상기 비교수단(164)은 입력되는 신호가 제 1 상태인 경우 턴온되는 제 1 PMOS트랜지스터들, 제 2 PMOS트랜지스터들, 및 제 1 NMOS트랜지스터들, 입력되는 신호가 제 2 상태인 경우 턴온되는 제 1 NMOS트랜지스터들, 및 제 1 NMOS트랜지스터들, 입력되는 신호가 제 3 상태인 경우 턴온되는 제 2 PMOS트랜지스터들, 입력되는 신호가 제 4 상태인 경우 턴온되는 제 1 NMOS트랜지스터들과 제 2 NMOS트랜지스터들로 구성된 N개의 비교회로로 구성된 것을 특징하는 이진영상의 전처리 회로.The method of claim 8, wherein the comparing means 164 is the first PMOS transistors, the second PMOS transistors, and the first NMOS transistors are turned on when the input signal is the first state, the input signal is a second state In this case, the first NMOS transistors turned on, the first NMOS transistors, the second PMOS transistors turned on when the input signal is in the third state, and the first NMOS transistors turned on when the input signal is in the fourth state. And N comparison circuits each consisting of two NMOS transistors. 제 8 항에 있어서, 상기 비교수단(164)은 제 1 입력신호를 출력하기 위한 CMO 전송을 게이트를 턴온 또는 턴오프 하기 위한 제어신호를 발생하는 제 2 입력신호와 상기 제 1 인버터와 상기 CMOS전송게이트가 턴오프시에 제 1 입력신호를 반전하기 위한 제 2 입력신호를 반전하기 위한 제 2 인버터로 구성된 N개의 비교회로로 구성된 것을 특징으로 하는 이진영상의 전처리 회로.The method of claim 8, wherein the comparing means 164 is a second input signal for generating a control signal for turning on or off the gate of the CMO transmission for outputting the first input signal and the first inverter and the CMOS transmission And N comparison circuits comprising a second inverter for inverting a second input signal for inverting the first input signal when the gate is turned off. 제 16 항 또는 제 17 항에 있어서, 상기 비교수단(164)은 상기 비교회로들의 출력단에 인버터를 더 구비한 것을 특징으로 하는 이진영상의 전처리 회로.18. The preprocessing circuit of a binary image according to claim 16 or 17, wherein the comparing means (164) further comprises an inverter at an output terminal of the comparing circuits. 제 16 또는 제 17 항에 있어서, 상기 비교수단(164)은 입력되는 신호가 모두 동일한 경우는 1의 값을 출력하고 상이한 경우는 0의 값을 출력하는 것을 특징으로 하는 이진영상의 전처리 회로.18. The preprocessing circuit according to claim 16 or 17, wherein the comparing means (164) outputs a value of 1 when all input signals are the same and a value of 0 when different input signals are different. 제 8 항에 있어서, 상기 카운팅 수단(166)은 어드레스의 수의 4배를 카운팅하는 것을 특징으로 하는 이진영상의 전처리 회로.9. The pre-processing circuit of binary image according to claim 8, wherein the counting means counts four times the number of addresses. 제 20 항에 있어서, 상기 카운팅 수단(166)은 바이너리 리플카운터로 이루어진 것을 특징으로 하는 이진영상의 전처리 회로.21. The preprocessing circuit according to claim 20, wherein the counting means (166) comprises a binary ripple counter. 제 1 항에 있어서, 상기 제어수단은 외부로부터의 데이타 입력을 위한 클럭을 발생하기 위한 제 1 수단, 입력된 데이타의 실행을 위한 클럭을 발생하기 위한 제 2 수단, 처리된 데이타를 외부로 출력하기 위한 클럭을 발생하기 위한 제 3 수단으로 이루어진 것을 특징으로 하는 이진영상의 전처리 회로.The method of claim 1, wherein the control means comprises: first means for generating a clock for data input from the outside, second means for generating a clock for execution of the input data, and outputting the processed data to the outside. And a third means for generating a clock for the binary image preprocessing circuit. 제 22 항에 있어서, 상기 제 1 수단은 펄스성의 데이타 입력신호를 D플립플롭의 데이타 입력단자와 클럭신호단자에 인가하고, 상기 D플립플롭의 출력신호에 의해서 인에이블되고 4비트 뫼비우스 카운터의 출력신호를 입력하여 제 1 제어신호와 상기 저장수단을 제어하기 위한 신호를 발생하기 위한 수단으로 구성된 것을 특징으로 하는 이진영상의 전처리 회로.23. The apparatus of claim 22, wherein the first means applies a pulsed data input signal to the data input terminal and the clock signal terminal of the D flip-flop, and is enabled by the output signal of the D flip-flop and output of a 4-bit Mobius counter. And means for generating a first control signal and a signal for controlling the storage means by inputting a signal. 제 23 항에 있어서, 상기 수단은 PLA로 구성된 것을 특징으로 하는 이진영상의 전처리 회로.24. The preprocessing circuit of a binary image according to claim 23, wherein said means is comprised of PLA. 제 24 항에 있어서, 상기 제 2 수단은 펄스성의 실행신호를 D플립플롭의 데이타 입력단자와 클럭신호 단자에 인가하고, 상기 D플립플롭의 출력신호에 의해서 인에이블되고 4비트 뫼비우스 카운터의 출력신호를 입력하여 제 1 , 제 2, 제 3 제어신호와 상기 저장수단을 제어하기 위한 신호를 발생하기 위한 수단으로 구성된 것을 특징으로 하는 이진영상의 전처리 회로.25. The output signal according to claim 24, wherein the second means applies a pulsed execution signal to the data input terminal and the clock signal terminal of the D flip-flop, and is enabled by the output signal of the D flip-flop and output signal of the 4-bit Mobius counter. And means for generating first, second and third control signals and a signal for controlling the storage means. 제 25 항에 있어서, 상기 수단은 PLA로 구성된 것을 특징으로 하는 이진영상의 전처리 회로.26. The pre-processing circuit of binary image according to claim 25, wherein the means consists of PLA. 제 22 항에 있어서, 상기 제 3 수단은 펄스성의 데이타 출력신호를 D플립플롭의 데이타 입력단자와 클럭신호 단자에 인가하고 상기 D플립플롭의 출력신호에 의해서 인에이블 되고 4비트 뫼비우스 카운터의 출력신호를 입력하여 제 1, 제 7 신호와 상기 저장수단을 제어하기 위한 신호를 발생하기 위한 수단으로 구성된 것을 특징으로 하는 이진영상의 전처리 회로.23. The output signal according to claim 22, wherein the third means applies a pulsed data output signal to the data input terminal and the clock signal terminal of the D flip flop and is enabled by the output signal of the D flip flop. And means for generating first and seventh signals and a signal for controlling the storage means. 제 27 항에 있어서, 상기 수단은 PLA로 구성된 것을 특징으로 하는 이진영상의 전처리 회로.29. The preprocessing circuit of a binary image according to claim 27, wherein said means is comprised of PLA. 제 27 항에 있어서, 상기 4 비트 뫼비우스 카운터는 4개의 D플립플롭의 클럭신호 단자에 클럭신호를 인가하고, 전단의 출력신호를 후단의 입력단자를 연결하고 마지막단의 반전 출력단자 신호를 첫째단의 데이타 입력 단자에 연결하여 각 D플립플롭의 출력단자를 통하여 4비트의 출력신호를 발생하는 것을 특징으로 하는 이진영상의 전처리 회로.28. The method of claim 27, wherein the 4-bit Mobius counter applies a clock signal to the clock signal terminals of the four D flip-flops, connects the output signal of the previous stage to the input terminal of the rear stage and the inverted output terminal signal of the last stage to the first stage. And a 4-bit output signal through the output terminal of each D flip-flop by connecting to the data input terminal of the binary image pre-processing circuit. 제 22 항에 있어서, 상기 제어수단은 펄스성의 아이들 신호를 D플립플롭의 데이타 입력단자와 클럭신호 단자에 인가하여 아이들 신호를 발생하고, 클리어 신호단자에 펄스성의 클리어 신호를 인가하여 아이들 신호를 발생하고 프리세트 신호단자에 펄스성의 데이타 입력신호를 인가하여 동작상태임을 알리는 리세트 수단을 더 구비한 것을 특징으로 하는 이진영상의 전처리 회로.23. The method of claim 22, wherein the control means generates an idle signal by applying a pulsed idle signal to a data input terminal and a clock signal terminal of a D flip-flop, and generates an idle signal by applying a pulsed clear signal to a clear signal terminal. And reset means for informing that the operation state is applied by applying a pulsed data input signal to the preset signal terminal. 제 22 항에 있어서, 상기 제 1 , 제 2 , 제 3 수단은 순차적으로 인에이블되는 것을 특징으로 하는 이진영상의 전처리 회로.23. The preprocessing circuit of a binary image of claim 22, wherein the first, second, and third means are enabled sequentially. 이진 화상에 대해서 화상패턴의 잡음제거 및 세선화를 수행하는 전처리 회로의 전처리 방법에 있어서, 외부로부터의 화소 데이타를 입력하는 데이타 입력단계, 입력된 데이타를 3*3 윈도우내의 중앙화소에 인접하는 이웃화소들을 시계방향으로 90도씩 회전시키면서 잡음제거 및 세선화를 수행하는 데이타 실행단계, 및 데이타의 출력을 준비하는 대기 단계, 및 외부로 실행된 데이타를 출력하는 데이타 출력단계로 이루어진 것을 특징으로 하는 이진영상의 전처리 방법.A preprocessing method of a preprocessing circuit that performs noise reduction and thinning of a picture pattern on a binary image, comprising: a data input step of inputting pixel data from an outside; a neighbor of a neighboring pixel adjacent to a central pixel in a 3 * 3 window A data execution step of performing noise reduction and thinning while rotating the pixels 90 degrees in a clockwise direction, a standby step of preparing data output, and a data output step of outputting data executed externally Pretreatment method on the top.
KR1019910007635A 1991-05-11 1991-05-11 All processing circuit for binary picture signal KR930010022B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019910007635A KR930010022B1 (en) 1991-05-11 1991-05-11 All processing circuit for binary picture signal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019910007635A KR930010022B1 (en) 1991-05-11 1991-05-11 All processing circuit for binary picture signal

Publications (2)

Publication Number Publication Date
KR920022797A KR920022797A (en) 1992-12-19
KR930010022B1 true KR930010022B1 (en) 1993-10-14

Family

ID=19314325

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019910007635A KR930010022B1 (en) 1991-05-11 1991-05-11 All processing circuit for binary picture signal

Country Status (1)

Country Link
KR (1) KR930010022B1 (en)

Also Published As

Publication number Publication date
KR920022797A (en) 1992-12-19

Similar Documents

Publication Publication Date Title
US7421563B2 (en) Hashing and serial decoding techniques
US6420907B1 (en) Method and apparatus for asynchronously controlling state information within a circuit
US5375080A (en) Performing arithmetic on composite operands to obtain a binary outcome for each multi-bit component
US5416749A (en) Data retrieval from sequential-access memory device
US7394052B2 (en) Parallel processing logic circuit for sensor signal processing
JPS63223881A (en) Processor near high-speed series pixel
US3824562A (en) High speed random access memory shift register
US3987410A (en) Array logic fabrication for use in pattern recognition equipments and the like
KR930010022B1 (en) All processing circuit for binary picture signal
JPH04294166A (en) Image processor
US7940278B2 (en) Method and system for programming for image enhancement
KR930012133B1 (en) Digital data processing method and circuit therefor
KR100206258B1 (en) Image processing apparatus
EP3506197A1 (en) Circuit unit, circuit module and apparatus for data statistics
JP2974476B2 (en) Memory controller
Manzanera Morphological segmentation on the programmable retina: towards mixed synchronous/asynchronous algorithms
KR100276793B1 (en) Subpixel Mask Generator
JP2861435B2 (en) Pipeline type arithmetic unit
Dung et al. A maskable memory architecture for rank-order filtering
JP2656538B2 (en) Address translation device
JP2969930B2 (en) Line memory of image processing device
JP2962148B2 (en) Image processing device
JPS6336535B2 (en)
JPH07112238B2 (en) Image processing circuit
Majumdar et al. Design of an ASIC Chip for Skeletonization of Graylevel Digital Images

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
G160 Decision to publish patent application
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20060928

Year of fee payment: 14

LAPS Lapse due to unpaid annual fee