JPH10126613A - Image processor - Google Patents

Image processor

Info

Publication number
JPH10126613A
JPH10126613A JP8273505A JP27350596A JPH10126613A JP H10126613 A JPH10126613 A JP H10126613A JP 8273505 A JP8273505 A JP 8273505A JP 27350596 A JP27350596 A JP 27350596A JP H10126613 A JPH10126613 A JP H10126613A
Authority
JP
Japan
Prior art keywords
image data
pixel
pattern
image
value
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.)
Pending
Application number
JP8273505A
Other languages
Japanese (ja)
Inventor
Hiromi Okubo
宏美 大久保
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP8273505A priority Critical patent/JPH10126613A/en
Publication of JPH10126613A publication Critical patent/JPH10126613A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

PROBLEM TO BE SOLVED: To improve the image quality by not only smoothing edges of a character line drawing or the like but also enhancing granuality of a gradation image such as a photograph in the case of applying multi-value processing to binary image data. SOLUTION: A pattern detection means 31 that receives binary image data D compares a 2-dimension arrangement pattern for a noted picture element and its surrounding picture elements with various preset patterns for each noted picture element so as to discriminate whether or not they are in matching with each other and provides an output of a pattern code P to a code conversion means 32 when the matching is detected. The code conversion means 32 applies M-value processing (M>2) to the binary image data depending on the pattern code P, decides an area of black picture elements in one picture element and decides phase information within a same picture element of the black picture element and provides an output of the information as multi-value image data D'.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】この発明は、デジタル複写
機、ファクシミリ装置、イメージスキャナ、画像ファイ
リング装置等の画像形成装置あるいは画像表示装置に使
用される画像処理装置に関し、より詳細には、入力され
た2値画像データを多値画像データに変換して画像品質
を向上させるための多値化手段を備えた画像処理装置に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus used in an image forming apparatus such as a digital copying machine, a facsimile apparatus, an image scanner, an image filing apparatus or an image display apparatus. The present invention relates to an image processing apparatus provided with a multi-level converting means for converting binary image data into multi-level image data to improve image quality.

【0002】[0002]

【従来の技術】上述のような画像形成装置あるいは画像
表示装置においては、文字コードデータをフォントデー
タを用いて変換した文字イメージデータ、あるいはイメ
ージスキャナ等によって読み取られた画像イメージデー
タを量子化して、メモリ(RAM)上のビデオメモリ領
域に2値データでビットマップ状(ドットマトリクス
状)に展開し、それを順次読み出してビデオデータとし
て画像形成部へ送出して記録紙に画像を形成したり、あ
るいはディスプレイへ送出して画面に表示したりするよ
うになっている。
2. Description of the Related Art In an image forming apparatus or an image display apparatus as described above, character image data obtained by converting character code data using font data or image image data read by an image scanner or the like is quantized. A binary data is developed in a bit map form (dot matrix form) in a video memory area on a memory (RAM), sequentially read out and sent to an image forming section as video data to form an image on a recording paper, Alternatively, it is sent to a display and displayed on a screen.

【0003】この場合、画像形成対象がアナログ像であ
ればどの方向へも連続し得るが、それを2値化して展開
したデジタルのビットマップ像は、ドットマトリクスの
直交する方向に1ドット単位でステップ状にしか方向を
変えられないため、形成画像にゆがみを生じることにな
る。そのため、ドットマトリクスの直交する方向に対し
て傾斜した直線や滑らかな曲線が階段状に形成されるジ
ャギーが生じ、文字や線画(特に輪郭線)をオリジナル
の画像と同じかそれに近く形成するのが困難であった。
In this case, if the image forming object is an analog image, the image can be continuous in any direction. However, a digital bitmap image obtained by binarizing the image and developing it is one dot unit in a direction orthogonal to the dot matrix. Since the direction can be changed only in a step shape, the formed image is distorted. As a result, jaggies occur in which straight lines and smooth curves that are inclined with respect to the direction orthogonal to the dot matrix are formed stepwise, and characters and line drawings (especially contour lines) are formed at or near the original image. It was difficult.

【0004】この問題を改善する有効な手段としてはビ
ットマップ像の解像度を高めることであるが、例えば解
像度を2倍にすると4倍のメモリ容量と4倍のデータ処
理能力が必要になるため、大幅なコストアップになる。
そのため、メモリ容量をあまり増加せず、データ処理速
度も速めずにジャギー等の画像のゆがみを少なくする方
法も種々提案されている。
An effective means for solving this problem is to increase the resolution of the bitmap image. For example, doubling the resolution requires four times the memory capacity and four times the data processing capacity. Significant cost increase.
For this reason, various methods have been proposed for reducing image distortion such as jaggies without increasing the memory capacity or increasing the data processing speed.

【0005】その一例として、特開平5−207282
号公報に見られるように、文字線画の黒ドット領域と白
ドット領域の境界部分であるエッジ部を検出して、補正
が必要なドット(画素)の大きさあるいは位相を補正し
て、斜め線等の滑らかさを向上することが既に提案され
ている。
As one example, Japanese Patent Application Laid-Open No. 5-207282
As disclosed in Japanese Unexamined Patent Application Publication No. H11-157, an edge portion which is a boundary portion between a black dot region and a white dot region of a character line drawing is detected, and the size or phase of a dot (pixel) requiring correction is corrected. Improving the smoothness has been already proposed.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、このよ
うな従来の補正方法では、2値画像の文字線画における
斜め線を滑らかにすることはできるが、2値化された絵
柄や写真領域に対しては何の処理をも施さないため、階
調画像部での画質向上は望めなかった。この発明は、上
記の課題に鑑みてなされたものであり、写真等の階調画
像部での粒状性を向上することを第1の目的とし、それ
に加えて文字線画等のエッジを滑らかにすることも目的
とする。
However, according to such a conventional correction method, it is possible to smooth the diagonal lines in the character and line drawing of the binary image, but it is not suitable for the binarized pattern or photographic area. Since no processing is performed, no improvement in image quality in the gradation image portion could be expected. SUMMARY OF THE INVENTION The present invention has been made in view of the above problems, and has as its first object to improve graininess in a gradation image portion of a photograph and the like, and in addition, to smooth edges of a character line drawing and the like. The purpose is also.

【0007】[0007]

【課題を解決するための手段】この発明は、2値画像デ
ータを多値画像データに変換する多値化処理手段を備え
た画像処理装置において、上記の目的を達成するため、
その多値化処理手段が、2値画像データをM値化(M>
2)する手段と、同一画素内(1ドットのエリア内)で
の位相情報を出力する位相情報出力手段とを有するもの
である。これによって、文字線画等のエッジを滑らかに
すると共に、写真等の階調画像部での粒状性を向上する
ことができる。
According to the present invention, there is provided an image processing apparatus having a multi-value processing means for converting binary image data into multi-value image data.
The multi-value processing means converts the binary image data to M-value (M>
2) and phase information output means for outputting phase information within the same pixel (within one dot area). This makes it possible to smooth the edges of the character and line drawing and the like, and to improve the graininess in a gradation image portion such as a photograph.

【0008】さらに、上記多値化処理手段は、2値画像
データの各注目画素毎に、該注目画素とその周辺画素の
2次元配置のパータンを検出するパターン検出手段を有
し、上記位相情報出力手段が、該パターン検出手段の検
出結果に応じて該注目画素をM値化した各画素の位相を
決定してその位相情報を出力するようにするとよい。こ
れにより、写真等の階調画像部での粒状性を一層適切に
向上することができる。
Further, the multi-value processing means has pattern detection means for detecting, for each target pixel of the binary image data, a pattern of a two-dimensional arrangement of the target pixel and its peripheral pixels, The output means may determine the phase of each pixel obtained by converting the pixel of interest into an M-value in accordance with the detection result of the pattern detection means, and output the phase information. Thereby, the graininess in a gradation image portion such as a photograph can be more appropriately improved.

【0009】また、上記多値化処理手段が、2値画像デ
ータの線分形状を検出する手段と、該手段によってドッ
トマトリクスの直交する方向に対して傾斜した線分形状
が検出されたときには、該線分を構成する各画素の位相
をその傾斜角度に応じてずらす手段とを有するとよい。
これにより、文字線画等のエッジを滑らかにする処理が
一層適切になされる。
The multi-value processing means may include means for detecting a line segment shape of the binary image data, and when the means detects a line segment shape inclined with respect to a direction orthogonal to the dot matrix, Means may be provided for shifting the phase of each pixel constituting the line segment in accordance with the inclination angle.
As a result, the processing for smoothing the edges of the character and line drawing is more appropriately performed.

【0010】[0010]

【発明の実施の形態】以下この発明の実施の形態を図面
に基づいて説明する。図2はこの発明による画像処理装
置をデジタル複写機に適用した場合の例を示すブロック
構成図である。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 2 is a block diagram showing an example in which the image processing apparatus according to the present invention is applied to a digital copying machine.

【0011】図2において、1はスキャナ部のCCDイ
メージセンサ(ラインセンサあるいは二次元センサ)で
あり、コンタクトガラス上にセットされた原稿の画像を
読み取って光電変換する。このCCDイメージセンサ1
によって電気信号に変換された画像信号をA/D変換器
2によって量子化してデジタル信号に変換し、シェーデ
ィング補正手段3によってCCDイメージセンサ1の個
々の画素の光感度のばらつきを補正する。
In FIG. 2, reference numeral 1 denotes a CCD image sensor (line sensor or two-dimensional sensor) of a scanner section, which reads an image of a document set on a contact glass and performs photoelectric conversion. This CCD image sensor 1
The A / D converter 2 quantizes the image signal converted into an electric signal by the A / D converter 2 and converts the quantized signal into a digital signal. The shading correction unit 3 corrects a variation in light sensitivity of each pixel of the CCD image sensor 1.

【0012】そして、フィルタ処理手段4によって入力
画像信号の周波数劣化を補正し、変倍手段5によって、
指定した変倍率に合わせて主走査方向の画素を拡大/縮
小する。さらに、ガンマ補正手段6によって入力画像信
号のガンマ特性を出力のガンマ特性に変換し、階調処理
手段7によって画像モードにより画像出力機器(画像形
成部)15に合わせて最適な階調処理を行ない、2値画
像データA又は多値画像データBを出力する。
Then, the frequency degradation of the input image signal is corrected by the filter processing means 4, and
Pixels in the main scanning direction are enlarged / reduced in accordance with the designated magnification. Further, the gamma correction unit 6 converts the gamma characteristic of the input image signal into the output gamma characteristic, and the gradation processing unit 7 performs optimal gradation processing in the image mode according to the image output device (image forming unit) 15. And outputs binary image data A or multi-valued image data B.

【0013】そのうち2値画像データAは、圧縮/伸長
手段8によってデータ圧縮して、ハードディスク装置,
フロッピディスク装置等の外部記憶手段9に格納して記
憶させておくことができる。その記憶させた圧縮画像デ
ータを出力する際には、外部記憶手段9からその圧縮画
像データを読み出して、圧縮/伸長手段8によって伸長
して元の2値画像データに復元する。このようにするこ
とにより、外部記憶手段9の記憶容量をあまり大きくせ
ずに、沢山の画像データを記憶させることができる。
The binary image data A is data-compressed by the compression / decompression means 8, and the compressed
It can be stored and stored in the external storage means 9 such as a floppy disk device. When outputting the stored compressed image data, the compressed image data is read from the external storage means 9 and decompressed by the compression / decompression means 8 to restore the original binary image data. In this way, a large amount of image data can be stored without increasing the storage capacity of the external storage unit 9 too much.

【0014】セレクタ11は、圧縮/伸長手段8によっ
て復元された2値画像データAと外部インタフェース
(I/F)10から入力する2値画像データEのいずれ
を後段に伝えるかを、セレクタ12は、階調処理手段7
からの多値画像データBと外部インタフェース10から
の多値画像データFのいずれを後段に伝えるかを、それ
ぞれシステムコントローラ16からの選択信号により切
り替える役目をなす。
The selector 11 determines which of the binary image data A restored by the compression / expansion means 8 and the binary image data E input from the external interface (I / F) 10 is to be transmitted to the subsequent stage. , Gradation processing means 7
And the multi-valued image data F from the external interface 10 are transmitted to the subsequent stage by a selection signal from the system controller 16, respectively.

【0015】セレクタ11によって選択されて出力され
る2値画像データDは、多値化処理手段13によって多
値化してセレクタ14の一方の入力とし、セレクタ12
によって選択されて出力される多値画像データGは、セ
レクタ14の他方の入力になる。したがって、このセレ
クタ14がシステムコントローラ16からの選択信号に
より、いずれか一方の多値画像データを選択して画像出
力器(画像形成部)へ送り、そこで用紙に画像を形成す
る。ここで、多値化処理手段13がこの発明に係る部分
である。
The binary image data D selected and output by the selector 11 is multi-valued by a multi-value processing means 13 and used as one input of a selector 14.
The multivalued image data G selected and output by the selector 14 becomes the other input of the selector 14. Therefore, the selector 14 selects one of the multivalued image data according to the selection signal from the system controller 16 and sends it to an image output unit (image forming unit), where an image is formed on a sheet. Here, the multi-value processing means 13 is a part according to the present invention.

【0016】図3は、図2における階調処理手段7の一
例を示すブロック構成図である。この階調処理手段7
は、入力した多値の原画像データ(8bit)に対して、誤
差演算/2値化手段21によって誤差拡散法により2値
化した1bit の出力データAと、入力した原画像データ
に何も処理を施さずに8bit の出力データBとを出力す
る。
FIG. 3 is a block diagram showing an example of the gradation processing means 7 in FIG. This gradation processing means 7
Is a 1-bit output data A obtained by binarizing the input multi-valued original image data (8 bits) by the error calculation / binarization means 21 by the error diffusion method, and performs no processing on the input original image data. And outputs 8-bit output data B without performing.

【0017】誤差演算/2値化手段21による各画素の
2値化により生じた誤差は、FIFOメモリ22に格納
され、誤差マトリクス23の係数を誤差合計手段24に
よって積和演算をした後、誤差演算/2値化手段21に
おいて出力データが算出される。ここで生じた誤差は、
次のタイミングにおいて誤差マトリクス23の係数との
積和演算に使用するとともに、FIFOメモリ22に格
納される。
The error generated by the binarization of each pixel by the error calculation / binarization means 21 is stored in a FIFO memory 22. After the coefficients of the error matrix 23 are multiplied by the error summing means 24, the error sum is calculated. Output data is calculated by the arithmetic / binarization means 21. The error that occurs here is
At the next timing, it is used for the product-sum operation with the coefficient of the error matrix 23 and stored in the FIFO memory 22.

【0018】図1は、図2におけるこの発明に係る多値
化処理手段13の第1の構成例を示すブロック図であ
る。この多値化処理手段13は、パターン検出手段31
とコード変換手段32とからなる。図2のセレクタ11
から出力される2値画像データDを入力して、パターン
検出手段31により、2値画像データの各注目画素毎に
該注目画素とその周辺画素の2次元配置のパータンを、
予め設定した各種パターンと比較して一致するか否かを
判別し、一致を検出したらそのパターンコードPをコー
ド変換手段32へ出力する。
FIG. 1 is a block diagram showing a first example of the configuration of the multi-value processing means 13 according to the present invention in FIG. The multi-value processing means 13 includes a pattern detection means 31
And code conversion means 32. Selector 11 of FIG.
The binary image data D output from the above is input, and the pattern detection unit 31 determines the pattern of the two-dimensional arrangement of the target pixel and its surrounding pixels for each target pixel of the binary image data,
A comparison is made with various types of patterns set in advance to determine whether or not they match, and when a match is detected, the pattern code P is output to the code conversion means 32.

【0019】そのため、パターン検出手段31は、入力
する2値画像データを2次元的に記憶できるメモリと、
それと比較する各種パターンを記憶したメモリと、入力
された2値画像データの注目画素を中心とする所定範囲
のビットパターンを予め記憶した各種パターンと比較し
て一致するか否かを判別するCPU等を有する。
Therefore, the pattern detecting means 31 includes a memory capable of storing the input binary image data two-dimensionally,
A memory for storing various patterns to be compared with the memory, a CPU for comparing a bit pattern in a predetermined range around the pixel of interest of the input binary image data with the previously stored various patterns to determine whether or not they match each other. Having.

【0020】コード変換手段32は、そのパターンコー
ドPに応じて、その2値画像データをM値化(M>2)
して1画素内の黒画素の面積を決定すると共に、その黒
画素部分の同一画素内(1ドットのエリア内)での位相
情報も決定する。そして、これらの情報を多値画像デー
タD′として出力する。すなわち、このコード変換手段
32が、2値画像データをM値化(M>2)する手段
と、同一画素内での位相情報を出力する位相情報出力手
段とを兼ねている。
The code conversion means 32 converts the binary image data into an M-value (M> 2) according to the pattern code P.
Then, the area of the black pixel in one pixel is determined, and the phase information in the same pixel (in the area of one dot) of the black pixel portion is also determined. Then, such information is output as multi-valued image data D '. That is, the code conversion unit 32 serves both as a unit that converts the binary image data into an M-value (M> 2) and a phase information output unit that outputs the phase information in the same pixel.

【0021】このコード変換手段32は、予め作成して
記憶させた変換テーブル(ルックアップテーブル)をパ
ターンコードPによってルックアップするようにしたも
のでもよいし、注目画素毎に検出されたパターンに応じ
て画素面積と位相情報を計算して求めるようにしたもの
でもよい。
The code conversion means 32 may look up a conversion table (look-up table) created and stored in advance by using a pattern code P, or may convert the conversion table (look-up table) according to a pattern detected for each pixel of interest. Alternatively, the pixel area and the phase information may be calculated and obtained.

【0022】図4に、パターン検出手段31によって検
出するパターンの例(左側)と、その各パターンの2値
画像データをコード変換手段32によって変換した、対
応する多値画像データのパターン(右側)の例を示して
いる。(a)〜(e)は5×3ドットの2次元領域、(f)は
5×5ドットの2次元領域の画像をパターン判別対象と
し、それぞれ中央のドットが注目画素である。
FIG. 4 shows an example of a pattern detected by the pattern detecting means 31 (left side) and a corresponding multi-valued image data pattern obtained by converting the binary image data of each pattern by the code converting means 32 (right side). Is shown. (a) to (e) show an image of a two-dimensional area of 5 × 3 dots, and (f) shows an image of a two-dimensional area of 5 × 5 dots, where the center dot is the target pixel.

【0023】この例では、写真等の階調画像(ハーフト
ーン画像)と見做される図4(a)〜(c)の左側に示すよ
うな、孤立した1ドット又は2ドットの黒画素が存在す
るパターンの場合には、その右側に示すように、黒画素
の面積を1画素の面積の1/2ずつの2つの画素に分割
し、且つその各黒画素部分の1画素内の位相を、中央
部,左半部,右半部の3位置から決定する。
In this example, as shown on the left side of FIGS. 4A to 4C, an isolated black pixel of one dot or two dots is regarded as a gradation image (halftone image) of a photograph or the like. In the case of an existing pattern, as shown on the right side, the area of a black pixel is divided into two pixels each having a half of the area of one pixel, and the phase within one pixel of each black pixel portion is changed. , The center, the left half, and the right half.

【0024】画素面積を例えば、0画素分:00 1/
2画素分:01 1画素分:11のように3値化し、そ
の1画素内の位相情報を例えば、右半部:01 中央
部:11 左半部:10 のように3値の情報として付
加する。それによって、変換された多値画像データは
“0110”“0101”のように4bit データにな
る。しかし、もっと細かく多値化して、8bit データや
16bit データに変換することもできる。図4の(d)〜
(f)の左側に示すようなパターンの場合には、文字線画
と見做されるので、画像のパターンは変更しないが、黒
の1画素を“1”から“1111”のように4bit に変
換する。
The pixel area is, for example, 0 pixels: 001 /
Two pixels: 01 One pixel: 11 is ternary, and the phase information in one pixel is added as ternary information, for example, right half: 01, center: 11, left half: 10 I do. As a result, the converted multi-valued image data becomes 4-bit data such as "0110" or "0101". However, it is also possible to convert the data into 8-bit data or 16-bit data by finer multi-value conversion. (D) of FIG.
In the case of the pattern shown on the left side of (f), since it is regarded as a character line drawing, the pattern of the image is not changed, but one black pixel is converted into 4 bits from "1" to "1111". I do.

【0025】ここで、黒画素描画における位相(画素内
での描画位置)についてさらに説明する。図4の(a)は
ハーフトーンのハイライト部で、5×3画素の窓内に黒
画素が1画素のみ存在する場合であり、その右側に示す
ように1/2の濃度(画素面積)のドットの2画素に分け
て描画する。ここで、位相は左側の画素は左位相で、右
側の画素は右位相とすることにより、2画素間の距離を
最大になるようにする。この分割された2画素の多値画
像データは、例えば“0110”“0101”となる。
Here, the phase (drawing position within a pixel) in black pixel drawing will be further described. FIG. 4A shows a halftone highlight portion in which only one black pixel is present in a 5 × 3 pixel window. As shown on the right side, half the density (pixel area) is shown. Are drawn in two pixels. Here, the phase of the left pixel is the left phase, and the right pixel is the right phase, so that the distance between the two pixels is maximized. The multi-valued image data of the divided two pixels is, for example, “0110” “0101”.

【0026】次に、図4の(b)に示すように、5×3画
素の窓内に黒画素が1画素ずつ離れて2画素のみ存在す
る場合は、その右側に示すように1/2の濃度(画素面
積)のドットの4画素に分けて描画する。ここで、位相
は右端の画素が右位相、間の2画素が中央位相、左端の
画素を左位相として描画する。こうすることにより黒画
素間の距離を均等にする。
Next, as shown in FIG. 4 (b), when only two black pixels are separated by one pixel within a 5 × 3 pixel window, as shown on the right side thereof, The image is divided into four pixels of a dot having a density (pixel area). Here, as for the phase, the rightmost pixel is drawn as the right phase, two pixels between them are drawn as the center phase, and the leftmost pixel is drawn as the left phase. By doing so, the distance between the black pixels is equalized.

【0027】図4の(c)に示すように、5×3画素の窓
内に黒画素が2画素横に並んで存在する場合は、その右
側に示すように1/2の濃度(画素面積)のドットの2画
素とその間に2/2の濃度のドットの3画素にして描画
する。ここで、位相は右端の画素が右位相、間の1画素
が中央位相、左端の画素を左位相として描画する。こう
することにより黒画素間の距離を均等にする。このよう
に、この実施形態により写真等の階調画像部での粒状性
を向上することができる。
As shown in FIG. 4C, when two black pixels are arranged side by side in a 5 × 3 pixel window, a half density (pixel area) ) Are drawn with 2 pixels of dots and 3 pixels of dots of 2/2 density between them. Here, as for the phase, the rightmost pixel is drawn as the right phase, one pixel in between is drawn as the center phase, and the leftmost pixel is drawn as the left phase. By doing so, the distance between the black pixels is equalized. As described above, according to this embodiment, it is possible to improve the graininess in a gradation image portion such as a photograph.

【0028】次に、この発明に係る多値化手段の第2の
構成例を図5によって説明する。図5は、図2における
多値化処理手段13の第2の構成例を示すブロック図で
ある。この多値化手段13は、図1に示した多値化手段
と同様なパターン検出手段31′と第1のコード変換手
段32′に加えて、線分形状検出手段33と第二のコー
ド変換手段34および第三のコード変換手段35と、セ
レクタ36とによって構成されている。
Next, a second example of the configuration of the multi-value generating means according to the present invention will be described with reference to FIG. FIG. 5 is a block diagram showing a second configuration example of the multi-value processing means 13 in FIG. The multi-level converting means 13 includes a line shape detecting means 33 and a second code converting means in addition to a pattern detecting means 31 'and a first code converting means 32' similar to the multi-level converting means shown in FIG. It comprises means 34, third code conversion means 35, and selector 36.

【0029】この多値化手段13は、図2のセレクタ1
1から入力する2値画像データDの画像が、写真等のハ
ーフトーンであるか文字線画等の斜め線かそれら以外か
によって、異なる多値化処理を行なうようにしたもので
ある。
The multi-value conversion means 13 is provided by the selector 1 shown in FIG.
Different multivalue processing is performed depending on whether the image of the binary image data D input from 1 is a halftone such as a photograph, a diagonal line such as a character line drawing or the like.

【0030】パターン検出手段31′は、図1のパター
ン検出手段31と同様に、入力される2値画像データD
の各注目画素毎に、該注目画素とその周辺画素の2次元
配置のパータンを予め設定した各種パターン(この場合
はハーフトーン画像のパターン)と比較して一致するか
否かを判別し、一致を検出したらそのパターンコードP
aを第一のコード変換手段32′へ出力する。さらに、
いずれかのパターンとの一致を検出したときには、セレ
クタ36に対して出力するハーフトーン検出信号S1を
「ON」にする。いずれのパターンとの一致も検出でき
ないときは、このハーフトーン検出信号S1は「OF
F」である。
The pattern detecting means 31 ', like the pattern detecting means 31 shown in FIG.
For each pixel of interest, the pattern of the two-dimensional arrangement of the pixel of interest and its surrounding pixels is compared with various preset patterns (in this case, a pattern of a halftone image) to determine whether or not they match, Is detected, the pattern code P
a is output to the first code conversion means 32 '. further,
When a match with any of the patterns is detected, the halftone detection signal S1 output to the selector 36 is turned “ON”. When a match with any of the patterns cannot be detected, the halftone detection signal S1 is "OF".
F ".

【0031】第一のコード変換手段32′は、図1のコ
ード変換手段32と同様に、パターン検出手段31′か
ら出力されるパターンコードPaに応じて、その2値画
像データをM値化(M>2)して1画素内の黒画素の面
積を決定すると共に、その黒画素部分の同一画素内での
位相情報も決定し、それらの情報を多値画像データD1
として出力し、セレクタ36に入力させる。
The first code conversion means 32 'converts the binary image data into M-valued data according to the pattern code Pa output from the pattern detection means 31', similarly to the code conversion means 32 of FIG. M> 2) to determine the area of the black pixel in one pixel, and also determine the phase information of the black pixel portion in the same pixel, and use that information as multi-valued image data D1.
And outputs it to the selector 36.

【0032】線分形状検出手段33は、パターン検出手
段31,31′と同様に、入力する2値画像データを2
次元的に記憶するメモリと、予め各種の線分形状の画像
パターンを記憶したメモリと、それらを比較して一致/
不一致を判別するCPU等からなる。
The line segment shape detecting means 33 converts the input binary image data into two in the same manner as the pattern detecting means 31 and 31 '.
A memory that stores two-dimensionally, a memory that previously stores various line-segment image patterns,
It is composed of a CPU or the like for determining mismatch.

【0033】そして、入力される2値画像データDの各
注目画素毎に、該注目画素とその周辺画素の2次元配置
のパータンを予め設定した各種パターン(この場合は文
字線画等の斜め線のパターン)と比較して一致するか否
かを判別し、一致を検出したらその傾斜角度の情報を含
むパターンコードPbを第二のコード変換手段34へ出
力する。さらに、いずれかのパターンとの一致を検出し
たとき、すなわち斜め線を検出したときには、セレクタ
36に対して出力する斜め線検出信号S2を「ON」に
する。
Then, for each pixel of interest of the input binary image data D, various patterns in which the pattern of the two-dimensional arrangement of the pixel of interest and its surrounding pixels are set in advance (in this case, an oblique line such as a character line drawing). The pattern code Pb including the information of the inclination angle is output to the second code conversion means 34 when the match is detected. Further, when a match with any of the patterns is detected, that is, when a diagonal line is detected, the diagonal line detection signal S2 output to the selector 36 is turned “ON”.

【0034】いずれのパターンとの一致も検出できない
とき、すなわち斜め線を検出できないときは、斜め線検
出信号S2は「OFF」である。ここで、「斜め線」と
は、図5に示すようなドットマトリクスの直交する方向
に対して傾斜した線分形状を云う。なお、曲線の場合も
小部分を見れば斜め線と見做されるので、ここでは斜め
線に含める。
When a match with any of the patterns cannot be detected, that is, when a diagonal line cannot be detected, the diagonal line detection signal S2 is "OFF". Here, the “oblique line” refers to a line segment shape that is inclined with respect to the direction orthogonal to the dot matrix as shown in FIG. In the case of a curved line, a small portion is regarded as an oblique line, and is included in the oblique line here.

【0035】第二のコード変換手段34は、線分形状検
出手段33から斜め線の傾斜角度の情報を含むパターン
コードPbが入力されると、その線分を構成する各画素
の位相をその傾斜角度に応じてずらすように、画素面積
と位相情報を決定し、それを多値画像データD2として
出力し、セレクタ36に入力させる。
When the pattern code Pb including the information of the inclination angle of the oblique line is input from the line segment shape detecting means 33, the second code conversion means 34 changes the phase of each pixel constituting the line segment to the inclination. The pixel area and the phase information are determined so as to be shifted according to the angle, and the determined information is output as multi-valued image data D2 and input to the selector 36.

【0036】例えば、入力した2値画像データが図6の
(a)に示す斜め線のパターンであった場合、線分形状検
出手段33がそれを検出してその傾斜情報(2/1)を
含むパターンコードPbを第二のコード変換手段34へ
送る。第二のコード変換手段34は、その画像のパター
ンを同図の(b)に示すように変換するように、各画素の
1ドット(図では小さな正方形で示している)内での画
素面積とその位置を示す位相情報を、多値画像データD
2として出力する。これによって、文字線画等のエッジ
を滑らかにすることができ。
For example, the input binary image data is
In the case of the oblique line pattern shown in FIG. 9A, the line segment shape detecting means 33 detects the pattern and sends a pattern code Pb including the inclination information (2/1) to the second code converting means. The second code conversion means 34 converts the pixel area within one dot (shown by a small square in the figure) of each pixel so as to convert the image pattern as shown in FIG. The phase information indicating the position is represented by multi-valued image data D
Output as 2. This makes it possible to smooth edges of character and line drawings.

【0037】第三のコード変換手段35は、入力する2
値画像データのパターンは変更せずに、そのデータを多
値画像データD1,D2と同じビット数のデータに変換
して出力する。例えば、入力する2値画像データが図4
の(d)〜(e)に示したようなパターンの場合、その黒画
素“1”は“1111”に、白画素“0”は“000
0”のように変換して、多値画像データD3として出力
する。
The third code conversion means 35 receives the input 2
Without changing the pattern of the value image data, the data is converted into data having the same number of bits as the multivalued image data D1 and D2, and output. For example, the binary image data to be input is shown in FIG.
In the case of the patterns shown in (d) to (e), the black pixel “1” is “1111” and the white pixel “0” is “000”.
The data is converted as "0" and output as multi-valued image data D3.

【0038】セレクタ36は、各コード変換手段からの
多値画像データD1,D2,D3と、パターン検出手段
31′からのハーフトーン検出信号S1および線分形状
検出手段33からの斜め線検出信号S2を入力して、表
1に示すように、ハーフトーン検出信号S1と斜め線検
出信号S2の「ON」と「OFF」の組み合わせによっ
て、多値画像データD1,D2,D3のいずれかを選択
して多値画像データD′として出力する。
The selector 36 is provided with multivalued image data D1, D2 and D3 from each code conversion means, a halftone detection signal S1 from the pattern detection means 31 'and an oblique line detection signal S2 from the line shape detection means 33. And selects one of the multi-valued image data D1, D2 and D3 according to the combination of “ON” and “OFF” of the halftone detection signal S1 and the oblique line detection signal S2 as shown in Table 1. Output as multi-valued image data D '.

【0039】[0039]

【表1】 [Table 1]

【0040】すなわち、ハーフトーンが検出されて斜め
線が検出されない場合は第一のコード変換手段からの多
値画像データD1を、斜め線が検出されたハーフトーン
が検出されない場合は第二のコード変換手段からの多値
画像データD2を、ハーフトーンと斜め線の両方が検出
されるか両方共検出されない場合は第三のコード変換手
段からの多値画像データD3を選択して出力する。
That is, the multi-valued image data D1 from the first code conversion means is used when the halftone is detected and no oblique line is detected, and the second code is used when the halftone where the oblique line is detected is not detected. When both the halftone and the oblique line are detected or both are not detected, the multivalued image data D3 from the third code conversion means is selected and output.

【0041】図7には、入力する2値画像データに写真
等の階調画像(ハーフトーン)部と文字線画等の斜め線
とそれ以外(この例では縦線)の画像が混在する場合の
多値化例を示す。(a)は多値化前の2値画像であり、
(b)は多値化後の多値画像である。このように、この
実施形態によれば写真等の階調画像部での粒状性を向上
するとともに、文字線画等のエッジを滑らかにすること
ができる。
FIG. 7 shows a case where the input binary image data includes a gradation image (halftone) portion such as a photograph, an oblique line such as a character line drawing, and other (in this example, a vertical line) images. An example of multi-value conversion is shown. (A) is a binary image before multi-value conversion,
(B) is a multi-value image after multi-value conversion. As described above, according to this embodiment, it is possible to improve the graininess in a gradation image portion such as a photograph and to smooth the edge of a character / line image or the like.

【0042】[0042]

【発明の効果】以上説明してきたように、この発明によ
れば、2値画像データを多値画像データに変換する際
に、写真等の階調画像部での粒状性を向上させることが
できる。また、それとともに文字線画等のエッジを滑ら
かにすることも可能であり、画質を向上させることがで
きる。
As described above, according to the present invention, when converting binary image data into multi-valued image data, it is possible to improve the graininess in a gradation image portion such as a photograph. . At the same time, it is possible to smooth the edges of the character and line drawing and the like, so that the image quality can be improved.

【図面の簡単な説明】[Brief description of the drawings]

【図1】図2における多値化処理手段13の第1の構成
例を示すブロック図である。
FIG. 1 is a block diagram illustrating a first configuration example of a multi-value processing unit 13 in FIG. 2;

【図2】この発明による画像処理装置をデジタル複写機
に適用した場合の例を示すブロック構成図である。
FIG. 2 is a block diagram showing an example in which the image processing apparatus according to the present invention is applied to a digital copying machine.

【図3】図2における階調処理手段7の構成例を示すブ
ロック図である。
FIG. 3 is a block diagram showing a configuration example of a gradation processing means 7 in FIG. 2;

【図4】図3に示した階調処理手段7による多値化前と
後の画像パターンの例を示す図である。
FIG. 4 is a diagram showing an example of an image pattern before and after multi-value conversion by the gradation processing means 7 shown in FIG. 3;

【図5】図2における多値化処理手段13の第2の構成
例を示すブロック図である。
FIG. 5 is a block diagram showing a second configuration example of the multi-value processing means 13 in FIG. 2;

【図6】図5における第二のコード変換手段34による
斜め線の多値化前と後の画像パターンの例を示す図であ
る。
6 is a diagram showing an example of an image pattern before and after multi-value conversion of an oblique line by the second code conversion means 34 in FIG. 5;

【図7】図5に示した多値化処理手段13による各種の
画像が混在する画像データの多値化前と後の画像パター
ンの例を示す図である。
7 is a diagram illustrating an example of an image pattern before and after multi-value conversion of image data in which various types of images are mixed by the multi-level conversion processing unit 13 illustrated in FIG. 5;

【符号の説明】[Explanation of symbols]

1:CCD 2:A/D変換器 3:シェーディング補正手段 4:フィルタ処理手段 5:変倍手段 6:ガンマ補正手段 7:階調処理手段 8:圧縮/伸長手段 9:外部記憶手段 10:外部I/F 11,12,14,36:セレクタ 13:多値化処理手段 15:画像出力器 31,31′:パターン検出手段 32:コード変換手段 32′:第一のコード変換手段 33:線分形状検出手段 34:第二のコード変換手段 35:第三のコード検出手段 1: CCD 2: A / D converter 3: Shading correction means 4: Filter processing means 5: Zooming means 6: Gamma correction means 7: Gradation processing means 8: Compression / expansion means 9: External storage means 10: External I / F 11, 12, 14, 36: Selector 13: Multi-value processing means 15: Image output device 31, 31 ': Pattern detection means 32: Code conversion means 32': First code conversion means 33: Line segment Shape detection means 34: Second code conversion means 35: Third code detection means

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 2値画像データを多値画像データに変換
する多値化処理手段を備えた画像処理装置において、 前記多値化処理手段が、2値画像データをM値化(M>
2)する手段と、同一画素内での位相情報を出力する位
相情報出力手段とを有することを特徴とする画像処理装
置。
1. An image processing apparatus comprising a multi-value processing means for converting binary image data into multi-value image data, wherein the multi-value processing means converts the binary image data into M-valued data (M>
2) An image processing apparatus comprising: means for performing phase information; and phase information output means for outputting phase information in the same pixel.
【請求項2】 請求項1記載の画像処理装置において、
前記多値化処理手段は、2値画像データの各注目画素毎
に、該注目画素とその周辺画素の2次元配置のパータン
を検出するパターン検出手段を有し、前記位相情報出力
手段が、該パターン検出手段の検出結果に応じて該注目
画素をM値化した各画素の位相を決定してその位相情報
を出力する手段であることを特徴とする画像処理装置。
2. The image processing apparatus according to claim 1, wherein
The multi-value processing means includes, for each pixel of interest of the binary image data, pattern detection means for detecting a pattern of a two-dimensional arrangement of the pixel of interest and its surrounding pixels, and the phase information output means comprises: An image processing apparatus comprising: means for determining a phase of each pixel obtained by converting the pixel of interest into an M-value in accordance with a detection result of a pattern detecting means and outputting the phase information.
【請求項3】 前記請求項1又は2記載の画像処理装置
において、前記多値化処理手段が、2値画像データの線
分形状を検出する手段と、該手段によってドットマトリ
クスの直交する方向に対して傾斜した線分形状が検出さ
れたときには、該線分を構成する各画素の位相をその傾
斜角度に応じてずらす手段とを有することを特徴とする
画像処理装置。
3. The image processing apparatus according to claim 1, wherein said multi-value processing means includes means for detecting a line segment shape of binary image data, and said means for detecting a line segment shape of said binary image data in a direction orthogonal to a dot matrix. An image processing apparatus comprising: means for shifting the phase of each pixel constituting the line segment in accordance with the angle of inclination when the shape of the line segment that is inclined is detected.
JP8273505A 1996-10-16 1996-10-16 Image processor Pending JPH10126613A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8273505A JPH10126613A (en) 1996-10-16 1996-10-16 Image processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8273505A JPH10126613A (en) 1996-10-16 1996-10-16 Image processor

Publications (1)

Publication Number Publication Date
JPH10126613A true JPH10126613A (en) 1998-05-15

Family

ID=17528829

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8273505A Pending JPH10126613A (en) 1996-10-16 1996-10-16 Image processor

Country Status (1)

Country Link
JP (1) JPH10126613A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105512647A (en) * 2016-01-19 2016-04-20 同方知网(北京)技术有限公司 Method and device for intelligent layout division of scanned file on small-screen equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105512647A (en) * 2016-01-19 2016-04-20 同方知网(北京)技术有限公司 Method and device for intelligent layout division of scanned file on small-screen equipment

Similar Documents

Publication Publication Date Title
JP3585703B2 (en) Image processing device
EP1505821A2 (en) Image processing apparatus, an image forming apparatus and an image processing method
WO2000024189A1 (en) Printing apparatus and method
JP3578878B2 (en) Image processing device
JP2756371B2 (en) Image processing device
JP2784278B2 (en) Image scaling processor
JPH10126613A (en) Image processor
JPH07170391A (en) Picture element density converter
JPH0775395B2 (en) Image processing device
JP3117331B2 (en) Image data processing device
JP3468966B2 (en) Image processing device
JP4035696B2 (en) Line segment detection apparatus and image processing apparatus
JP3183787B2 (en) Halftone area determination device
JP3966448B2 (en) Image processing apparatus, image processing method, program for executing the method, and recording medium storing the program
JP3212339B2 (en) Image magnification device
JP3475606B2 (en) Image processing device
JP3225138B2 (en) Image processing apparatus and image processing method
JP3004244B2 (en) Area separation device
JPH08116454A (en) Image processing unit
JPH0766976A (en) Picture processing unit
JP2972171B2 (en) Halftone area detection method
JP4203636B2 (en) Image processing method and image input apparatus
JP2778669B2 (en) Halftone area detection method
JP2836992B2 (en) Image scaling processor
JPH07212573A (en) Resolution conversion device for binary picture

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20041130

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20041207

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050207

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050315

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20050705