JPH09174882A - Recording equipment and method therefor - Google Patents

Recording equipment and method therefor

Info

Publication number
JPH09174882A
JPH09174882A JP33504495A JP33504495A JPH09174882A JP H09174882 A JPH09174882 A JP H09174882A JP 33504495 A JP33504495 A JP 33504495A JP 33504495 A JP33504495 A JP 33504495A JP H09174882 A JPH09174882 A JP H09174882A
Authority
JP
Japan
Prior art keywords
image data
error
image
block
original image
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
JP33504495A
Other languages
Japanese (ja)
Inventor
Yuji Akiyama
勇治 秋山
Atsuyuki Ninomiya
敬幸 二ノ宮
Masafumi Kamata
雅史 鎌田
Kazuhiko Morimura
和彦 森村
Masashi Matsumoto
正史 松本
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP33504495A priority Critical patent/JPH09174882A/en
Publication of JPH09174882A publication Critical patent/JPH09174882A/en
Pending legal-status Critical Current

Links

Landscapes

  • Particle Formation And Scattering Control In Inkjet Printers (AREA)
  • Dot-Matrix Printers And Others (AREA)
  • Color, Gradation (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

PROBLEM TO BE SOLVED: To enable output of an image of a desired reduced size by a method wherein original image data are divided into a plurality of blocks on the basis of a set scale factor, pattern data on a reduced image are held for densities which the blocks in a plurality can take, and a pixel density on the reduced image corresponding to each block is determined. SOLUTION: On the occasion of a data conversion processing, first a reference area is determined in a determining part 35 on the basis of information on a set scale factor set by a scale factor setting part 26 and information on resolution of image data inputted by an image data input part 22. Next, image data corresponding to the reference area of the image data stored in a first memory 32 is extracted in an image extracting part 36. Besides, the number of ON dots wherein storage pixels are present is discriminated in a dot number discriminating part 37 and a mask pattern corresponding to the image data is selected from a table group 25a, in a mask pattern setting part 39. In a data conversion processing part 38, thereafter, a data conversion processing of the image data is executed with the mask pattern used and recording in a recording part 30 is controlled.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、画像データを縮小
処理して縮小画像を記録する記録装置及びその方法に関
するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a recording apparatus and method for reducing image data to record a reduced image.

【0002】[0002]

【従来の技術】一般的に、ホストコンピュータ等と接続
し、画像を記録出力する記録装置においては、2値化処
理による疑似中間調画像のビットマップ情報からなるイ
メージ画像データ、あるいは文字コード情報からなる文
字画像データを受信し画像出力を行っていた。
2. Description of the Related Art Generally, in a recording apparatus which is connected to a host computer or the like to record and output an image, image data consisting of bitmap information of pseudo halftone image by binarization or character code information is used. The character image data was received and the image was output.

【0003】イメージ画像データは、2値化信号により
中間調画像を疑似的に表現する手法である。例えば、デ
ィザ法等により、16階調のしきい値を4×4の2次元
平面に疑似乱数化して配置する。そして、しきい値が配
置されたディザマトリクスを用いて、多値画像信号を記
録画像の画素を形成するドットのオン/オフ状態を決定
する2値化信号に変換する。この結果、2値化信号であ
っても中間調画像を疑似階調パターンにより再生するこ
とが可能であった。
Image image data is a method of pseudo representation of a halftone image by a binarized signal. For example, a threshold value of 16 gradations is pseudo-randomized and arranged on a 4 × 4 two-dimensional plane by the dither method or the like. Then, the multi-valued image signal is converted into a binary signal that determines the on / off state of the dots forming the pixels of the recorded image using the dither matrix in which the threshold value is arranged. As a result, it was possible to reproduce a halftone image with a pseudo gradation pattern even with a binary signal.

【0004】一方、文字画像データは、文字コードを記
録装置に転送し、記録装置は文字コードに応じた文字パ
ターンを装置内部で変換し文字画像を出力していた。ま
た、2値化された画像データの解像度変換処理方法とし
て、単純に原画像の画素を間引く方法、論理演算処理を
用いた補完により間引き処理を行う方法により所定画素
数に変換する手法が知られていた。
On the other hand, in the character image data, a character code is transferred to a recording device, and the recording device converts a character pattern corresponding to the character code inside the device and outputs a character image. Further, as a resolution conversion processing method of binarized image data, a method of simply thinning out pixels of an original image and a method of performing thinning processing by complementation using logical operation processing are known. Was there.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、上記の
方法を階調性を持たない文字画像データに対して適応さ
せた場合には、細線の消失のみ注意することで、前述処
理方法によってもさほど劣化はしなかった。しかし、イ
メージ画像データに対して適応させると縮小する倍率が
高くなると、中間調の階調を再現する疑似階調パターン
と間引きパターンとが一致しやすくなり、データが欠落
し中間調画像の階調性が損なわれていた。また、画像が
完全に消滅してしまったり、つぶれてしまう問題があっ
た。
However, when the above method is applied to the character image data having no gradation, only the disappearance of the fine line is taken into consideration, so that the above processing method causes much deterioration. I didn't. However, if the reduction ratio increases when applied to the image data, the pseudo gradation pattern that reproduces the gradation of the halftone and the thinning pattern are likely to match, and the data is missing and the gradation of the halftone image is lost. The sex was impaired. In addition, there was a problem that the image disappeared completely or was crushed.

【0006】例えば、1/2倍の縮小処理を例に挙げる
と、図19の斜線部に相当する原画像の画素を単純に間
引くことで縮小処理を行う場合は、原画像が図20
(a)のような時には、図20(b)のようにオンドッ
ト部のデータが完全に消失してしまう。つまり、画像が
オフドット部のみの画像データとなり、画像が消滅して
しまっている。一方、原画像が図20(c)のような時
には、図20(d)のようにオフドット部のデータはす
べて消失し、オンドット部のみの画像データとなり、画
像がつぶれてしまっている。
For example, when the reduction processing of 1/2 is taken as an example, when the reduction processing is performed by simply thinning out the pixels of the original image corresponding to the hatched portion in FIG.
In the case of (a), the data of the on-dot portion is completely lost as shown in FIG. 20 (b). That is, the image becomes image data of only the off-dot portion, and the image has disappeared. On the other hand, when the original image is as shown in FIG. 20 (c), as shown in FIG. 20 (d), all the data in the off-dot portion disappears, and only the on-dot portion becomes image data, and the image is crushed.

【0007】更に、カラー画像においてはデータ変換後
の色調が原画像と全く異なるなどの問題があった。ま
た、特開昭62−164368号に開示の方法によれ
ば、原画像の所定領域内の白画素数、黒画素数から中間
調画像濃度値を推定し、再度ディザ処理を行うことで縮
小画像を得る方法がある。しかし、原画像の階調性を保
存するためには中間調画像濃度値を求める際の保存領域
を大きく確保しなければならないため、処理の負荷が大
きくなるという問題があった。
Further, there is a problem that the color tone of the color image after data conversion is completely different from that of the original image. Further, according to the method disclosed in Japanese Patent Laid-Open No. 62-164368, a halftone image density value is estimated from the number of white pixels and the number of black pixels in a predetermined area of the original image, and dithering is performed again to reduce the reduced image. There is a way to get. However, in order to preserve the gradation of the original image, it is necessary to secure a large storage area for obtaining the halftone image density value, which causes a problem that the processing load increases.

【0008】本発明は上記の問題点に鑑みてなされたも
のであり、中間調画像の再現性を維持しつつ所望縮小サ
イズの画像出力が可能な記録装置及びその方法を提供す
ることを目的としている。また、カラー記録においても
原画像の色調を再現維持しつつ所望サイズの画像出力が
可能な記録装置及びその方法を提供することを目的とし
ている。
The present invention has been made in view of the above problems, and an object of the present invention is to provide a recording apparatus and a method thereof capable of outputting an image of a desired reduced size while maintaining the reproducibility of a halftone image. There is. Another object of the present invention is to provide a recording apparatus and method capable of outputting an image of a desired size while maintaining the color tone of an original image in color recording.

【0009】[0009]

【課題を解決するための手段】上記の目的を達成するた
めの本発明による記録装置は以下の構成を備える。即
ち、画像データを縮小処理して縮小画像を記録する記録
装置であって、所望の倍率に設定する設定手段と、前記
設定手段で設定された倍率に基づいて、原画像データを
所定画素数からなる複数のブロックに分割する分割手段
と、前記複数のブロックの取り得る濃度のそれぞれにつ
いて縮小画像上のパターンデータを保持する保持手段
と、前記複数のブロックの一つについて濃度を算出する
算出する手段と、前記算出手段によって得られた濃度に
対応するパターンデータ上の当該ブロックに対応する位
置の画素濃度で、当該ブロックに対応する縮小画像上の
画素濃度を獲得する獲得手段とを備える。
The recording apparatus according to the present invention for achieving the above object has the following arrangement. That is, a recording device for reducing the image data to record a reduced image, the original image data having a predetermined number of pixels based on the setting means for setting a desired magnification and the magnification set by the setting means. Dividing means for dividing into a plurality of blocks, holding means for holding the pattern data on the reduced image for each of the densities that the plurality of blocks can have, and calculating means for calculating the density for one of the plurality of blocks. And an acquisition unit that acquires the pixel density on the reduced image corresponding to the block with the pixel density at the position corresponding to the block on the pattern data corresponding to the density obtained by the calculation unit.

【0010】また、好ましくは、原画像データの前記算
出手段で処理したブロックの濃度と該ブロックに対応す
る縮小画像上の所定画素数からなるブロックの濃度との
間の誤差を未処理の原画像データのブロックへ配分する
配分手段を更に備え、誤差が配分されて得る原画像デー
タのブロックの濃度を原画像データのブロックの濃度と
して算出する。誤差を配分し、配分された濃度を算出濃
度とすることで、濃度が保存されるからである。
Further, preferably, an error between the density of the block processed by the calculating means of the original image data and the density of the block having a predetermined number of pixels on the reduced image corresponding to the block is not processed. A distribution means for distributing the blocks to the data is further provided, and the density of the block of the original image data obtained by distributing the error is calculated as the density of the block of the original image data. This is because the density is saved by distributing the error and using the distributed density as the calculated density.

【0011】また、好ましくは、前記配分手段は、前記
誤差を原画像データの前記算出手段で処理したブロック
の隣接ブロックに加算する。また、好ましくは、前記配
分手段は、前記誤差を配分先に応じて所定量を乗算して
原画像データの前記算出手段で処理したブロックの周囲
のブロックに配分する。
Further, preferably, the distribution means adds the error to a block adjacent to a block of the original image data processed by the calculation means. Further, preferably, the distribution unit multiplies the error by a predetermined amount according to a distribution destination and distributes the error to blocks around the block processed by the calculation unit of the original image data.

【0012】また、好ましくは、前記配分手段は、前記
誤差の配分先と配分先に応じた所定量のパターンを複数
有し、前記複数のパターンの一つを前記原画像データに
基づいて選択する選択手段を更に備える。原画像データ
に最適なパターンを選択することで、より階調再現性を
向上させることができるからである。
Further, preferably, the distribution means has a plurality of distribution destinations of the error and a plurality of patterns of a predetermined amount corresponding to the distribution destinations, and selects one of the plurality of patterns based on the original image data. A selection means is further provided. This is because gradation reproducibility can be further improved by selecting the optimum pattern for the original image data.

【0013】上記の目的を達成するための本発明による
記録方法は以下の構成を備える。即ち、画像データを縮
小処理して縮小画像を記録する記録方法であって、所望
の倍率に設定する設定工程と、前記設定工程で設定され
た倍率に基づいて、原画像データを所定画素数からなる
複数のブロックに分割する分割工程と、前記複数のブロ
ックの取り得る濃度のそれぞれについて縮小画像上のパ
ターンデータを保持する保持工程と、前記複数のブロッ
クの一つについて濃度を算出する算出する工程と、前記
算出工程によって得られた濃度に対応するパターンデー
タ上の当該ブロックに対応する位置の画素濃度で、当該
ブロックに対応する縮小画像上の画素濃度を獲得する獲
得工程とを備える。
A recording method according to the present invention for achieving the above object has the following configuration. That is, a recording method of reducing image data to record a reduced image, the original image data having a predetermined number of pixels based on a setting step of setting a desired magnification and a magnification set in the setting step. A dividing step of dividing into a plurality of blocks, a holding step of holding pattern data on a reduced image for each of the possible densities of the plurality of blocks, and a calculating step of calculating a density of one of the plurality of blocks And an acquisition step of acquiring the pixel density on the reduced image corresponding to the block with the pixel density at the position corresponding to the block on the pattern data corresponding to the density obtained by the calculation step.

【0014】[0014]

【実施の形態】以下、図面を参照して本発明の好適な実
施の形態を詳細に説明する。 <実施の形態1>図1は実施の形態1の記録装置の構成
を示すブロック図である。22は画像データ入力部であ
り、インターフェース21を介してホストコンピュータ
等から画像データを入力する。23はCPUであり、R
OM25に格納されているプログラム群25cに従って
装置全体を制御する。24はRAMであり、ROM25
に格納されているプログラム群25cのワークエリア及
びエラー処理時の一時待避エリアさらには画像データの
一時記憶エリアとして用いる。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Preferred embodiments of the present invention will be described in detail below with reference to the drawings. <First Embodiment> FIG. 1 is a block diagram showing the arrangement of a recording apparatus according to the first embodiment. An image data input unit 22 inputs image data from a host computer or the like via the interface 21. 23 is a CPU, R
The entire device is controlled according to the program group 25c stored in the OM 25. 24 is a RAM and a ROM 25
It is used as a work area of the program group 25c stored in, a temporary save area for error processing, and a temporary storage area for image data.

【0015】25はROMであり、後述するデータ変換
処理に用いるマスクパターンテーブル群25a、文字画
像データの文字コードに従って文字パターンを展開する
ための文字パターンテーブル群25b、制御プログラ
ム、エラー処理プログラム、後述のフローチャートに従
って画像データの処理を行うためのプログラム等のプロ
グラム群25cを格納している。
Reference numeral 25 denotes a ROM, which includes a mask pattern table group 25a used for data conversion processing described later, a character pattern table group 25b for developing a character pattern in accordance with a character code of character image data, a control program, an error processing program, which will be described later. A program group 25c such as a program for processing image data according to the flowchart of FIG.

【0016】26は倍率設定部であり、操作パネル27
から指定する倍率により画像の倍率設定を行う。28は
アドレス指示部であり、アドレス管理回路29からの情
報に従ってRAM24、ROM25のアドレスを指示す
る。30は記録部であり、入力画像データを記録出力す
る。310はデータのバスラインである。320は処理
部であり、入力画像データの倍率変換処理と倍率変換処
理により生じた誤差の算出および配分を行う。
Reference numeral 26 is a magnification setting section, which is an operation panel 27.
The image magnification is set according to the magnification specified from. An address designating unit 28 designates addresses in the RAM 24 and the ROM 25 in accordance with information from the address management circuit 29. A recording unit 30 records and outputs input image data. Reference numeral 310 is a data bus line. Reference numeral 320 denotes a processing unit that performs magnification conversion processing of input image data and calculation and distribution of errors generated by the magnification conversion processing.

【0017】上記の記録装置の記録部30は、図2のよ
うなシリアルスキャン形式のカラーインクジェット記録
装置を用いる。図2は実施の形態1の記録部の要部構成
を示す斜視図である。イエローの色インクを吐出する記
録ヘッド1Y、マゼンタの色インクを吐出する記録ヘッ
ド1M、シアンの色インクを吐出する記録ヘッド1C、
ブラックの色インクを吐出する記録ヘッド1Kはキャリ
ッジ201に所定距離をおいて配置してある。用紙やプ
ラスチック薄板等からなる被記録材は搬送ローラ(不図
示)を経て排紙ローラ2、3に挟持され、不図示の搬送
モータの駆動に伴い矢印C方向に送られる。
The recording unit 30 of the above recording apparatus uses a serial scan type color ink jet recording apparatus as shown in FIG. FIG. 2 is a perspective view showing the main configuration of the recording unit according to the first embodiment. A recording head 1Y for ejecting yellow color ink, a recording head 1M for ejecting magenta color ink, a recording head 1C for ejecting cyan color ink,
The recording head 1K that ejects black color ink is arranged at a predetermined distance on the carriage 201. A recording material made of paper, a plastic thin plate, or the like is sandwiched between paper ejection rollers 2 and 3 via a conveyance roller (not shown), and is fed in the direction of arrow C when a conveyance motor (not shown) is driven.

【0018】ガイドシャフト4、及びエンコーダ5によ
りキャリッジ201が案内支持されている。キャリッジ
201は駆動ベルト6、7を介してキャリッジモータ8
の駆動によりガイドシャフト4に沿って往復移動させら
れる。記録ヘッド1の被記録材と対面する表面(吐出口
形成面)には複数の吐出口が設けられており、各吐出口
の内部(液路)にはインク吐出用の熱エネルギーを発生
する発熱素子(電気・熱エネルギー変換体)が設けられ
ている。
The carriage 201 is guided and supported by the guide shaft 4 and the encoder 5. The carriage 201 includes a carriage motor 8 via drive belts 6 and 7.
Is driven to reciprocate along the guide shaft 4. A plurality of ejection openings are provided on the surface (ejection opening formation surface) of the recording head 1 facing the recording material, and heat is generated inside each ejection opening (liquid path) to generate thermal energy for ink ejection. An element (electrical / thermal energy converter) is provided.

【0019】エンコーダ5の読み取りタイミングに従
い、発熱素子を記録信号に基づいて駆動し、ブラック、
シアン、マゼンタ、イエローの順に被記録材上にインク
を飛翔、付着させることで画像を形成することができ
る。記録領域外に選定されたキャリッジ201のホーム
ポジションには、後述する4つのキャップをもつキャッ
プ部420をもつ回復ユニット400が配設されてい
る。記録を行わない時には、キャリッジ201をホーム
ポジションへ移動させてキャップ部420の各キャップ
により対応する各記録ヘッド1の吐出口形成面を密閉
し、インク溶剤の蒸発に起因するインクの固着あるいは
塵等の異物の付着等による吐出口の目詰まりを防止す
る。また、上記キャップ部420の隣接位置にはブレー
ド540、拭き部材541が配設されており、記録ヘッ
ド1の吐出口形成面をクリーニングするのに使用され
る。記録ヘッド1へのインクの供給は、キャリッジ20
1上の不図示のサブタンクを介してインクチューブ9を
通じて、それぞれのインクタンク、インクタンク10Y
(イエロー)、インクタンク10M(マゼンタ)、イン
クタンク10C(シアン)、インクタンク10K(ブラ
ック)より行われる。
In accordance with the reading timing of the encoder 5, the heating element is driven based on the recording signal, and black,
An image can be formed by ejecting and adhering ink on the recording material in the order of cyan, magenta, and yellow. At the home position of the carriage 201 selected outside the recording area, a recovery unit 400 having a cap portion 420 having four caps described later is arranged. When recording is not performed, the carriage 201 is moved to the home position, the ejection port forming surface of each corresponding recording head 1 is sealed by each cap of the cap unit 420, and ink sticking or dust due to evaporation of the ink solvent is caused. Prevents clogging of the discharge port due to foreign matter. Further, a blade 540 and a wiping member 541 are provided adjacent to the cap portion 420, and are used for cleaning the ejection port forming surface of the recording head 1. Ink is supplied to the recording head 1 by the carriage 20.
1 through each of the ink tanks 10Y through the ink tubes 9 through the sub tanks (not shown).
(Yellow), ink tank 10M (magenta), ink tank 10C (cyan), and ink tank 10K (black).

【0020】次に実施の形態1のデータ変換を行う処理
部320について、図3を用いて説明する。図3は実施
の形態1のデータ変換処理を行う処理部の構成を示すブ
ロック図である。22は画像データ入力部であり、ホス
トコンピュータ等から送られてくる画像データを受信す
る。この際、ホストコンピュータ等から送られてくる画
像データは文字コード情報からなる文字画像データと2
値化されたビットマップ情報からなるイメージ画像デー
タを混在させることは可能である。この場合、データ判
別部を設ければ、文字画像データとイメージ画像データ
の判別は画像データ中に含まれる制御コマンドの形態お
よび信号の内容により容易に判別可能である。更に、イ
メージ画像データの場合には画像解像度の判別も可能で
ある。ここでは、イメージ画像データの変換に限定して
説明する。また、実施の形態1で取り扱うイメージ画像
データは記録装置と同じ解像度のデータであるものとし
て説明する。
Next, the processing unit 320 for performing the data conversion according to the first embodiment will be described with reference to FIG. FIG. 3 is a block diagram showing the configuration of the processing unit that performs the data conversion processing according to the first embodiment. An image data input unit 22 receives image data sent from a host computer or the like. At this time, the image data sent from the host computer or the like is 2
It is possible to mix image data consisting of binarized bit map information. In this case, if the data discriminating unit is provided, the discrimination between the character image data and the image image data can be easily discriminated based on the form of the control command and the content of the signal contained in the image data. Further, in the case of image image data, it is possible to determine the image resolution. Here, only the conversion of image data will be described. Further, it is assumed that the image image data handled in the first embodiment has the same resolution as that of the recording device.

【0021】32は第1メモリであり、画像データ入力
部22で受信したイメージ画像データを一時的に記憶す
る。35は決定部であり、操作パネル27により指示さ
れた画像出力倍率に従って、倍率設定部26からの倍率
設定情報とイメージ画像データの解像度情報により、イ
メージ画像データの変換ビット数とデータ変換処理に用
いる参照エリアを決定する。ここで言う参照エリアは、
例えば、画像出力倍率が1/2縮小倍で、2×2画素を
1画素(2ビット×2ビットを1ビット)に変換する場
合、参照エリアは2×2となる。
Reference numeral 32 denotes a first memory, which temporarily stores the image data received by the image data input unit 22. A decision unit 35 is used for the conversion bit number of the image image data and the data conversion process according to the magnification setting information from the magnification setting unit 26 and the resolution information of the image image data according to the image output magnification designated by the operation panel 27. Determine the reference area. The reference area here is
For example, when the image output magnification is ½ reduction and the 2 × 2 pixels are converted into one pixel (2 bits × 2 bits is 1 bit), the reference area is 2 × 2.

【0022】36は画像抽出部であり、第1メモリ32
に記憶される入力イメージ画像データの参照エリアに相
当する画像データを抽出する。37はドット数判別部で
あり、画像抽出部36で参照エリア内の画像を抽出した
後、参照エリア内の画像データのビット状態が1の場
合、すなわち記録画素が存在するオンドットの数を判別
する。
Reference numeral 36 denotes an image extraction unit, which is the first memory 32.
The image data corresponding to the reference area of the input image image data stored in is extracted. A dot number determination unit 37 determines the number of on-dots in which a recording pixel is present when the bit state of the image data in the reference area is 1 after the image in the reference area is extracted by the image extraction unit 36. To do.

【0023】39はマスクパターン設定部であり、画像
データに応じたマスクパターンがマスクパターンテーブ
ル群25aから選択され設定される。ここで設定される
マスクパターンは画像データの変換倍率とドット数判別
部37で判別するオンドットの数および入力イメージ画
像データを参照エリアにより参照した位置に応じてあら
かじめ決められている。そして、このマスクパターン情
報に従って、変換処理後の画像データにおける対応位置
の画素(ビット)情報をオンドットあるいはオフドット
(1か0)に決定する。
Reference numeral 39 is a mask pattern setting unit, which selects and sets a mask pattern corresponding to image data from the mask pattern table group 25a. The mask pattern set here is predetermined according to the conversion ratio of the image data, the number of on-dots determined by the dot number determination unit 37, and the position where the input image image data is referred to by the reference area. Then, according to the mask pattern information, the pixel (bit) information at the corresponding position in the image data after the conversion process is determined to be an on dot or an off dot (1 or 0).

【0024】38はデータ変換処理部であり、マスクパ
ターン設定部39で設定されたマスクパターンを用い
て、入力イメージ画像データのデータ変換処理を行う。
マスクパターンおよび参照エリアの参照位置はアドレス
指定部42からの指定情報に従って移動する。データ変
換処理部38でデータ変換処理をされた入力イメージ画
像データは誤差算出部45でデータ変換処理で生じた誤
差値が算出された後、第2メモリ41に記憶され、逐次
記録部30で記録出力される。
Reference numeral 38 denotes a data conversion processing unit, which uses the mask pattern set by the mask pattern setting unit 39 to perform data conversion processing of the input image image data.
The mask pattern and the reference position of the reference area move according to the designation information from the address designating section 42. The input image image data subjected to the data conversion processing in the data conversion processing unit 38 is stored in the second memory 41 after the error value generated in the data conversion processing is calculated in the error calculation unit 45, and recorded in the sequential recording unit 30. Is output.

【0025】45は誤差算出部であり、データ変換処理
部38のデータ変換処理で生じた誤差値が求められ、第
3メモリ44に記憶される。46は誤差配分部であり、
誤差算出部45で算出された誤差値をドット数判別部3
7で判別される画素の必要画素部へ加算配分する。尚、
実施の形態1による誤差算出方法および、誤差配分方法
は後の説明で詳細に述べる。
Reference numeral 45 denotes an error calculation unit, which obtains an error value generated by the data conversion processing of the data conversion processing unit 38 and stores it in the third memory 44. 46 is an error distribution unit,
The error value calculated by the error calculation unit 45 is calculated by the dot number determination unit 3
The pixels determined in 7 are added and distributed to the necessary pixel portion. still,
The error calculation method and the error distribution method according to the first embodiment will be described in detail later.

【0026】尚、実施の形態1のドット数判別部37の
入力イメージ画像データのドット数の判別としてオンド
ット(ビット状態が1)を用いているが、これをオフド
ット(ビット状態が0)を用いて判別することも容易に
可能である。次に、実施の形態1における倍率変換処理
について説明する。図4は実施の形態1の倍率変換処理
を示すフローチャートである。
Although the on-dot (bit state is 1) is used to determine the number of dots of the input image image data of the dot-number discriminating section 37 of the first embodiment, this is off-dot (bit state is 0). It is also possible to easily discriminate by using. Next, the magnification conversion process according to the first embodiment will be described. FIG. 4 is a flowchart showing the magnification conversion processing of the first embodiment.

【0027】ステップS400で、画像データ入力部2
2にイメージ画像データを入力する。ステップS401
に進み、操作パネル27から指示された倍率を倍率設定
部26で設定する。ステップS402で、設定された倍
率に応じて変換するイメージ画像データのビット数およ
び参照すべきエリア(M行×N列:M、Nは正の整数)
を決定部35で決定する。ステップS403で、参照エ
リア内の画像データを画像抽出部36で抽出する。ステ
ップS404で、参照エリア内におけるイメージ画像デ
ータのオンドット状態をドット数判別部37で判別・計
数し、オンドット画素数X(Xは実数)を求める。ステ
ップS405で、誤差配分部46でデータ変換処理によ
り生じた誤差値Eを加えた新たなオンドットの画素数X
を計算する。
In step S400, the image data input unit 2
Image data is input to 2. Step S401
Then, the magnification setting unit 26 sets the magnification designated by the operation panel 27. In step S402, the number of bits of image image data to be converted according to the set magnification and the area to be referred to (M rows × N columns: M, N is a positive integer)
Is determined by the determining unit 35. In step S403, the image extraction unit 36 extracts the image data in the reference area. In step S404, the on-dot state of the image data in the reference area is discriminated and counted by the dot number discriminating unit 37, and the on-dot pixel number X (X is a real number) is obtained. In step S405, the new on-dot pixel number X to which the error value E generated by the data conversion processing in the error distribution unit 46 is added
Is calculated.

【0028】ステップS406で、ステップS405で
算出されたXが、0<X/(M×N)<1を満たすかど
うかの判定を行う。Xが0<X/(M×N)<1である
場合には(ステップS406でYES)、ステップS4
12で、イメージ画像データに応じたマスクパターンテ
ーブルをマスクパターン設定部39で設定する。ステッ
プS413で、マスクパターンの対応位置がオンドット
指定部分である場合は(ステップS413でYES)、
ステップS414で、変換するイメージ画像データの対
応画素のビット状態を1とする。そして、ステップS4
17で、X/(M×N)−1を誤差値Eとして算出す
る。マスクパターンの対応位置がオフドット指定部分の
場合は(ステップS413でNO)、ステップS415
で、変換するイメージ画像データの対応画素のビット状
態を0とする。そして、ステップS417でX/(M×
N)を誤差値Eとして算出する。
In step S406, it is determined whether X calculated in step S405 satisfies 0 <X / (M × N) <1. If X is 0 <X / (M × N) <1 (YES in step S406), step S4
At 12, the mask pattern setting unit 39 sets the mask pattern table according to the image data. In step S413, if the corresponding position of the mask pattern is the on-dot designated portion (YES in step S413),
In step S414, the bit state of the corresponding pixel of the image data to be converted is set to 1. Then, step S4
At 17, X / (M × N) −1 is calculated as the error value E. When the corresponding position of the mask pattern is the off-dot designated portion (NO in step S413), step S415
Then, the bit state of the corresponding pixel of the image image data to be converted is set to 0. Then, in step S417, X / (M ×
N) is calculated as the error value E.

【0029】ステップS406で、Xが0<X/(M×
N)<1を満たさない場合は(ステップS406でN
O)、ステップS407に進み、XがX/(M×N)>
1であるかどうかの判定を行う。ステップS407で、
X/(M×N)>1である場合は(ステップS407で
YES)、ステップS414で、変換するイメージ画像
データの対応画素のビット状態を1とする。ステップS
407で、X/(M×N)>1でない場合は(ステップ
S407でNO)、ステップS408へ進み、XがX/
(M×N)<0であるかどうかの判定を行う。
In step S406, X is 0 <X / (M ×
N) <1 is not satisfied (N in step S406)
O), the process proceeds to step S407, and X is X / (M × N)>
It is determined whether it is 1. In step S407,
If X / (M × N)> 1 (YES in step S407), the bit state of the corresponding pixel of the image image data to be converted is set to 1 in step S414. Step S
If X / (M × N)> 1 is not satisfied at 407 (NO at step S407), the process proceeds to step S408, where X is X /
It is determined whether or not (M × N) <0.

【0030】ステップS408で、X/(M×N)<0
である場合は(ステップS408でYES)、ステップ
S415で、変換するイメージ画像データの対応画素の
ビット状態を0とする。ステップS408で、X/(M
×N)<0でない場合は(ステップS408でNO)、
ステップS409へ進み、XがX/(M×N)=0であ
るかどうかの判定を行う。
In step S408, X / (M × N) <0
If (YES in step S408), the bit state of the corresponding pixel of the image image data to be converted is set to 0 in step S415. In step S408, X / (M
× N) <0 (NO in step S408),
In step S409, it is determined whether X is X / (M × N) = 0.

【0031】ステップS409で、X/(M×N)=0
である場合は(ステップS409でYES)、ステップ
S411で、変換するイメージ画像データの対応画素の
ビット状態を0とする。ステップS409で、X/(M
×N)=0でない場合は(ステップS409でNO)、
ステップS410へ進み、ステップS410で、変換す
るイメージ画像データの対応画素のビット状態を1とす
る。
In step S409, X / (M × N) = 0
If (YES in step S409), the bit state of the corresponding pixel of the image image data to be converted is set to 0 in step S411. In step S409, X / (M
× N) = 0 (NO in step S409),
In step S410, the bit state of the corresponding pixel of the image image data to be converted is set to 1 in step S410.

【0032】尚、ステップS409の計算結果が0ある
いは1の場合は倍率変換処理による誤差が生じないた
め、誤差の算出を行う必要はなく、誤差量は0となる。
ステップS416で、全参照エリアのイメージ画像デー
タの処理が終了されたどうかの判定を行う。終了が判定
されない場合は(ステップS416でNO)、ステップ
S418で、次の参照エリアへ移動し上記処理が繰り返
される。全参照エリアのイメージ画像データの処理が終
了した場合は(ステップS416でYES)、ステップ
S419で、所定量のイメージ画像データが記録部30
を介して記録出力される。
If the calculation result in step S409 is 0 or 1, no error occurs due to the magnification conversion process, and therefore it is not necessary to calculate the error, and the error amount becomes 0.
In step S416, it is determined whether the processing of the image data of all reference areas has been completed. If the end is not determined (NO in step S416), the process moves to the next reference area and the above process is repeated in step S418. When the processing of the image image data of all the reference areas is completed (YES in step S416), a predetermined amount of image image data is recorded in the recording unit 30 in step S419.
It is recorded and output via.

【0033】次に、マスクパターンテーブルを用いたデ
ータ変換処理方法について説明する。 ここでは、入力
イメージ画像データを1/2倍に縮小処理する場合につ
いて述べる。図5は実施の形態1の原イメージ画像デー
タと参照エリア及び縮小画像データの関係を示す図であ
る。
Next, a data conversion processing method using the mask pattern table will be described. Here, a case where the input image image data is reduced by a factor of 1/2 will be described. FIG. 5 is a diagram showing the relationship between the original image image data and the reference area and reduced image data according to the first embodiment.

【0034】図5の(a)は、原イメージ画像データで
ある。図5の(b)は、参照エリアサイズで2×2画素
のエリアである。図5の(c)は縮小画像データであ
る。図5の(a)の原イメージ画像データを、図5の
(b)の参照エリアサイズで分割する。例えば、O
(1,1)、O(1,2)、O(2,1)は分割したエ
リアを示している。この各エリアの情報は縮小処理後
は、図5の(c)の縮小画像データのS(1,1)、S
(1,2)、S(2,1)に変換される。
FIG. 5A shows original image data. FIG. 5B shows an area of 2 × 2 pixels in reference area size. FIG. 5C shows reduced image data. The original image data of FIG. 5A is divided by the reference area size of FIG. For example, O
(1,1), O (1,2), and O (2,1) indicate the divided areas. After the reduction processing, the information of each area is S (1,1), S of the reduced image data of FIG.
(1,2), S (2,1).

【0035】このとき、参照エリアサイズで分割したエ
リア内の原イメージ画像データの画素状態は、例えば、
図6に示すような画素状態が考えられる。図に示す黒画
素はオンドット部、白画素はオフドット部である。図6
の(a)はすべての画素がオフドットの場合、図6の
(b)は1/4の画素がオンドットの場合、図6の
(c)は1/2の画素がオンドットの場合、図6の
(d)は3/4の画素がオンドットの場合、図6の
(e)はすべての画素がオンドットの場合を示してい
る。
At this time, the pixel state of the original image image data in the area divided by the reference area size is, for example,
A pixel state as shown in FIG. 6 can be considered. Black pixels shown in the figure are on-dot portions, and white pixels are off-dot portions. FIG.
In (a) of FIG. 6, when all pixels are off dots, in (b) of FIG. 6, 1/4 of pixels are on dots, and in (c) of FIG. 6D shows a case where 3/4 pixels are on dots, and FIG. 6E shows a case where all pixels are on dots.

【0036】図7〜図10は実施の形態1におけるマス
クパターンテーブルのパターンで斜線部はオンドットと
なる位置、非斜線部はオフドットとなる位置である。図
7〜図10において、P(1,1)、P(1,2)、P
(2,1)は、それぞれ図5の(c)の縮小画像データ
のS(1,1)、S(1,2)、S(2,1)の位置に
相当する。
7 to 10 show the patterns of the mask pattern table in the first embodiment, in which the shaded portions are on-dot positions and the non-shaded portions are off-dot positions. 7 to 10, P (1,1), P (1,2), P
(2,1) correspond to the positions of S (1,1), S (1,2), and S (2,1) in the reduced image data of (c) of FIG. 5, respectively.

【0037】図5の(a)の参照エリア内の原イメージ
画像データO(1,1)あるいはO(1,2)、O
(2,1)の画素状態が図7の(a)のようにすべてオ
フドットである場合には、図5の(c)に対応する縮小
画像データS(1,1)あるいはS(1,2)、S
(2,1)はマスクパターンテーブルとは無関係に、ビ
ット状態が0すなわちオフドットとなる。この場合はデ
ータ変換処理による誤差は生じない。
Original image data O (1,1) or O (1,2), O in the reference area of FIG.
When the pixel state of (2,1) is all off dots as shown in (a) of FIG. 7, the reduced image data S (1,1) or S (1,) corresponding to (c) of FIG. 2), S
The bit state of (2, 1) is 0, that is, off dot regardless of the mask pattern table. In this case, no error occurs due to the data conversion process.

【0038】図5の(a)の参照エリア内の原イメージ
画像データO(1,1)あるいはO(1,2)、O
(2,1)の画素状態が図6の(e)のようにすべてオ
ンドットである場合には、図6の(c)に対応する縮小
画像データS(1,1)あるいはS(1,2)、S
(2,1)はマスクパターンテーブルとは無関係に、ビ
ット状態が1すなわちオンドットとなる。この場合もデ
ータ変換処理による誤差は生じない。
Original image data O (1,1) or O (1,2), O in the reference area of FIG.
When the pixel state of (2, 1) is all on dots as shown in (e) of FIG. 6, the reduced image data S (1, 1) or S (1,) corresponding to (c) of FIG. 2), S
For (2,1), the bit state is 1, that is, on-dot, regardless of the mask pattern table. In this case also, no error occurs due to the data conversion processing.

【0039】図5の(a)の参照エリア内の原イメージ
画像データO(1,1)の画素状態が図6の(b)に示
すように1/4の画素がオンドットとなる場合には、図
7に示すマスクパターンテーブルのP(1,1)の条件
に従って、図6の(c)の縮小画像データS(1,1)
のビット状態は1すなわちオンドットとなる。この場
合、誤差Eとして−3/4が算出される。
When the pixel state of the original image data O (1,1) in the reference area of FIG. 5A is 1/4 pixel is on-dot as shown in FIG. 6B. Is the reduced image data S (1,1) of FIG. 6C according to the condition of P (1,1) in the mask pattern table shown in FIG.
The bit state of is 1 or on-dot. In this case, −3/4 is calculated as the error E.

【0040】図5の(a)の参照エリア内の原イメージ
画像データO(1,2)の画素状態が図6の(b)に示
すように1/4の画素がオンドットとなる場合には、図
7に示すマスクパターンテーブルのP(1,2)の条件
に従って、図6の(c)の縮小画像データS(1,2)
のビット状態は0すなわちオフドットとなる。この場
合、誤差値Eとして1/4が算出される。
When the pixel state of the original image data O (1,2) in the reference area of FIG. 5A is 1/4 pixel is on-dot as shown in FIG. 6B. Is the reduced image data S (1,2) of FIG. 6C according to the condition of P (1,2) in the mask pattern table shown in FIG.
Bit state is 0, that is, off dot. In this case, 1/4 is calculated as the error value E.

【0041】また、図5の(a)の参照エリア内の原イ
メージ画像データO(2,1)の画素状態が図6の
(b)に示すように1/4の画素がオンドットとなる場
合には、図7に示すマスクパターンテーブルのP(2,
1)の条件に従って、図5の(c)の縮小画像データS
(2,1)のビット状態は0すなわちオフドットとな
る。この場合も誤差値Eとして1/4が算出される。
Further, as shown in FIG. 6B, the pixel state of the original image data O (2,1) in the reference area of FIG. In this case, the mask pattern table P (2,
According to the condition 1), the reduced image data S of FIG.
The bit state of (2,1) is 0, that is, off dot. Also in this case, 1/4 is calculated as the error value E.

【0042】図5の(a)の参照エリア内の原イメージ
画像データO(1,1)の画素状態が図6の(c)に示
すように1/2の画素がオンドットとなる場合には、図
8に示すマスクパターンテーブルのP(1,1)の条件
に従って、図5の(c)の縮小画像データS(1,1)
のビット状態は1すなわちオンドットとなる。この場
合、誤差値Eとして−1/2が算出される。
When the pixel state of the original image data O (1,1) in the reference area of FIG. 5 (a) is ½ pixel is on-dot as shown in FIG. 6 (c). Is the reduced image data S (1,1) of FIG. 5C according to the condition of P (1,1) in the mask pattern table shown in FIG.
The bit state of is 1 or on-dot. In this case, -1/2 is calculated as the error value E.

【0043】図5の(a)の参照エリア内の原イメージ
画像データO(1,2)の画素状態が図6の(c)に示
すように1/2の画素がオンドットとなる場合には、図
8に示すマスクパターンテーブルのP(1,2)の条件
に従って、図5の(c)の縮小画像データS(1,2)
のビット状態は0すなわちオフドットとなる。この場
合、誤差値Eとして1/2が算出される。
When the pixel state of the original image data O (1,2) in the reference area of FIG. 5 (a) is ½ pixel is on-dot as shown in FIG. 6 (c). Is the reduced image data S (1,2) of FIG. 5C according to the condition of P (1,2) in the mask pattern table shown in FIG.
Bit state is 0, that is, off dot. In this case, 1/2 is calculated as the error value E.

【0044】また、図5の(a)の参照エリア内の原イ
メージ画像データO(2,1)の画素状態が図6の
(c)に示すように1/2の画素がオンドットとなる場
合には、図8に示すデータ変換用マスクテーブルのP
(2,1)の条件に従って、図5の(c)の縮小画像デ
ータS(2,1)のビット状態は0すなわちオフドット
となる。この場合も誤差値として1/2が算出される。
Further, as shown in (c) of FIG. 6, the pixel state of the original image data O (2,1) in the reference area of (a) of FIG. 5 becomes 1/2 dot. In this case, P in the data conversion mask table shown in FIG.
According to the condition (2,1), the bit state of the reduced image data S (2,1) in FIG. 5C is 0, that is, off dot. Also in this case, 1/2 is calculated as the error value.

【0045】尚、参照エリア内の原イメージデータの画
素状態が図6の(c)に示す様に1/2の画素がオンド
ットの場合、マスクパターンテーブルとして図9に示す
ものを用いても良い。図5の(a)の参照エリア内の原
イメージ画像データO(1,1)の画素状態が図6の
(d)に示すように3/4の画素がオンドットとなる場
合には、図10に示すマスクパターンテーブルのP
(1,1)の条件に従って、図5の(c)の縮小画像デ
ータS(1,1)のビット状態は1すなわちオンドット
となる。この場合、誤差値Eとして−1/4が算出され
る。
When the pixel state of the original image data in the reference area is 1/2 of the on-dots as shown in FIG. 6C, the mask pattern table shown in FIG. 9 may be used. good. When the pixel state of the original image image data O (1,1) in the reference area of FIG. 5A is 3/4 of the pixels are on-dots as shown in FIG. P of the mask pattern table shown in FIG.
According to the condition (1,1), the bit state of the reduced image data S (1,1) in FIG. 5C is 1 or on-dot. In this case, -1/4 is calculated as the error value E.

【0046】図5の(a)の参照エリア内の原イメージ
画像データO(1,2)の画素状態が図6の(d)に示
すように3/4の画素がオンドットとなる場合には、図
10に示すマスクパターンテーブルのP(1,2)の条
件に従って、図5の(c)の縮小画像データS(1,
2)のビット状態は0すなわちオフドットとなる。この
場合、誤差値Eとして3/4が算出される。
When the pixel state of the original image data O (1,2) in the reference area of FIG. 5 (a) is 3/4 pixel is on-dot as shown in FIG. 6 (d). According to the condition P (1,2) in the mask pattern table shown in FIG. 10, the reduced image data S (1,
The bit state of 2) is 0, that is, off dot. In this case, 3/4 is calculated as the error value E.

【0047】また、図5の(a)の参照エリア内の原イ
メージ画像データO(2,1)の画素状態が図6の
(d)に示すように3/4の画素がオンドットとなる場
合には、図10に示すマスクパターンテーブルのP
(2,1)の条件に従って、図5の(c)の縮小画像デ
ータS(2,1)のビット状態は1すなわちオンドット
となる。この場合、誤差値Eとして−1/4が算出され
る。
In addition, as shown in (d) of FIG. 6, the pixel state of the original image data O (2,1) in the reference area of (a) of FIG. In this case, P in the mask pattern table shown in FIG.
According to the condition (2,1), the bit state of the reduced image data S (2,1) in FIG. 5C is 1 or on-dot. In this case, -1/4 is calculated as the error value E.

【0048】尚、誤差の算出において、任意の位置の原
画像データの画素に対応するマスクパターンテーブルの
画素は、例えば、原画像データのx行y列(x、y:正
の整数)の画像データの画素、つまり、(x,y)に位
置する原画像データの画素は(x,y)に位置するマス
クパターンテーブルの画素に対応している。次にデータ
変換処理により生じた誤差を配分する方法について説明
する。
In calculating the error, the pixel of the mask pattern table corresponding to the pixel of the original image data at an arbitrary position is, for example, an image of x row and y column (x, y: positive integer) of the original image data. The pixel of the data, that is, the pixel of the original image data located at (x, y) corresponds to the pixel of the mask pattern table located at (x, y). Next, a method of distributing the error caused by the data conversion process will be described.

【0049】実施の形態1において、誤差は図11の
(a)あるいは(b)に示す様に、隣接参照エリアに加
算配分する。図11の(a)の場合、参照エリア内の原
イメージ画像データO(1,1)の倍率変換処理時に生
じた誤差は次の処理エリアである参照エリア内の原イメ
ージデータO(1,2)に加算配分する。図11の
(b)の場合、参照エリア内の原イメージ画像データO
(1,1)の倍率変換処理時に生じた誤差は、次のライ
ンの処理エリアである参照エリア内の原イメージ画像デ
ータO(2,1)に加算配分される。
In the first embodiment, the error is additionally distributed to the adjacent reference areas as shown in FIG. 11 (a) or (b). In the case of FIG. 11A, the error generated during the magnification conversion processing of the original image image data O (1,1) in the reference area is the original image data O (1,2) in the reference area which is the next processing area. ). In the case of FIG. 11B, the original image data O in the reference area
The error generated during the magnification conversion processing of (1,1) is added and distributed to the original image data O (2,1) in the reference area which is the processing area of the next line.

【0050】次に、参照エリア内の信号と倍率変換処理
後の信号との誤差を隣接参照エリアに加算配分する処理
について、図12を用いて説明する。図12は実施の形
態1の誤差の加算配分の処理を示すブロック図である。
誤差Exyを入力補正部131で、Ixy(=X/(M
×N))に繰り入れられ、補正値I’xyが得られる。
補正値I’xyは、比較器135でI’xyの対応する
マスクパターンテーブルのオン/オフ条件に基づく比較
信号134と比較される。そして、このときの補正値
I’xyとの誤差Exyは差分演算部132で求めら
れ、 Exy=I’xy−Pxy となる。
Next, the process of adding and distributing the error between the signal in the reference area and the signal after the magnification conversion process to the adjacent reference area will be described with reference to FIG. FIG. 12 is a block diagram showing a process of addition and distribution of errors according to the first embodiment.
The input correction unit 131 calculates the error Exy as Ixy (= X / (M
× N)), and the correction value I′xy is obtained.
The correction value I′xy is compared by the comparator 135 with the comparison signal 134 based on the ON / OFF condition of the mask pattern table corresponding to I′xy. Then, the error Exy from the correction value I′xy at this time is obtained by the difference calculation unit 132 and becomes Exy = I′xy−Pxy.

【0051】ここで、マスクパターンテーブルがオンド
ットである場合は、 Pxy=1 マスクパターンテーブルがオフドットである場合は、 Pxy=0 となる。
Here, when the mask pattern table is on dots, Pxy = 1, and when the mask pattern table is off dots, Pxy = 0.

【0052】そして、誤差を配分されて得られた画像デ
ータは、アドレス信号133に従って、メモリ136に
格納され、順次記録部30へと出力される。尚、上述の
誤差を配分する方法はハード回路で行っても良いし、ソ
フトウェア的に処理を行っても良い。以上説明したよう
に、実施の形態1によれば、高縮小倍率にもかかわら
ず、原画像データの情報が完全に消失あるいはつぶれる
ことなく中間調画像を再現することができる。また、参
照エリア内の原イメージ画像の画素状態に応じて、より
詳細に縮小画像のビット状態を可変指定することができ
るので、中間調画像の階調再現性にもすぐれている。更
に、データ変換処理により生じた誤差を隣接画素へ繰り
入れることで、縮小画像においても原画像の階調が保存
される。
The image data obtained by distributing the error is stored in the memory 136 according to the address signal 133, and is sequentially output to the recording unit 30. The method of distributing the above error may be performed by a hard circuit or may be performed by software. As described above, according to the first embodiment, it is possible to reproduce a halftone image without completely losing or destroying the information of the original image data despite the high reduction ratio. Further, since the bit state of the reduced image can be variably specified in more detail according to the pixel state of the original image image in the reference area, the gradation reproducibility of the halftone image is also excellent. Further, by introducing the error generated by the data conversion processing into the adjacent pixels, the gradation of the original image is preserved even in the reduced image.

【0053】尚、原イメージ画像データの中間調の階調
再現性をより良く再現するには、参照エリア内の原イメ
ージ画像データの画素状態におけるオンドットの割合を
Zとした場合、対応部位の縮小画像データのビット状態
が1となる頻度はZと等しくなるようにマスクパターン
テーブルの条件を設定することが好ましい。尚、実施の
形態1においては2×2画素を1画素に変換する方法に
ついて説明したが、これに限らず参照エリアのM×N画
素を縮小画像m×n(M>m,N>n)画素に変換する
場合においても同様の方法で処理が可能となる。但し、
このようなm×n/M×N倍に縮小する場合において、
マスクパターンテーブルがセットされる時は、ステップ
S413におけるオンドット部の判定は、対応するマス
クパターンテーブルのm×nのブロックに配置されるオ
ンドットの位置を判定した後、次のステップに進む。
In order to better reproduce the halftone gradation reproducibility of the original image data, if the proportion of on-dots in the pixel state of the original image data in the reference area is Z, the corresponding portion It is preferable to set the conditions of the mask pattern table so that the frequency with which the bit state of the reduced image data becomes 1 is equal to Z. Although the method of converting 2 × 2 pixels into 1 pixel has been described in the first embodiment, the present invention is not limited to this, and M × N pixels in the reference area are reduced images m × n (M> m, N> n). The same method can be used for conversion into pixels. However,
In the case of reducing by m × n / M × N times,
When the mask pattern table is set, the determination of the on-dot portion in step S413 determines the position of the on-dot arranged in the m × n block of the corresponding mask pattern table, and then proceeds to the next step.

【0054】<実施の形態2>実施の形態1では誤差の
配分を図11のように隣接する画素に配分しているが、
実施の形態2では図14のような誤差の配分を行う。実
施の形態2の倍率変換処理のフローを図13を用いて説
明する。図13は実施の形態2の倍率変換処理のフロー
チャートである。
<Second Embodiment> In the first embodiment, the error distribution is distributed to adjacent pixels as shown in FIG.
In the second embodiment, the error distribution shown in FIG. 14 is performed. The flow of magnification conversion processing according to the second embodiment will be described with reference to FIG. FIG. 13 is a flowchart of the magnification conversion process according to the second embodiment.

【0055】ステップS500で、画像データ入力部2
2にイメージ画像データを入力する。ステップS501
に進み、操作パネル27から指示された倍率を倍率設定
部26で設定する。ステップS502で、設定された倍
率に応じて変換するイメージ画像データのビット数およ
び参照すべきエリア(M行×N列:M、Nは正の整数)
を決定部35で決定する。ステップS503で、あらか
じめ算出されている誤差Eを所定参照エリアへ配分す
る。ステップS504で、参照エリア内の画像データを
画像抽出部36で抽出する。ステップS505で、参照
エリア内における画像データのオンドット状態をドット
数判別部37で判別・計数し、オンドット画素数X(X
は実数)を求める。ステップS505で、誤差配分部4
6でデータ変換処理により生じた誤差値Eを加えた新た
なオンドットの画素数Xを計算する。
In step S500, the image data input unit 2
Image data is input to 2. Step S501
Then, the magnification setting unit 26 sets the magnification designated by the operation panel 27. In step S502, the number of bits of image image data to be converted according to the set magnification and the area to be referred to (M rows × N columns: M, N is a positive integer)
Is determined by the determining unit 35. In step S503, the error E calculated in advance is distributed to the predetermined reference area. In step S504, the image extraction unit 36 extracts the image data in the reference area. In step S505, the on-dot state of the image data in the reference area is determined and counted by the dot number determination unit 37, and the on-dot pixel number X (X
Is a real number). In step S505, the error distribution unit 4
In step 6, a new on-dot pixel number X is calculated by adding the error value E generated by the data conversion process.

【0056】ステップS506で、ステップS505で
算出されたXが、0<X/(M×N)<1を満たすかど
うかの判定を行う。Xが0<X/(M×N)<1である
場合には(ステップS506でYES)、ステップS5
12で、イメージ画像データに応じたマスクパターンテ
ーブルをマスクパターン設定部39で設定する。ステッ
プS513で、マスクパターンの対応位置がオンドット
指定部分である場合は(ステップS513でYES)、
ステップS514で、変換するイメージ画像データの対
応画素のビット状態を1とする。そして、ステップS5
17で、X/(M×N)−1を誤差値Eとして算出す
る。マスクパターンの対応位置がオフドット指定部分の
場合は(ステップS513でNO)、ステップS515
で、変換するイメージ画像データの対応画素のビット状
態を0とする。そして、ステップS517でX/(M×
N)を誤差値Eとして算出する。
In step S506, it is determined whether X calculated in step S505 satisfies 0 <X / (M × N) <1. If X is 0 <X / (M × N) <1 (YES in step S506), step S5
At 12, the mask pattern setting unit 39 sets the mask pattern table according to the image data. In step S513, if the corresponding position of the mask pattern is the on-dot designated portion (YES in step S513),
In step S514, the bit state of the corresponding pixel of the image data to be converted is set to 1. Then, step S5
At 17, X / (M × N) −1 is calculated as the error value E. If the corresponding position of the mask pattern is the off-dot designated portion (NO in step S513), step S515.
Then, the bit state of the corresponding pixel of the image image data to be converted is set to 0. Then, in step S517, X / (M ×
N) is calculated as the error value E.

【0057】ステップS506で、Xが0<X/(M×
N)<1を満たさない場合は(ステップS506でN
O)、ステップS507に進み、XがX/(M×N)>
1であるかどうかの判定を行う。ステップS507で、
X/(M×N)>1である場合は(ステップS507で
YES)、ステップS515で、変換するイメージ画像
データの対応する画素のビット状態を1とする。ステッ
プS507で、X/(M×N)>1でない場合は(ステ
ップS507でNO)、ステップS508へ進み、X/
(M×N)<0であるかどうかの判定を行う。
In step S506, X is 0 <X / (M ×
N) <1 is not satisfied (N in step S506
O), the process proceeds to step S507, and X is X / (M × N)>
It is determined whether it is 1. In step S507,
When X / (M × N)> 1 (YES in step S507), the bit state of the corresponding pixel of the image image data to be converted is set to 1 in step S515. When X / (M × N)> 1 is not satisfied in step S507 (NO in step S507), the process proceeds to step S508 and X /
It is determined whether or not (M × N) <0.

【0058】ステップS508で、X/(M×N)<0
である場合は(ステップS508でYES)、ステップ
S515で、変換するイメージ画像データの対応画素の
ビット状態を0とする。ステップS508で、X/(M
×N)<0でない場合は(ステップS508でNO)、
ステップS509へ進み、XがX/(M×N)=0であ
るかどうかの判定を行う。
In step S508, X / (M × N) <0
If (YES in step S508), the bit state of the corresponding pixel of the image image data to be converted is set to 0 in step S515. In step S508, X / (M
× N) <0 (NO in step S508),
In step S509, it is determined whether X is X / (M × N) = 0.

【0059】ステップS509で、X/(M×N)=0
である場合は(ステップS509でYES)、ステップ
S511で、変換するイメージ画像データの対応画素の
ビット状態を0とする。ステップS509で、X/(M
×N)=0でない場合は(ステップS509でNO)、
ステップS510へ進み、ステップS510で、変換す
るイメージ画像データの対応画素のビット状態を1とす
る。
In step S509, X / (M × N) = 0
If (YES in step S509), the bit state of the corresponding pixel of the image image data to be converted is set to 0 in step S511. In step S509, X / (M
× N) = 0 (NO in step S509),
Proceeding to step S510, the bit state of the corresponding pixel of the image image data to be converted is set to 1 in step S510.

【0060】尚、ステップS509の計算結果が0ある
いは1の場合は倍率変換処理による誤差が生じないた
め、誤差の算出を行う必要はなく、誤差量は0となる。
ステップS516で、全参照エリアのイメージ画像デー
タの処理が終了されたどうかの判定を行う。終了が判定
されない場合は(ステップS516でNO)、ステップ
S518で、次の参照エリアへ移動し上記処理が繰り返
される。全参照エリアのイメージ画像データの処理が終
了した場合は(ステップS516でYES)、ステップ
S519で、所定量のイメージ画像データが記録部30
を介して記録出力される。
If the calculation result in step S509 is 0 or 1, no error occurs due to the magnification conversion process, and therefore it is not necessary to calculate the error, and the error amount becomes 0.
In step S516, it is determined whether the processing of the image data of all reference areas is completed. If the end is not determined (NO in step S516), the process moves to the next reference area and the above process is repeated in step S518. If the processing of the image image data of all reference areas is completed (YES in step S516), a predetermined amount of image image data is recorded in the recording unit 30 in step S519.
It is recorded and output via.

【0061】次に実施の形態2のイメージ画像データの
誤差拡散方法について、図15を用いて説明する。図1
5は実施の形態2の誤差の加算配分の処理を示すブロッ
ク図である。実施の形態2における誤差の拡散処理は、
参照エリア内の信号と倍率変換処理後の信号との積算誤
差を2次元的に清算していくものである。参照エリア内
の信号Ixy(=X/(M×N))の周辺に、差分演算
部132により倍率変換時に生じた誤差Exyに、誤差
配分器153により誤差拡散マトリクスに基づく誤差配
分係数154(拡散マトリクス内の座標j、kにおける
係数をKjkとする:j、kは正の整数)を乗算して重
みづけを行う。この結果、次式の積算誤差Sxyを求め
ると、 Sxy=(1/ΣKjk)ΣKjk・Ex-j,y-k 次に積算誤差Sxyは誤差バッファメモリ152に格納
される。そして、求める参照エリアの位置に対応する積
算誤差Sxyを入力補正部131でIxyに繰り入れ、
補正値I’xyを得る。
Next, the error diffusion method for image data of the second embodiment will be described with reference to FIG. FIG.
FIG. 5 is a block diagram showing a process of addition and distribution of errors according to the second embodiment. The error diffusion process in the second embodiment is
This is to two-dimensionally settle the accumulated error between the signal in the reference area and the signal after the magnification conversion processing. In the vicinity of the signal Ixy (= X / (M × N)) in the reference area, the error distribution coefficient 154 (diffusion) based on the error diffusion matrix 154 The coefficient at the coordinates j and k in the matrix is Kjk: j and k are positive integers), and weighting is performed. As a result, when the integrated error Sxy of the following equation is obtained: Sxy = (1 / ΣKjk) ΣKjk · Ex-j, y-k Next, the integrated error Sxy is stored in the error buffer memory 152. Then, the integrated error Sxy corresponding to the position of the desired reference area is input to Ixy by the input correction unit 131,
The correction value I'xy is obtained.

【0062】尚、誤差バッファメモリ152は原画像を
分割した参照エリアの列であるラインの2ライン分のデ
ータを格納できる容量を持っている。このバッファメモ
リ容量は変換倍率に応じて可変可能である。実施の形態
2に用いる誤差拡散マトリクスは、図14に示すような
マトリクスになる。図は、座標O(1,1)の画像デー
タの1/3をそれぞれ3方向の座標に配分させることを
示している。
The error buffer memory 152 has a capacity capable of storing data for two lines, which are columns of the reference area obtained by dividing the original image. This buffer memory capacity can be changed according to the conversion magnification. The error diffusion matrix used in the second embodiment is a matrix as shown in FIG. The figure shows that 1/3 of the image data of the coordinate O (1,1) is distributed to the coordinates in three directions.

【0063】また、補正値I’xyはI’xy=Ixy
+Sxyとなる。周囲参照エリアの画像データに、倍率
変換処理に生じた誤差を加算した補正値I’xyは比較
器135で、信号I’xyの対応するマスクパターンテ
ーブルのオン/オフ条件に基づく比較信号134と比較
される。このときの補正値I’xyと誤差Exyは差分
演算部132で求められ、 Exy=I’xy−Pxyとなる。
The correction value I'xy is I'xy = Ixy
It becomes + Sxy. The correction value I′xy obtained by adding the error generated in the magnification conversion process to the image data of the peripheral reference area is compared by the comparator 135 with the comparison signal 134 based on the ON / OFF condition of the mask pattern table corresponding to the signal I′xy. Be compared. The correction value I′xy and the error Exy at this time are obtained by the difference calculation unit 132, and Exy = I′xy−Pxy.

【0064】ここで、マスクパターンテーブルがオンド
ットの場合は、 Pxy=1 マスクパターンテーブルがオフドットの場合は、 Pxy=0 となる。
Here, when the mask pattern table is on-dots, Pxy = 1, and when the mask pattern table is off-dots, Pxy = 0.

【0065】そして、誤差を配分されて得られた画像デ
ータは、アドレス信号133に従って、メモリ136に
格納され、順次記録部へと出力される。尚、上述の誤差
を配分する方法はハード回路で行っても良いし、ソフト
ウェア的に処理を行っても良い。また、図16の誤差拡
散マトリクスを用いた場合は、図17のような構成にな
り、図16の誤差拡散マトリクスに従う誤差配分係数1
64と3ライン分の画像データの記憶容量を持つ誤差バ
ッファメモリ162以外の構成は図15と同様であり具
体的な処理は上述の図15の説明と同様である。
The image data obtained by distributing the error is stored in the memory 136 according to the address signal 133, and is sequentially output to the recording section. The method of distributing the above error may be performed by a hard circuit or may be performed by software. When the error diffusion matrix of FIG. 16 is used, the configuration is as shown in FIG. 17, and the error distribution coefficient 1 according to the error diffusion matrix of FIG.
The configuration is the same as that of FIG. 15 except for the error buffer memory 162 having the storage capacity of 64 and the image data of 3 lines, and the specific processing is the same as that described in FIG.

【0066】尚、誤差拡散マトリクスおよび誤差配分係
数は実施の形態2で説明したものに限定されず、処理に
用いるメモリの容量、倍率変換処理を行う画像に応じて
別の誤差拡散マトリクスおよび誤差配分係数を用いるこ
とも容易に可能である。以上説明したように、実施の形
態2では、実施の形態1と同様に高縮小倍率にもかかわ
らず、原画像データの情報が完全に消失あるいはつぶれ
ることなく中間調画像を再現することができる。また、
参照エリア内の原イメージ画像の画素状態に応じて、よ
り詳細に縮小画像のビット状態を可変指定することがで
きるので、中間調画像の階調再現性も向上することがで
きる。
The error diffusion matrix and the error distribution coefficient are not limited to those described in the second embodiment, and another error diffusion matrix and error distribution may be used depending on the capacity of the memory used for the processing and the image on which the magnification conversion processing is performed. It is also possible to easily use the coefficient. As described above, in the second embodiment, a halftone image can be reproduced without completely losing or destroying the information of the original image data, despite the high reduction ratio, as in the first embodiment. Also,
Since the bit state of the reduced image can be variably specified in more detail according to the pixel state of the original image image in the reference area, the gradation reproducibility of the halftone image can be improved.

【0067】更に、拡散マトリクスに従って広範囲に誤
差を拡散できるため、原画像の階調をより良好に保存す
ることが可能となる。尚、原イメージ画像データの中間
調の階調再現性をよりよく再現するには、参照エリア内
の原イメージ画像データの画素状態におけるオンドット
の割合をZとした場合、対応部位の縮小画像データのビ
ット状態が1となる頻度はZと等しくなるようにマスク
パターンテーブルの条件を設定することが好ましい。
Further, since the error can be diffused in a wide range according to the diffusion matrix, the gradation of the original image can be saved more favorably. In order to better reproduce the halftone gradation reproducibility of the original image data, if the ratio of on-dots in the pixel state of the original image data in the reference area is Z, the reduced image data of the corresponding part It is preferable to set the conditions of the mask pattern table so that the frequency with which the bit state of 1 becomes 1 is equal to Z.

【0068】<実施の形態3>実施の形態3による誤差
を拡散する方式も、上述した実施の形態2の方式と同様
に、参照エリア内の信号と倍率変換処理後の信号との積
算誤差を2次元的に清算する方法を用いている。実施の
形態3においては、2種類の誤差拡散マトリクスを用い
て誤差の拡散方法を行う。その方法を、図18を用いて
説明する。
<Third Embodiment> In the method of diffusing an error according to the third embodiment, similarly to the method of the second embodiment, the accumulated error between the signal in the reference area and the signal after the magnification conversion processing is calculated. A two-dimensional liquidation method is used. In the third embodiment, the error diffusion method is performed using two types of error diffusion matrices. The method will be described with reference to FIG.

【0069】参照エリア内の信号Ixy(=X/(M×
N))の周辺に、倍率変換時に生じた誤差Exyに誤差
配分器153により誤差拡散マトリクスに基づく誤差配
分係数Kjkを乗算して重みづけを行い、次式の積算誤
差Sxyを求める。 Sxy=(1/ΣKjk)ΣKjk・Ex-j,y-k (但し、j,kは拡散マトリクス内の座標) 次に積算誤差Sxyを入力補正部131でIxyに繰り
入れ、補正値I’xyを得る。
The signal Ixy (= X / (M ×
N)) is multiplied by the error distribution coefficient Kjk based on the error diffusion matrix by the error distribution unit 153 and the error Exy generated at the time of magnification conversion, and weighted to obtain the integrated error Sxy of the following equation. Sxy = (1 / ΣKjk) ΣKjk · Ex-j, y-k (where j and k are coordinates in the diffusion matrix) Next, the integrated error Sxy is input to Ixy by the input correction unit 131 to obtain the correction value I′xy. obtain.

【0070】実施の形態3における誤差拡散マトリクス
は、図14および図16に示す。また、補正値I’xy
はI’xy=Ixy+Sxyとなる。周囲参照エリアの
画像データに倍率変換処理に生じた誤差を加算した補正
値I’xyは比較器135で信号I’xyの対応するマ
スクパターンテーブルのオン/オフ条件に基づく比較信
号134と比較される。このときの誤差Exyは差分演
算部132で求められ、 Exy=I’xy−Pxy となる。
The error diffusion matrix in the third embodiment is shown in FIGS. 14 and 16. In addition, the correction value I'xy
Becomes I'xy = Ixy + Sxy. The correction value I'xy obtained by adding the error generated in the magnification conversion process to the image data of the peripheral reference area is compared by the comparator 135 with the comparison signal 134 based on the ON / OFF condition of the mask pattern table corresponding to the signal I'xy. It The error Exy at this time is obtained by the difference calculation unit 132 and becomes Exy = I′xy−Pxy.

【0071】ここで、マスクパターンテーブルがオンド
ットの場合は、 Pxy=1 マスクパターンテーブルがオフドットの場合は、 Pxy=0 となる。
Here, when the mask pattern table is on-dots, Pxy = 1, and when the mask pattern table is off-dots, Pxy = 0.

【0072】尚、誤差拡散マトリクスはセレクタ17
2、175、177の切り替えにより可変可能となって
いる。また、セレクタの切り替えは、選択信号Sによっ
て切り替えられる。切り替えの条件は、処理すべき参照
エリア内の信号値、データ変換倍率、画像データの種類
等に従って制御される。そして、誤差を配分されて得ら
れた画像データは、アドレス信号133に従って、メモ
リ136に格納され、順次記録部へと出力される。
The error diffusion matrix is the selector 17
It can be changed by switching between 2, 175 and 177. Further, switching of the selector is switched by the selection signal S. The switching condition is controlled according to the signal value in the reference area to be processed, the data conversion ratio, the type of image data, and the like. Then, the image data obtained by distributing the error is stored in the memory 136 according to the address signal 133, and is sequentially output to the recording unit.

【0073】実施の形態3では、誤差バッファメモリを
誤差バッファメモリ152、誤差バッファメモリ162
のように2つの構成を用いて行っているが、これを誤差
バッファメモリ162に、画像データに応じて誤差配分
係数154あるいは誤差配分係数を164による積算誤
差を格納するような構成にすることもできる。誤差バッ
ファメモリ152、162の切り換えは、データ変換倍
率や画像の種類に応じて決定した誤差拡散マトリクスの
大きさにより切り換えられ、同一画像内では変化しな
い。参照エリア毎に条件を可変する場合、即ち、同一画
像内で条件を変更する場合には、バッファメモリ容量が
大きい誤差バッファメモリ162を用い、誤差配分係数
154、164の切り換えのみ行う。尚、誤差拡散マト
リクスは実施の形態3に示したものに限定されず、拡散
マトリクスサイズ、誤差配分係数、可変可能な数、処理
に用いるメモリの容量やデータ変換倍率の設定数は、取
り扱う画像の種類に適したものを用いることが好まし
い。また、画像の種類の解析は像域分離回路等を用いて
行う。
In the third embodiment, the error buffer memories are error buffer memory 152 and error buffer memory 162.
As described above, the error buffer memory 162 may be configured to store the error distribution coefficient 154 or the error distribution coefficient 164 according to the image data. it can. The switching between the error buffer memories 152 and 162 is switched according to the size of the error diffusion matrix determined according to the data conversion magnification and the type of image, and does not change within the same image. When changing the condition for each reference area, that is, when changing the condition within the same image, the error buffer memory 162 having a large buffer memory capacity is used and only the error distribution coefficients 154 and 164 are switched. The error diffusion matrix is not limited to that shown in the third embodiment, and the diffusion matrix size, the error distribution coefficient, the variable number, the capacity of the memory used for the processing, and the set number of the data conversion magnification are determined depending on the image to be handled. It is preferable to use the one suitable for the type. The analysis of the image type is performed using an image area separation circuit or the like.

【0074】尚、上述の誤差を配分する方法はハード回
路で行っても良いし、ソフトウェア的に処理を行っても
良い。また、実施の形態2と同様に、拡散マトリクスに
従って広範囲に誤差を拡散できるため原画像の階調をよ
り良好に保存可能となる。以上説明したように、実施の
形態3では、実施の形態2と同様に高縮小倍率にもかか
わらず、原画像データの情報が完全に消失あるいはつぶ
れることなく中間調画像を再現することができる。ま
た、参照エリア内の原イメージ画像の画素状態に応じ
て、より詳細に縮小画像のビット状態を可変指定するこ
とで中間調画像の階調再現性も向上することができる。
The method of distributing the above-mentioned error may be performed by a hard circuit or may be performed by software. Further, as in the second embodiment, since the error can be diffused in a wide range according to the diffusion matrix, the gradation of the original image can be stored better. As described above, in the third embodiment, a halftone image can be reproduced without completely losing or destroying the information of the original image data despite the high reduction ratio, as in the second embodiment. Further, the gradation reproducibility of the halftone image can be improved by variably designating the bit state of the reduced image in more detail according to the pixel state of the original image image in the reference area.

【0075】更に、原イメージ画像データの中間調の階
調再現性をよりよく再現するには、参照エリア内の原イ
メージ画像データの画素状態におけるオンドットの割合
をZとした場合、対応部位の縮小画像データのビット状
態が1となる頻度はZと等しくなるようにマスクパター
ンテーブルの条件を設定することが好ましい。尚、本発
明は、複数の機器から構成されるシステムに適用して
も、1つの機器から成る装置に適用しても良い。また、
本発明はシステム或は装置にプログラムを供給すること
によって達成される場合にも適用できることはいうまで
もない。
Furthermore, in order to better reproduce the halftone gradation reproducibility of the original image image data, if the proportion of on-dots in the pixel state of the original image image data in the reference area is Z, It is preferable to set the conditions of the mask pattern table so that the frequency with which the bit state of the reduced image data becomes 1 is equal to Z. The present invention may be applied to a system including a plurality of devices or an apparatus including a single device. Also,
It goes without saying that the present invention can also be applied to the case where it is achieved by supplying a program to a system or an apparatus.

【0076】[0076]

【発明の効果】以上の説明からも明らかなように、本発
明によれば、中間調画像の再現性を維持しつつ所望縮小
サイズの画像出力が可能な記録装置及びその方法を提供
できる。また、カラー記録においても原画像の色調を再
現維持しつつ所望サイズの画像出力が可能な記録装置及
びその方法を提供できる。
As is apparent from the above description, according to the present invention, it is possible to provide a recording apparatus and method capable of outputting an image of a desired reduced size while maintaining the reproducibility of a halftone image. Further, it is possible to provide a recording apparatus and method capable of outputting an image of a desired size while reproducing and maintaining the color tone of an original image even in color recording.

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

【図1】実施の形態1の記録装置の構成を示すブロック
図である。
FIG. 1 is a block diagram showing a configuration of a recording apparatus according to a first embodiment.

【図2】実施の形態1の記録部の要部構成を示す斜視図
である。
FIG. 2 is a perspective view showing a main configuration of a recording unit according to the first embodiment.

【図3】実施の形態1のデータ変換処理を行う処理部の
構成を示すブロック図である。
FIG. 3 is a block diagram showing a configuration of a processing unit that performs a data conversion process according to the first embodiment.

【図4】実施の形態1の倍率変換処理を示すフローチャ
ートである。
FIG. 4 is a flowchart showing a magnification conversion process according to the first embodiment.

【図5】実施の形態1の原イメージ画像データと参照エ
リア及び縮小画像データの関係を示す図である。
FIG. 5 is a diagram showing the relationship between the original image image data and the reference area / reduced image data according to the first embodiment.

【図6】実施の形態1の参照エリアサイズで分割した原
イメージ画像データの画素状態を示す図である。
FIG. 6 is a diagram showing a pixel state of original image image data divided by a reference area size according to the first embodiment.

【図7】実施の形態1の参照エリアサイズで分割したエ
リア内の原イメージ画像データの1/4の画素がオンド
ットの場合に用いるデータ変換用マスクパターンテーブ
ルを示す図である。
FIG. 7 is a diagram showing a data conversion mask pattern table used when 1/4 pixel of original image image data in an area divided by a reference area size according to the first embodiment is an on-dot.

【図8】実施の形態1の参照エリアサイズで分割したエ
リア内の原イメージ画像データの1/2の画素がオンド
ットの場合に用いるデータ変換用マスクパターンテーブ
ルを示す図である。
FIG. 8 is a diagram showing a data conversion mask pattern table used when 1/2 pixel of the original image image data in the area divided by the reference area size of the first embodiment is an on dot.

【図9】実施の形態1の参照エリアサイズで分割したエ
リア内の原イメージ画像データの1/2の画素がオンド
ットの場合に用いるデータ変換用マスクパターンテーブ
ルを示す図である。
FIG. 9 is a diagram showing a data conversion mask pattern table used when 1/2 pixel of the original image image data in the area divided by the reference area size of the first embodiment is an on-dot.

【図10】実施の形態1の参照エリアサイズで分割した
エリア内の原イメージ画像データの3/4の画素がオン
ドットの場合に用いるデータ変換用マスクパターンテー
ブルを示す図である。
FIG. 10 is a diagram showing a data conversion mask pattern table used when 3/4 pixels of original image image data in an area divided by a reference area size according to the first embodiment are on dots.

【図11】実施の形態1の誤差配分位置を示す図であ
る。
FIG. 11 is a diagram showing error distribution positions according to the first embodiment.

【図12】実施の形態1の誤差の加算配分の処理を示す
ブロック図である。
FIG. 12 is a block diagram showing a process of addition and distribution of errors according to the first embodiment.

【図13】実施の形態2の倍率変換処理を示すフローチ
ャートである。
FIG. 13 is a flowchart showing a magnification conversion process according to the second embodiment.

【図14】実施の形態2の誤差配分位置を示す図であ
る。
FIG. 14 is a diagram showing error distribution positions according to the second embodiment.

【図15】実施の形態2の誤差の加算配分の処理を示す
ブロック図である。
FIG. 15 is a block diagram showing a process of addition and distribution of errors according to the second embodiment.

【図16】実施の形態2の他の誤差配分位置を示す図で
ある。
FIG. 16 is a diagram showing another error distribution position according to the second embodiment.

【図17】実施の形態2の他の誤差の加算配分の処理を
示すブロック図である。
FIG. 17 is a block diagram showing another error addition and distribution process according to the second embodiment.

【図18】実施の形態3の誤差の加算配分の処理を示す
ブロック図である。
FIG. 18 is a block diagram showing a process of addition and distribution of errors according to the third embodiment.

【図19】間引き処理により1/2縮小処理を行う場合
の間引き位置を示す図である。
FIG. 19 is a diagram showing the thinning-out positions when the 1/2 reduction processing is performed by the thinning-out processing.

【図20】原画像と間引き処理により1/2縮小処理を
行った画像を示す図である。
FIG. 20 is a diagram showing an original image and an image subjected to 1/2 reduction processing by thinning processing.

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

1 記録ヘッド 2、3 排紙ローラ 4 ガイドシャフト 5 エンコーダ 6、7 駆動ベルト 8 キャリッジモータ 9 インクチューブ 10 インクタンク 400 回復ユニット 420 キャップ部 540 ブレード 541 拭き部材 21 インタフェース 22 画像入力部 23 CPU 24 RAM 25 ROM 25a マスクパターンテーブル群 25b 文字パターンテーブル群 25c プログラム群 26 倍率設定部 27 操作パネル 28 アドレス指示部 29 アドレス管理回路 30 記録部 310 バスライン 320 処理部 32 第1メモリ 36 画像抽出部 37 ドット数判別部 38 データ変換処理部 39 マスクパターン設定部 41 第2メモリ 42 アドレス指定部 43 記録部 44 第3メモリ 45 誤差算出部 46 誤差配分部 131 入力補正部 132 差分演算部 133 アドレス信号 134 比較信号 135 比較器 136 メモリ 152 誤差バッファメモリ 153 誤差配分器 154 誤差配分係数 162 誤差バッファメモリ 164 誤差配分係数 172 セレクタ 175 セレクタ 177 セレクタ 1 Recording Head 2, 3 Paper Ejection Roller 4 Guide Shaft 5 Encoder 6, 7 Drive Belt 8 Carriage Motor 9 Ink Tube 10 Ink Tank 400 Recovery Unit 420 Cap Unit 540 Blade 541 Wiping Member 21 Interface 22 Image Input Unit 23 CPU 24 RAM 25 ROM 25a Mask pattern table group 25b Character pattern table group 25c Program group 26 Magnification setting section 27 Operation panel 28 Address designating section 29 Address management circuit 30 Recording section 310 Bus line 320 Processing section 32 First memory 36 Image extracting section 37 Dot number determination Unit 38 data conversion processing unit 39 mask pattern setting unit 41 second memory 42 address designation unit 43 recording unit 44 third memory 45 error calculation unit 46 error distribution unit 131 input correction 132 difference calculation unit 133 the address signal 134 comparison signal 135 comparator 136 memory 152 error buffer memory 153 error distributor 154 the error distribution coefficients 162 error buffer memory 164 error distribution coefficients 172 selector 175 Selector 177 Selector

フロントページの続き (72)発明者 森村 和彦 東京都大田区下丸子3丁目30番2号 キヤ ノン株式会社内 (72)発明者 松本 正史 東京都大田区下丸子3丁目30番2号 キヤ ノン株式会社内Front page continuation (72) Inventor Kazuhiko Morimura 3-30-2 Shimomaruko, Ota-ku, Tokyo Canon Inc. (72) Masafumi Matsumoto 3-30-2 Shimomaruko, Ota-ku, Tokyo Canon Inc.

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 画像データを縮小処理して縮小画像を記
録する記録装置であって、 所望の倍率に設定する設定手段と、 前記設定手段で設定された倍率に基づいて、原画像デー
タを所定画素数からなる複数のブロックに分割する分割
手段と、 前記複数のブロックの取り得る濃度のそれぞれについて
縮小画像上のパターンデータを保持する保持手段と、 前記複数のブロックの一つについて濃度を算出する算出
する手段と、 前記算出手段によって得られた濃度に対応するパターン
データ上の当該ブロックに対応する位置の画素濃度で、
当該ブロックに対応する縮小画像上の画素濃度を獲得す
る獲得手段とを備えることを特徴とする記録装置。
1. A recording apparatus for reducing image data to record a reduced image, comprising setting means for setting a desired magnification, and predetermined original image data based on the magnification set by the setting means. A dividing unit that divides into a plurality of blocks composed of the number of pixels, a holding unit that holds pattern data on a reduced image for each of the densities that the plurality of blocks can have, and a density is calculated for one of the plurality of blocks. A means for calculating, and a pixel density at a position corresponding to the block on the pattern data corresponding to the density obtained by the calculating means,
A recording device, comprising: an acquisition unit that acquires a pixel density on a reduced image corresponding to the block.
【請求項2】 原画像データの前記算出手段で処理した
ブロックの濃度と該ブロックに対応する縮小画像上の所
定画素数からなるブロックの濃度との間の誤差を未処理
の原画像データのブロックへ配分する配分手段を更に備
え、 誤差が配分されて得る原画像データのブロックの濃度を
原画像データのブロックの濃度として算出することを特
徴とする請求項1に記載の記録装置。
2. A block of unprocessed original image data for an error between the density of a block of original image data processed by the calculating means and the density of a block having a predetermined number of pixels on a reduced image corresponding to the block. The recording apparatus according to claim 1, further comprising: a distribution unit that distributes the error to a block of the original image data obtained by distributing the error as a density of the block of the original image data.
【請求項3】 前記配分手段は、前記誤差を原画像デー
タの前記算出手段で処理したブロックの隣接ブロックに
加算することを特徴とする請求項2に記載の記録装置。
3. The recording apparatus according to claim 2, wherein the distribution unit adds the error to a block adjacent to a block of the original image data processed by the calculation unit.
【請求項4】 前記配分手段は、前記誤差を配分先に応
じて所定量を乗算して原画像データの前記算出手段で処
理したブロックの周囲のブロックに配分することを特徴
とする請求項2に記載の記録装置。
4. The distribution unit distributes the error to blocks around a block processed by the calculation unit of the original image data by multiplying a predetermined amount according to a distribution destination. The recording device according to 1.
【請求項5】 前記配分手段は、前記誤差の配分先と配
分先に応じた所定量のパターンを複数有し、 前記複数のパターンの一つを前記原画像データに基づい
て選択する選択手段を更に備えることを特徴とする請求
項4に記載の記録装置。
5. The distribution means includes a distribution destination of the error and a plurality of patterns of a predetermined amount corresponding to the distribution destination, and a selection means for selecting one of the plurality of patterns based on the original image data. The recording apparatus according to claim 4, further comprising:
【請求項6】 画像データを縮小処理して縮小画像を記
録する記録方法であって、 所望の倍率に設定する設定工程と、 前記設定工程で設定された倍率に基づいて、原画像デー
タを所定画素数からなる複数のブロックに分割する分割
工程と、 前記複数のブロックの取り得る濃度のそれぞれについて
縮小画像上のパターンデータを保持する保持工程と、 前記複数のブロックの一つについて濃度を算出する算出
する工程と、 前記算出工程によって得られた濃度に対応するパターン
データ上の当該ブロックに対応する位置の画素濃度で、
当該ブロックに対応する縮小画像上の画素濃度を獲得す
る獲得工程とを備えることを特徴とする記録方法。
6. A recording method of reducing image data to record a reduced image, comprising: a setting step of setting a desired magnification; and a step of setting original image data based on the magnification set in the setting step. A dividing step of dividing into a plurality of blocks composed of the number of pixels, a holding step of holding pattern data on a reduced image for each of the densities that the plurality of blocks can take, and a density of one of the plurality of blocks A step of calculating, and a pixel density at a position corresponding to the block on the pattern data corresponding to the density obtained by the calculating step,
An acquisition step of acquiring the pixel density on the reduced image corresponding to the block.
JP33504495A 1995-12-22 1995-12-22 Recording equipment and method therefor Pending JPH09174882A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP33504495A JPH09174882A (en) 1995-12-22 1995-12-22 Recording equipment and method therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP33504495A JPH09174882A (en) 1995-12-22 1995-12-22 Recording equipment and method therefor

Publications (1)

Publication Number Publication Date
JPH09174882A true JPH09174882A (en) 1997-07-08

Family

ID=18284123

Family Applications (1)

Application Number Title Priority Date Filing Date
JP33504495A Pending JPH09174882A (en) 1995-12-22 1995-12-22 Recording equipment and method therefor

Country Status (1)

Country Link
JP (1) JPH09174882A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114359029A (en) * 2022-03-21 2022-04-15 广州匠芯创科技有限公司 Image processing method, image processing apparatus, image processing system, and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114359029A (en) * 2022-03-21 2022-04-15 广州匠芯创科技有限公司 Image processing method, image processing apparatus, image processing system, and storage medium

Similar Documents

Publication Publication Date Title
EP0260020A2 (en) A method of generating a gray scale image
US5604605A (en) Method and device for intralinearly halftoning digitized grey value images
JP4715714B2 (en) Printed medium sorting apparatus, printed medium sorting program, storage medium storing the program, printed medium sorting method, printing apparatus, printing apparatus control program, storage medium storing the program, and printing apparatus control method
JP2009005397A (en) Half-toning method
US5638188A (en) Image processing method and apparatus with storing and selecting of dot patterns
JPH06334844A (en) Data processing method and recording device using the same
JP2002185789A (en) Image processing unit, print controller, image processing method, and recording medium
US6169608B1 (en) Method of converting continuous tone color image into pseudo-halftone binary color image
KR20000005016A (en) Method and device for recognizing image, and copying machine and printer using them
JPH0725064A (en) Picture forming equipment of electrophotographic printer
JP3604902B2 (en) Image processing device
JP2004202795A (en) Image processor and its method
US5689344A (en) Mitigation of tenting deletions in color xerographic printers
US7433083B2 (en) Halftone-image processing device
JPH09174882A (en) Recording equipment and method therefor
JP2002281306A (en) Method and apparatus for forming image, and recording medium
JPH1086503A (en) Color image processor
JPS62107573A (en) Image processor
US6850339B1 (en) Resolution enhancement of half-toned black data transmitted with color data
JP2012050062A (en) Image processor, image processing method and program
EP1513336A2 (en) Method of detecting half-toned uniform areas in bit-map
US6356360B1 (en) Apparatus and method for rendering halftone dot structures using grey level dots
JP3087845B2 (en) Digital image processing method for reading an original image with a scanner and enlarging and printing
JP2812401B2 (en) Image processing device
JP2935009B2 (en) Image processing apparatus and image processing method

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20020802