JPH04286274A - Image processor - Google Patents
Image processorInfo
- Publication number
- JPH04286274A JPH04286274A JP3074634A JP7463491A JPH04286274A JP H04286274 A JPH04286274 A JP H04286274A JP 3074634 A JP3074634 A JP 3074634A JP 7463491 A JP7463491 A JP 7463491A JP H04286274 A JPH04286274 A JP H04286274A
- Authority
- JP
- Japan
- Prior art keywords
- dither
- thinning
- data
- image
- dither matrix
- 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
Links
- 239000011159 matrix material Substances 0.000 claims abstract description 28
- 238000006243 chemical reaction Methods 0.000 claims abstract description 5
- 238000000034 method Methods 0.000 description 16
- 238000010586 diagram Methods 0.000 description 4
- 230000009897 systematic effect Effects 0.000 description 2
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformation in the plane of the image
- G06T3/40—Scaling the whole image or part thereof
- G06T3/4007—Interpolation-based scaling, e.g. bilinear interpolation
Abstract
Description
【0001】0001
【産業上の利用分野】本発明は、ディザ処理が行われた
イメージデータを間引きまたは補間するイメージ処理装
置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus that thins out or interpolates dithered image data.
【0002】0002
【従来の技術】従来からイメージデータの処理において
2値記録が中間調を表現するのに広く用いられている。
この2値記録を用いた中間調を表現方法する方法には、
ディザ法と濃度パターン法に別れる。ここでディザ法と
は各画素は白黒の2値しかとらないが、微小面積内での
黒画素の密度を変化させることにより多階調の濃淡を表
現する方式を言う。黒画素の密度は、一定画素の正方領
域(ドットマトリックス)の各画素毎に変化する所定の
しきい値で2値化することによって構成する。このディ
ザ法の中で一定の規則によりばらばらに見えるしきい値
配列を作る組織的ディザ法が一般に用いられている。2. Description of the Related Art Conventionally, binary recording has been widely used to express halftones in image data processing. The method of expressing halftones using this binary recording is as follows:
It is divided into dither method and density pattern method. Here, the dither method refers to a method in which each pixel takes only two values, black and white, but multiple gradations of light and shade are expressed by changing the density of black pixels within a minute area. The density of black pixels is determined by binarizing using a predetermined threshold value that changes for each pixel in a square area (dot matrix) of constant pixels. Among these dithering methods, a systematic dithering method that creates a threshold array that appears disjointed according to a certain rule is generally used.
【0003】組織的ディザ法では、n×n個の画素に対
してそれぞれ異なるしきい値をを割り当てることにより
、(n×n)+1の階調を表現できる。このnを増大さ
せることにより階調表示の誤差を縮小させることができ
るが、表示単位の面積が大きくなってしまい解像度が劣
化してしまう。ディザ処理されたイメージデータを転送
する際、通常データを圧縮してから行う。ディザ処理さ
れたイメージデータを間引く場合、中心付近のしきい値
を用いた単純間引きが行われている。In the systematic dither method, (n×n)+1 gradations can be expressed by assigning different threshold values to n×n pixels. Although the error in gradation display can be reduced by increasing this n, the area of the display unit increases and the resolution deteriorates. When transferring dithered image data, the normal data is compressed before being transferred. When dithering image data is thinned out, simple thinning is performed using a threshold value near the center.
【0004】しかしながら、ディザ法で作製された2値
画像を間引くとディザマトリックスを壊してしまい画像
の品質を劣化させてしまっていた。これは、ディザマト
リックス自体が1画素の階調を疑似的に表現しているか
らである。そこで、本発明の第1の目的は、ディザマト
リックスを壊さずにデータを変倍する、画像処理装置を
提供することである。また、本発明の第2の目的は、異
なる階調のイメージ入力装置であっても、ディザマトリ
ックスを壊さずにデータを変倍する画像処理装置を提供
することである。そして、本発明の第3の目的は、ディ
ザマトリックスの主走査方向および副走査方向の変倍率
を変更して、画像を自由に編集できる画像処理装置を提
供することである。However, when a binary image created by the dither method is thinned out, the dither matrix is destroyed and the quality of the image is degraded. This is because the dither matrix itself pseudo-expresses the gradation of one pixel. Therefore, a first object of the present invention is to provide an image processing device that scales data without destroying the dither matrix. A second object of the present invention is to provide an image processing device that scales data without destroying the dither matrix even if the image input device has different gradations. A third object of the present invention is to provide an image processing device that can freely edit an image by changing the magnification of the dither matrix in the main scanning direction and the sub-scanning direction.
【0005】[0005]
【課題を解決するための手段】請求項1記載の画像処理
装置では、ディザ処理によりイメージデータを多値デー
タから2値データに変換する変換手段と、この変換手段
で変換された2値のイメージデータを入力するイメージ
入力手段と、入力された2値イメージデータを格納する
メモリと、この2値イメージデータをディザマトリック
ス毎に間引きまたは補間する手段とを具備させて前記第
1の目的を達成する。請求項2記載の画像処理装置では
、請求項1記載の画像処理装置の間引きまたは補間する
手段が、ディザマトリックスのサイズを変更して間引き
または補間することにより前記第2の目的を達成する。
請求項3記載の画像処理装置では、請求項1記載の画像
処理装置の間引きまたは補間する手段が、ディザマトリ
ックスの主走査方向および副走査方向を任意の変倍率で
間引きまたは補間することにより前記第3の目的を達成
する。[Means for Solving the Problem] The image processing apparatus according to claim 1 includes a conversion means for converting image data from multivalued data to binary data by dither processing, and a binary image converted by the conversion means. The first object is achieved by comprising an image input means for inputting data, a memory for storing the input binary image data, and a means for thinning out or interpolating the binary image data for each dither matrix. . In the image processing apparatus according to the second aspect, the thinning or interpolation means of the image processing apparatus according to the first aspect achieves the second object by changing the size of the dither matrix and performing thinning or interpolation. In the image processing apparatus according to claim 3, the thinning or interpolating means of the image processing apparatus according to claim 1 thins out or interpolates the main scanning direction and the sub-scanning direction of the dither matrix at an arbitrary scaling factor. Achieve objective 3.
【作用】本発明の画像処理装置は、2値データに変換さ
れたイメージデータをディザマトリックス単位で縮小/
拡大することにより、ディザマトリックスを壊さずに、
データを処理し転送する。[Operation] The image processing device of the present invention reduces/reduces image data converted to binary data in dither matrix units.
By enlarging, without destroying the dither matrix,
Process and transfer data.
【0006】本発明の画像処理装置の一実施例を図1な
いし図3に基づいて詳細に説明する。図1は画像処理装
置の一実施例の構成を示す概略図である。図2は従来の
単純間引きによってデータを間引いた場合の具体例と、
本発明の一実施例であるディザマトリックス単位で間引
きを行った場合の例を比較した図である。2値化された
画像データは、イメージ入力装置10から入力され、入
力装置インターフェイス12を介して、イメージ格納メ
モリ14に格納される。その後所定の変倍率、例えば1
/2でディザマトリックス毎に間引きされて別エリアへ
転送される。An embodiment of the image processing apparatus of the present invention will be described in detail with reference to FIGS. 1 to 3. FIG. 1 is a schematic diagram showing the configuration of an embodiment of an image processing device. Figure 2 shows a specific example of data thinning using conventional simple thinning.
FIG. 4 is a diagram comparing an example in which thinning is performed in units of dither matrices, which is an embodiment of the present invention. Binarized image data is input from the image input device 10 and stored in the image storage memory 14 via the input device interface 12. Then a predetermined magnification factor, for example 1
/2, each dither matrix is thinned out and transferred to another area.
【0007】図2に示すようにn×n個の画素からなる
ディザマトリックスを2値化した後、データを間引くと
き、単純間引きをするとせっかくのディザマトリックス
が壊れてしまが、ディザマトリックス単位で間引いて転
送するとディザマトリックスを壊さずに転送できる。例
えば、n=8である8×8のディザマトリックスの場合
、データを1/2倍するときには、主走査方向は8ビッ
ト転送、8ビット間引きを繰り返す。一方、副走査方向
は8ラインを転送後つぎの8ラインを間引く。これを繰
り返すことで1/2倍の変倍をしてデータを転送できる
。As shown in FIG. 2, when a dither matrix consisting of n×n pixels is binarized and then the data is thinned out, the dither matrix will be destroyed if the data is simply thinned out. The dither matrix can be transferred without destroying it. For example, in the case of an 8×8 dither matrix where n=8, when data is multiplied by 1/2, 8-bit transfer and 8-bit thinning are repeated in the main scanning direction. On the other hand, in the sub-scanning direction, after transferring 8 lines, the next 8 lines are thinned out. By repeating this process, data can be transferred with the magnification changed to 1/2.
【0008】すなわち、2値化された各ディザマトリッ
クスが8×8の画素からなる9個のディザマトリックス
30は、単純間引きをすると32のように黒線部を間引
いてしまうので、せっかくのディザマトリックスが壊さ
れてしまう。一方、ディザマトリックス単位で間引きし
た34の場合はディザマトリックスを壊さずに間引いて
いるので、情報を縮小できる。従って、この方法による
と自然なデータの変倍ができる。[0008] In other words, if the nine dither matrices 30, each of which has been binarized and is made up of 8×8 pixels, are simply thinned out, the black line portions will be thinned out as shown in 32, so the dither matrix will be destroyed. On the other hand, in the case of 34, which is thinned out in units of dither matrices, the data is thinned out without destroying the dither matrix, so the information can be reduced. Therefore, this method allows natural scaling of data.
【0009】次に、この実施例の操作の流れを図3のフ
ローチャートに従って説明する。まず、2値化されたイ
メージデータの入出力アドレスを設定されているかを判
断する(ステップ1)。設定されていれば(ステップ1
;Y)、次へ進み、設定されていなければ(ステップ2
;N)、スタートヘ戻る。そして、該入力箇所が間引き
ラインかどうか判断する(ステップ2)。間引きライン
でない場合(ステップ2;N)、主走査方向マトリック
スを入力する(ステップ3)。Next, the flow of operations in this embodiment will be explained with reference to the flowchart of FIG. First, it is determined whether input/output addresses for binarized image data have been set (step 1). If it is set (step 1)
;Y), proceed to the next step, and if it is not set (Step 2
;N), return to the start. Then, it is determined whether the input location is a thinning line (step 2). If it is not a thinning line (step 2; N), a main scanning direction matrix is input (step 3).
【0010】これが、間引きすべきものかどうか判断し
(ステップ4)、間引きすべきものでないとき(ステッ
プ4;N)、転出先に出力する(ステップ5)。そして
、出力アドレスを加算する(ステップ6)。つぎに、1
ラインが終了したかどうかを判断する(ステップ7)。
終了していない場合は(ステップ7;N)、ステップ3
に戻り、再び主走査方向マトリックスを入力する。[0010] It is determined whether this should be thinned out (step 4), and if it is not something that should be thinned out (step 4; N), it is output to the destination (step 5). Then, the output address is added (step 6). Next, 1
Determine whether the line has ended (step 7). If not completed (step 7; N), step 3
Return to and input the main scanning direction matrix again.
【0011】主走査方向マトリックス入力後、再び間引
きかどうか判断し(ステップ4)、間引きすべきもので
あるとき(ステップ4;Y)、ステップ7へ進む。ステ
ップ7で1ライン終了したと判断されたとき(ステップ
7;Y)、処理が終了したどうかを判断する(ステップ
9)。終了でないときは(ステップ9;N)、ステップ
2へ戻る。ステップ2で間引きラインであるとき(ステ
ップ2:Y)、間引きNラインアドレス加算をする(ス
テップ8)。その後ステップ9へ進み、終了すべきとき
は(ステップ9:Y)、終了する。After inputting the main scanning direction matrix, it is again determined whether or not to thin out (step 4), and if the data should be thinned out (step 4; Y), the process proceeds to step 7. When it is determined in step 7 that one line is completed (step 7; Y), it is determined whether the process is completed (step 9). If it is not finished (step 9; N), return to step 2. If it is a thinned out line in step 2 (step 2: Y), the thinned out N line address is added (step 8). Thereafter, the process proceeds to step 9, and if it is necessary to end (step 9: Y), the process ends.
【0012】0012
【発明の効果】請求項1記載の画像処理装置によれば、
2値化されたディザパターンを壊さずに自然なデータの
変倍ができる。請求項2記載の画像処理装置によれば、
異なる階調のイメージ入力装置にも対応して自然なデー
タの変倍ができる。請求項2記載の画像処理装置によれ
ば、データの主走査方向および副走査方向の変倍率を変
えることで、出力データの自由な編集ができる。According to the image processing apparatus according to claim 1,
Natural data scaling can be performed without destroying the binarized dither pattern. According to the image processing device according to claim 2,
It also supports image input devices with different gradations, allowing for natural scaling of data. According to the image processing apparatus according to the second aspect, output data can be freely edited by changing the magnification ratio of the data in the main scanning direction and the sub-scanning direction.
【図1】本発明の画像処理装置の一実施例の構成の概略
図である。FIG. 1 is a schematic diagram of the configuration of an embodiment of an image processing apparatus of the present invention.
【図2】本発明の画像処理装置の一実施例である、ディ
ザマトリックスの転送と従来例の転送の比較を示した図
である。FIG. 2 is a diagram showing a comparison between dither matrix transfer, which is an embodiment of the image processing apparatus of the present invention, and transfer of a conventional example.
【図3】本発明の画像処理装置の一実施例である作業の
順序を示すフローチャートである。FIG. 3 is a flowchart showing the order of operations in an embodiment of the image processing apparatus of the present invention.
【符号の説明】 10…イメージ入力装置 12…入力装置インターフェイス 14…イメージ格納メモリ[Explanation of symbols] 10...Image input device 12...Input device interface 14...Image storage memory
Claims (3)
値データから2値データに変換する変換手段と、この変
換手段で変換された2値のイメージデータを入力するイ
メージ入力手段と、入力された2値イメージデータを格
納するメモリと、この2値イメージデータをディザマト
リックス毎に間引きまたは補間する手段とを具備するこ
とを特徴とする画像処理装置。1. Conversion means for converting image data from multivalued data to binary data by dither processing, image input means for inputting binary image data converted by the conversion means, and input binary data. An image processing device comprising: a memory for storing image data; and means for thinning out or interpolating the binary image data for each dither matrix.
ィザマトリックスのサイズを変更して間引きまたは補間
する画像処理装置。2. An image processing apparatus in which the thinning or interpolating means changes the size of a dither matrix and performs thinning or interpolation.
マトリックスの主走査方向および副走査方向を任意の変
倍率で間引きまたは補間することを特徴とする請求項1
の画像処理装置。3. Claim 1, wherein the thinning or interpolating means thins out or interpolates the main scanning direction and the sub scanning direction of the dither matrix at an arbitrary magnification ratio.
image processing device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3074634A JPH04286274A (en) | 1991-03-14 | 1991-03-14 | Image processor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3074634A JPH04286274A (en) | 1991-03-14 | 1991-03-14 | Image processor |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH04286274A true JPH04286274A (en) | 1992-10-12 |
Family
ID=13552837
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP3074634A Pending JPH04286274A (en) | 1991-03-14 | 1991-03-14 | Image processor |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH04286274A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO1995006910A1 (en) * | 1993-09-01 | 1995-03-09 | Canon Information Systems Research Australia Pty. Ltd. | Alteration of dither matrix size for full colour dithering |
WO1995006911A1 (en) * | 1993-09-01 | 1995-03-09 | Canon Information Systems Research Australia Pty. Ltd. | Method for the creation of dither matrices |
AU694446B2 (en) * | 1993-09-01 | 1998-07-23 | Canon Information Systems Research Australia Pty Ltd | Method for the creation of dither matrices |
-
1991
- 1991-03-14 JP JP3074634A patent/JPH04286274A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO1995006910A1 (en) * | 1993-09-01 | 1995-03-09 | Canon Information Systems Research Australia Pty. Ltd. | Alteration of dither matrix size for full colour dithering |
WO1995006911A1 (en) * | 1993-09-01 | 1995-03-09 | Canon Information Systems Research Australia Pty. Ltd. | Method for the creation of dither matrices |
AU694446B2 (en) * | 1993-09-01 | 1998-07-23 | Canon Information Systems Research Australia Pty Ltd | Method for the creation of dither matrices |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPH0777418B2 (en) | Image processing device | |
JPH03128574A (en) | Pseudo halftone processing unit | |
JPH11187264A (en) | Method and device for processing image | |
JP2008067044A (en) | Image processor, image reader, image processing method, and image processing program | |
JPH04286274A (en) | Image processor | |
JP2000217000A (en) | Image processor, image processing method and recording medium | |
JPS62107573A (en) | Image processor | |
JPH0799543B2 (en) | Image processing device | |
JP2003198843A (en) | Reduced-buffer error diffusion | |
US20020060812A1 (en) | Image processing method and image processing apparatus | |
JP3165800B2 (en) | Image processing device | |
KR100440944B1 (en) | Binary image resolution reducing method and device simplifying resolution reduction algorithm | |
JPH0589238A (en) | Image processing device, image reducing method, and image processing method | |
JP2000184197A (en) | Image processor | |
JPH02199585A (en) | Image processor | |
JP3546629B2 (en) | Image processing device | |
JP3234461B2 (en) | Image data processing device | |
JP2934971B2 (en) | Image binarization processing device | |
JPS6135073A (en) | Picture processing system | |
JP2007194955A (en) | Image processing device | |
JPH08154174A (en) | Binary/multivalue conversion method for image data and image processing device | |
JPH09154009A (en) | Printer system | |
JP2003060909A (en) | Image processor and image processing method | |
JPH10191050A (en) | Image processing device and method, and storage medium storing image processing procedure | |
JPH07295527A (en) | Processor for image signal binarization processing and method therefor |