CA1306540C - Image-processing apparatus - Google Patents

Image-processing apparatus

Info

Publication number
CA1306540C
CA1306540C CA000600294A CA600294A CA1306540C CA 1306540 C CA1306540 C CA 1306540C CA 000600294 A CA000600294 A CA 000600294A CA 600294 A CA600294 A CA 600294A CA 1306540 C CA1306540 C CA 1306540C
Authority
CA
Canada
Prior art keywords
pixel
gray
bilevel
image
maximum
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
CA000600294A
Other languages
French (fr)
Inventor
Fumitaka Ono
Takayoshi Semasa
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Application granted granted Critical
Publication of CA1306540C publication Critical patent/CA1306540C/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

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
    • 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/40062Discrimination between different image types, e.g. two-tone, continuous tone

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Image Processing (AREA)
  • Character Input (AREA)

Abstract

ABSTRACT OF THE DISCLOSURE

An input gray-scale image is converted to a bilevel output signal by an image-processing apparatus with two binarizing circuits: one employing a uniform threshold and the other a dither matrix. The outputs of these circuits are selected for each pixel by deciding whether the pixel is a bilevel pixel or a gray-scale pixel. The decision is based on the maximum and minimum gray levels in a block of pixels centered on the pixel in question. Images having both bilevel and gray-scale parts can thus be binarized with clean reproduction of black-white edges.

Description

~3(~65~0 IM~GE-PR~CESSING A~PARATUS

BACKGROUND OF TflE INVENTION
This lnvention relates to an image-processin~ apparatus for converting an input image with multiple gray levels to a bilevel output signal consisting of black and white dots, more particularly to such an apparatus that converts a page consisting of texts and gray-scale images into bilevel output with clean edge reproduction.
In scanning devices such as facsimile machines, a variety of schemes have been used to convert photographs and other images with multiple gray levels to bilevel output images having only two levels: black and whlte. A simple method is to binarize the input image against a fixed threshold, converting levels of gray that equal or exceed the threshold to black and other levels to white. Such uniform thresholding is highly unsatisfactory, because it completsly fails to represent continous shades o~ gray and results in great loss of detail.
A widely adopted alternative method is to dither the thresholds by varying them at individual pixel positions.
This is normallY done with a dither matrix such as a four-by-four matrix of threshold values, which is applied to four-by-four pixel blocks in a repeated manner to cover the entire input image. Such dithering can reproduce ~ray-scale 13(~!6~ coo~

l images with conslderable success. When the input image comprises bile~el portlons 9uch as line graphics and text, however, dithering creates unwanted effects such as blurred or serrated edges.
A prior-art solutlon to this problem, known as the block adaptive thresholding method, is to Identify blocks of pixels as either bilevel or gray-scale in nature and apply a fixed threshold or dither matrix accordingly, as described in the paper "Bi.level Rendition Method for Documents Including Gray-Scale and Bilevel Image" by N. Tetsutani and Il Ochi in The Transactions of the Institute of Electronics and Communication En~ineers of ~ , Vol. J67-B Nlo. 7, July 1984 (in Japanese).
A problem in this prior-art solution is that blocks may be mis-identtfied. In particular, when an all-white block is disposed next to an all-black block, both blocks may be mistakenly identified as gray-scale blocks, so some blurring of edges still occurs.

SUMMARY OF THE INVENTION
An obJect of the present invention is accordingly to reproduce black-white edges cleanly by correctly identifYing them as bilevel in nature.
An image-processing apparatus according to this invention comprises a gray-scale image memory for storing an 654~

l input lmage. a maximum-minimum detection circuit for testing blocks centered on the individual pixels of the image and findin~ the maximum and minimum gray levels therein, a decision circuit for deciding therefrom whether each pixel is a gray-scale pixel or a bilevel pixel, a un~form-threshold binarizing circuit for thresholding the image against a uniform threshold, a dither-matrix binarizing circult for thresholdlng the image using a dither matrix, and a switch, controlled by a control signal from the decision circuit, for selecting the output of the uniform-threshold binarizing circuit or the output of the dither-matrix binarizing circuit.
The method employed by this image-processing apparatus is to threshold bilevel pixels against a uniform threshold and gray-scale pixels using a dither matrix, deciding for each pixel individually whether lt is a gray-scale or bilevel pixel.

BRIEF DESCRIPTION OF THE DRAWINGS
Fig. 1 is a block diagram of a novel image-processing apparatus.
Fig. Z is a drawing of a block tested by the maximum-minimum detection circuit in Fig. 1.
Fig. 3 shows an example of gray levels encountered at the edge of a character.

1306~40 FC008 1 Fig. 4 shons shows an example of a four-by-four dither matrix.
Fig. 5 sho~s the result of thresholding the image in Fig. 3 with the dither matrix in Fig. 4.
Fig. 6 sho~s the result of thresholdlng the image in Fig. 3 with a uniform threshold.
Fig, 7 sho~s the results of tlle decisions made by the decision circuit in Fig. 1 for -the image in Fig. 3.
Fig. 8 shows the bilevel output signal thus generated from the image in Fig. 3.
Fig. 9 sho~s the decisions made by the prior-art block adaptlve thresholdlng method.
Fig. 10 shows the bilevel output signal thus generated from the input image in Fig. 3.

DETAILED DESCRIPTION OF THE EMBODIMENTS
A novel image-processing apparatus embodying the present invention will be described with reference to the drawings.
Fig. 1 is a block diagram of the novel image-processing apparatus, which receives an input image comprising pixels with multiple graY levels and converts it to a bilevel output signal comprising pixels with only the two levels black and white.
The input image is stored in a gray-scale image memory 1 30 6 SL~ FC00 l l, fro~l which it is read by a maximum-minlmum detection circult 2. For each pixel in the image, the maximum-minimllm detection circuit 2 identifies the ~naximum and minimum gray levels ln a block centered on that plxel and supplles these maximum and mlnimum levels to a decislon circuit 3. The maxi~um-m~n~mum detection clrcuit 2 also passes the ima~e signal to a pair of binarizing circuits: a uniform-threshold binarizing circuit 4 and a dither-matrix binarizing circuit 5.

The decision circuit 3 calculates the difference between the maximum and minimum values obtained from the maximum-minimum detection circuit 2, decides therefrom whether each pixel is a bilevel pixel or a gray-scale pixel, and generates a control signal that controls a switch 6 according to the decision result.
The uniform-threshold binarizing circuit 4 binarizes the input image against a uniform threshold, thus generating a first bilevel signal which it sends to the switch 6.
The dither-matrix blnarizing circuit 5 binarizes the input image using a dither matrix, which may be one of the well-known dither matrices employed in the prior art. It thus generates a second bilevel signal which it sends to the switch 6.
For each pixel, the switch 6 selects either the first bilevel signal received from the uniform-threshold 13065~10 FC008 1 binarizing circuit 4 or the second bllevel signal received from the dither-matrix binarizlng circuit 5 according to the control signal received from the decision circuit 6. The selected bilevel signal becomes the bilevel output signal of the image-processing apparatus.
The decision circuit 3, the uniform-threshold binarizing circuit 4, and the dither-matrix binarizing circuit 5 have synchronizing means such as buffer memories, not shown in the drawing, for assuring that the first bilevel signal, the second bilevel signa], and the control slgnal for a given pixel arrive at the switch 6 simultaneously. The maximum-minimum detection circuit 2 also has a buffer memory for storing Pixels read from the gray-scale image memory 1.
The operation of the novel image-processing apparatus will be described with reference to Figs. 2 to 8. In these drawings the input image signal has sixteen gray levels per pixel, and the blocks tested by the maximum-minimum detection circuit 2 are three pixels by three pixels in size. The decision circuit 3 decides that a given pixel is a gray-scale pixel if the difference between the maximum and minimum values received from the maximum-minimum detection circuit 2 is less than a certain value, and a bilevel pixel if the difference is e~ual to or greater than that value.
The value in this case is the middle gray level of eight.

~306S4~ FC008 1 The un5form threshold employed by the uniform-threshold binarizlng circuit 4 is also the middle gray level of eight;
that is, gray levels less th~n eight are converted to white, and gray levels equal to or greater than eight are converted to black. The dither matrlx employed by the dither-matrix binarizing circuit 5 is a four-by-four matrix.
Fig. 2 shows the three-by-three block tested by the maximum-minimum detection circuit 2. The pixel of interest is at the center. The maximum-minimum detection circuit 2 finds the maximum and minimum gray levels occurring among nine pixels: the pixel of interest and its eight neighboring pixels.
Fig. 3 shows an example of the gray levels produced by a facsimile scanner or other scanning device at the edge of a black character on a white background. Black is represented by the gray level sixteen, and white by the gray level one. Due to integration effects in the scanner, the gray level does not change abruptly from sixteen to one, but passes through intermediate levels of fourteen and eight.
Fig. 4 shows the four-by-four dither matrix used by the dither-matrix binarizing circuit 5 to convert this gray-scale image to a bilevel signal. The matrix comprises sixteen threshold values. The same matrix is used repeatedly. Each threshold in Fig. 4 is applied to the pixel in the corresponding posltion in Fig. 3, as indicated I~C008 130~iiS~0 l by t}le ruled lLnes.
Flg. 5 shows the result of applying this d~ther matrix to the image in Fig. 3, the value 0 representing white and the value 1 black. The edge Is blurred: there are two black pixels to the left of the center line, and one white pixel to the right.
Flg. 6 shows the result of binarizing the image in Fig.
3 with a uniform threshold of elght, as is done by the uniform-threshold binarizing circult 4. This time the edge is clean.

Fig. 7 shows the results of the decisions made by the decision circuit 3 for the image in Fig. 3. The letter C
represents a bilevel pixel and the letter P a gray-scale pixel. In the first two columns in Fig. 6, the maximum and minimum values in the three-by-three blocks around each pixel are both one, so their difference is zero, hence these pixels are determined to be gray-scale pixels. In the third column the maximum-minimum dlfference is seven, which is less than eight, so these pixels are also determined to be gray-scale pixels. In the fourth column the maximum-minimum difference is thirteen, and in the fifth column it is eight;
the p~xels ir. these two columns are determined to be bilevel pixels. In the sixth through eighth columns the maximum-minimum difference is two or zero, so these pixels are determined to be gray-scale pixels.

13~65'~0 FC008 1 Fig. 8 shows l,he bilevel OlltpUt slgnal generated by the novel image-processlng apparatus from the lnput image ln Fig. 3. In the outer six columns the second bilevel signal *rom the dither-matrix binarlzing circuit 5 is selected, so in these slx columns Fig. 7 is identical to Fig. 5. In the middle two columns the first bilevel signal from the uniform-threshold binarizing circuit 4 is selected, so in these two columns Fig. 7 is Identical to Fig. 6. As a result of making these decisions for each indi~idual pixel.
the same clean edge is achleved as in Fig. 6.
It may be noted that the identification of the pixels in the outer six columns as gray-scale pixels in Fig. 7 is incorrect; all of the pixels should actually be bilevel pixels. Away from the edge, however, the pixels in Fig. 3 lS all have either the maximum or the minlmum gray level, so all will be converted to black or white correctly regardless of whether the uniform threshold or dither matrix is used.
The gray-scale/bilevel decision thus becomes irrelevant in non-edge regions. What is essential is that black-white edge pixels be identified correctly as bilevel pixels.
For comparison, Fig. 9 shows the decisions made by the prlor-art block adaptive thresholding method. In this method a single decision is made for an entire block covered by the dither matrix. In the block on the left, the maximum-minimum gray-level difference is seven: in the block 1306S~0 FC008 1 on the right It ls two. soth blocks are therefore Judged to be gray-scale blocks, and the output of the dither-matrix binarlzing circuit 5 is selected for all pixels. The output signal is therefore as shown in Flg. lo, havlng the edge blurrln~ noted in Fig. 5.
The method of converting a~ 1nput image to a bilevel output signal employed in the novel image-processing apparatus can be stated as follows. For each pixel, a block centered on that pixel is tested to find the maximum and minimum gray levels therein. ~rom these maximum and minimum values, a decision is made as to whether each pixel is a gray-scale pixel or a bilevel pixel. If it is a bilevel pixel, it is thresholded agalnst a uniform threshold. I-f it is a gray-scale pixel, it is thresholded using a dither matrix. An advantage of this method is that by making the bilevel/gray-scale decision for each pixel individually, instead of for blocks of pixels as in the prior art, it avoids blurring effects caused by the coincidence of the edge of a block with a black-white edge in the input image.
A further advantage of the novel image-processing apparatus is that since the maximum-minimum detection circuit 2 tests three-by-three blocks instead of four-by-four blocks, it does not have to store as many pixel values as in the prior art. The maximum-minimum detection circuit 2 reads the image signal from the gray-scale image memory 1 13~165'~ ~C0~8 1 a scan llne at ~ time. Efflcient computational methods require the maximum-mln~mum detection circult 2 to store the gray-level values for only two scan lines at a tilne in its buf-fer memory, while in the prior art storage of three scan lines was necessary.
A similar advantage is that slnce the gray-scale/bilevel decision is made for each pixel, the bilevel output signal can be furnished a line at a time, while in the prior art, in which the decision was made for four-by-four blocks. it was necessary to store four lines in an output buffer memory.
The scope of this invention is not restricted to the embodiment shown in the drawings, but includes manY
modifications which will be apparent to one skilled in the art. For example, the number of gray levels in the input image signal can be other than sixteen, the blocks tested by the maximum-minimum detection circuit 2 can be larger than three by three pixels in size, the threshold level employed by the uniform-threshold binarizing circuit 4 can be other than the middle gray level, and the dither matrix employed by the dither-matrix binarizing circuit 5 can be other than the one shown in Fig. 4.
The gray-scaleJbilevel decision made by the decision circuit 3 can furthermore be based not only on the difference between the maximum and minimum values in a block 13(~65 ~0 FCo08 l but also on the values themselves. For example. a rule SUC}I
as the following can be used: a pixel can be Judged to be a b~level pixel if the maxlmum-mlnimum difference in its block is greater than seven, or if the difference is equal to seven and the minimum value is one or two, or if the d~ fference is equal to six and the minlmum value Is one.

Claims (10)

WHAT IS CLAIMED IS:
1. An image-processing apparatus for converting an input image having pixels with multiple gray levels to a bilevel output signal, comprising:
a gray-scale image memory for storing said input image;
a maximum-minimum detection circuit for reading said input image from said gray-scale image memory, testing blocks centered on respective pixels of said input image, finding the maximum and minimun gray levels therein, and furnishing these maximum and minimum gray levels as output;
a decision circuit for receiving said maximum and minimum gray levels, deciding therefrom whether respective pixels are gray-scale pixels or bilevel pixels, and generating a control signal accordingly;
a uniform-threshold binarizing circuit for receiving said image read by said maximum-minimum detection circuit, thresholding it against a uniform threshold, and thereby generating a first bilevel signal;
a dither-matrix binarizing circuit for receiving said image read by said maximum-minimum detection circuit, thresholding it using a dither matrix, and thereby generating a second bilevel signal; and a switch for selecting said first bilevel signal or said second bilevel signal according to said control signal.
2. The image-processing apparatus of claim 1, wherein said decision circuit decides whether a pixel is a gray-scale pixel or bilevel pixel according to whether the difference between said maximum and minimum gray levels is less than a certain value or not.
3. The image-processing apparatus of claim 2, wherein said certain value is the middle gray level.
4. The image-processing apparatus of claim 1, wherein said uniform threshold is the middle gray level.
5. The image-processing apparatus of claim 1, wherein the size of the blocks tested by said maximum-minimum detection circuit is three pixels by three pixels.
6. A method of converting an input image having pixels with multiple gray levels to a bilevel output signal, comprising steps of:
testing blocks centered on respective pixels in said input image and finding the maximum and minimum gray levels therein;
deciding from said maximum and minimum values whether each pixel is a gray-scale pixel or a bilevel pixel;

thresholding said pixel against a uniform threshold if said pixel is decided to be a bilevel pixel; and thresholding said pixel using a dither matrix if said pixel is decided to be a gray-scale pixel.
7. The method of claim 6, wherein a pixel is decided to be gray-scale or bilevel according to whether the difference between said maximum and minimum values is less than a certain value or not.
8. The method of claim 7, wherein said certain value is the middle gray level.
9. The method of claim 6, wherein said uniform threshold is the middle gray level.
10. The method of claim 6, wherein the size of the blocks tested is three pixels by three pixels.
CA000600294A 1988-05-23 1989-05-19 Image-processing apparatus Expired - Lifetime CA1306540C (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP126108/88 1988-05-23
JP63126108A JPH01295570A (en) 1988-05-23 1988-05-23 Picture processing device

Publications (1)

Publication Number Publication Date
CA1306540C true CA1306540C (en) 1992-08-18

Family

ID=14926819

Family Applications (1)

Application Number Title Priority Date Filing Date
CA000600294A Expired - Lifetime CA1306540C (en) 1988-05-23 1989-05-19 Image-processing apparatus

Country Status (6)

Country Link
US (1) US4996602A (en)
EP (1) EP0343927A3 (en)
JP (1) JPH01295570A (en)
KR (1) KR920001798B1 (en)
AU (1) AU609299B2 (en)
CA (1) CA1306540C (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5315405A (en) * 1989-08-29 1994-05-24 Mutoh Industries Ltd. Binary circuit of scanner read image data
DE69032400T2 (en) * 1989-10-10 1999-02-18 Unisys Corp IMAGE DATA PROCESSING SYSTEM AND METHOD
US5140444A (en) * 1989-10-10 1992-08-18 Unisys Corporation Image data processor
JP2707355B2 (en) * 1990-04-19 1998-01-28 富士写真フイルム株式会社 Image recording position recognition device
DE4038056C2 (en) * 1990-11-29 1997-05-15 Hell Ag Linotype Process for the generation and storage of digitized density threshold values for screening a halftone image
JP2871127B2 (en) * 1991-01-30 1999-03-17 三菱電機株式会社 Image processing apparatus and method
US5337167A (en) * 1991-04-03 1994-08-09 Matsushita Electric Industrial Co., Ltd. Halftone image forming apparatus including density based dot enlargement
US5379130A (en) * 1992-12-02 1995-01-03 Industrial Technology Research Institute Text/image separation method
US6411737B2 (en) 1997-12-19 2002-06-25 Ncr Corporation Method of selecting one of a plurality of binarization programs
US6393150B1 (en) * 1998-12-04 2002-05-21 Eastman Kodak Company Region-based image binarization system
US8351720B2 (en) * 2008-04-24 2013-01-08 Hewlett-Packard Development Company, L.P. Method and system providing edge enhanced image binarization

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5537092A (en) * 1978-09-05 1980-03-14 Ibm Mode switch for setting threshold value
GB2089293B (en) * 1980-11-28 1985-05-15 Wright John Owen Stowable trailer
US4554593A (en) * 1981-01-02 1985-11-19 International Business Machines Corporation Universal thresholder/discriminator
US4478514A (en) * 1983-02-22 1984-10-23 Ingrid Hudelmaier Vibrating concrete mixer
JPS59223073A (en) * 1983-06-01 1984-12-14 Canon Inc Picture processor
US4709274A (en) * 1983-08-29 1987-11-24 Canon Kabushiki Kaisha Image processing apparatus
US4591727A (en) * 1983-11-14 1986-05-27 International Business Machines Corporation Solid state scanner for a variable speed transport
US4723173A (en) * 1984-05-31 1988-02-02 Canon Kabushiki Kaisha Image processing apparatus
JPS6180958A (en) * 1984-09-28 1986-04-24 Fuji Xerox Co Ltd Picture signal processing method
JPS6191772A (en) * 1984-10-11 1986-05-09 Canon Inc Picture processor
GB2170372B (en) * 1984-12-28 1989-04-19 Canon Kk Image processing apparatus
DE3686821T2 (en) * 1985-01-10 1993-04-01 Nippon Telegraph & Telephone HALFTONE IMAGE PROCESSING DEVICE.
JPH0773336B2 (en) * 1985-01-21 1995-08-02 キヤノン株式会社 Image processing device
US4723298A (en) * 1985-03-27 1988-02-02 Fingermatrix, Inc. Image compression technique
US4742399A (en) * 1985-11-01 1988-05-03 Dainippon Screen Mfg. Co., Ltd. Method of and apparatus for generating high-resolution bilevel image data

Also Published As

Publication number Publication date
KR890017932A (en) 1989-12-18
KR920001798B1 (en) 1992-03-02
EP0343927A2 (en) 1989-11-29
EP0343927A3 (en) 1991-09-25
AU3504289A (en) 1989-11-23
US4996602A (en) 1991-02-26
JPH01295570A (en) 1989-11-29
AU609299B2 (en) 1991-04-26

Similar Documents

Publication Publication Date Title
US4996603A (en) Image processing system
US5016118A (en) Image determining method and apparatus
JPH0865515A (en) Error diffusion method and error diffusion system and multilevel pixel binary method
JPS5810966A (en) Method of determining optimum threshold value for processing threshold of image element and adaptive threshold processor
US4850029A (en) Adaptive threshold circuit for image processing
CA1306540C (en) Image-processing apparatus
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
JPH02100575A (en) Picture processor
US5452107A (en) Image processing apparatus providing a bilevel image signal by changing binarization threshold value based on densities of original image areas incuding target pixel and less than all surrounding pixels
US4408343A (en) Image enhancement for optical character readers
EP0630149A1 (en) Method and apparatus for image processing
EP0870276B1 (en) A method for transforming a gray-level image into a black-and-white image
KR100213472B1 (en) Image data processing device
EP0195925B1 (en) Method for converting image gray levels
CA2215555C (en) Image processing device
JP3451490B2 (en) Image information processing method
JP3358133B2 (en) Image processing device
KR100229028B1 (en) Binarization method based on continuity
JP3291101B2 (en) Image processing device
JPS6335071A (en) Variable power method
JPH05284358A (en) Picture processing unit
JPS60149260A (en) Binary coding circuit of picture information
JP3146517B2 (en) Image processing device
JPS6253074A (en) Picture processor
JPH06290267A (en) Image processor

Legal Events

Date Code Title Description
MKLA Lapsed
MKEC Expiry (correction)
MKEC Expiry (correction)

Effective date: 20121205