JP3099820B2 - Image processing device and storage medium - Google Patents

Image processing device and storage medium

Info

Publication number
JP3099820B2
JP3099820B2 JP10366783A JP36678398A JP3099820B2 JP 3099820 B2 JP3099820 B2 JP 3099820B2 JP 10366783 A JP10366783 A JP 10366783A JP 36678398 A JP36678398 A JP 36678398A JP 3099820 B2 JP3099820 B2 JP 3099820B2
Authority
JP
Japan
Prior art keywords
weighted average
pixel signal
pixel
color
image data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP10366783A
Other languages
Japanese (ja)
Other versions
JP2000196902A (en
Inventor
敏広 高柳
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.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP10366783A priority Critical patent/JP3099820B2/en
Publication of JP2000196902A publication Critical patent/JP2000196902A/en
Application granted granted Critical
Publication of JP3099820B2 publication Critical patent/JP3099820B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)
  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、たとえばスキャナ
装置やファクシミリ装置などにおいて、カラー画像の読
み取りを補正するために組み込まれた画像処理装置、お
よびその画像処理装置を制御するためのプログラムを記
憶した記憶媒体に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus incorporated in a scanner or a facsimile apparatus for correcting the reading of a color image and a program for controlling the image processing apparatus. It relates to a storage medium.

【0002】[0002]

【従来の技術】たとえばスキャナ装置やファクシミリ装
置などのカラー画像の読取機構を備えた装置において
は、イメージセンサから得られた信号をA/D変換しつ
つ、カラー補正処理などを施してRGB基調のカラー画
像データを生成する画像処理装置が組み込まれている。
2. Description of the Related Art For example, in a device having a color image reading mechanism such as a scanner device or a facsimile device, a signal obtained from an image sensor is subjected to A / D conversion and color correction processing or the like is performed so as to perform RGB-based tone correction. An image processing device for generating color image data is incorporated.

【0003】この種の画像処理装置においては、イメー
ジセンサに対して原稿用紙を副走査方向に沿って相対的
に移動させながら、そのイメージセンサの読取最小単位
となる各読取画素領域ごとに、RGB各色の色信号を含
む画素信号を順次取り込んでいる。そうして取り込まれ
た各画素信号は、中心となる一つの注目画素信号とその
副走査方向に1つ進んで、あるいは1つ前に得られた1
つの隣接画素信号との2点補間による加重平均を算出す
ることで補正され、その補正結果に基づいて各読取画素
領域ごとにカラー画像データが生成される。このような
2点補間による加重平均を用いた補正処理を行うことに
より、補正処理を行わない場合に比べて、副走査方向に
沿うカラー画像全体の階調がなめらかに表現可能とされ
ている。なお、ここでいう「加重平均」とは、注目画素
信号および隣接画素信号の双方に乗算されるウェイト全
てを正の定数値として数学的に定義された加重平均をい
い、このような加重平均を求めるためには、画素信号を
入力値として加重平均を出力する演算回路などによって
実現される。
In this type of image processing apparatus, while moving a manuscript paper relative to an image sensor in the sub-scanning direction, each of the read pixel areas, which is the minimum unit of reading of the image sensor, is divided into RGB. Pixel signals including the color signals of the respective colors are sequentially captured. Each pixel signal captured in this way is one central pixel signal of interest and one pixel that is advanced by one in the sub-scanning direction or obtained one immediately before.
Correction is performed by calculating a weighted average by two-point interpolation with two adjacent pixel signals, and color image data is generated for each read pixel area based on the correction result. By performing the correction processing using the weighted average by the two-point interpolation, the gradation of the entire color image along the sub-scanning direction can be expressed more smoothly than when the correction processing is not performed. Here, the “weighted average” refers to a weighted average defined mathematically as a positive constant value with all the weights multiplied by both the pixel signal of interest and the adjacent pixel signal. This is realized by an arithmetic circuit or the like which outputs a weighted average using the pixel signal as an input value.

【0004】このような2点補間による加重平均では、
分母となる除数がウェイトの関係から3とされていた
が、そのような除数では、シフトと加減算を繰り返す演
算回路が複雑となることから、分母の除数が2のべき数
となるようにウェイトを調整したものも考えられてい
る。
In such a weighted average by two-point interpolation,
The divisor as the denominator was set to 3 from the relation of the weight. However, in such a divisor, since the arithmetic circuit for repeating shift and addition / subtraction becomes complicated, the weight is set so that the divisor of the denominator is a power of 2. Adjusted versions are also considered.

【0005】[0005]

【発明が解決しようとする課題】しかし、上記従来の画
像処理装置によれば、2点補間による加重平均を用いた
補正処理を行うことにより、副走査方向に沿うカラー画
像全体の階調がなめらかに表現されるが、黒色の画像な
どを読み取った場合、各画素信号におけるRGB各色の
色信号に若干の位置ずれが生じるため、その黒色画像の
エッジ付近に相当するカラー画像データに余分な色成分
が出現してしまうといった問題があった。特に、分母の
除数を2のべき数とした加重平均による補正処理によっ
ては、演算回路の構成が簡単になるいう利点を有する
が、そのような加重平均によっては、補正結果として満
足な結果を到底得ることができず、黒色画像のエッジに
関する問題については、2点補間による加重平均を用い
た補正処理によってはそれ以上の改善が望めないと考え
られていた。
However, according to the above-described conventional image processing apparatus, the gradation of the entire color image along the sub-scanning direction is smoothed by performing the correction processing using the weighted average by the two-point interpolation. However, when a black image or the like is read, a slight misregistration occurs in the RGB color signals of each pixel signal, so that extra color components are added to the color image data corresponding to the vicinity of the edge of the black image. Has appeared. In particular, there is an advantage that the configuration of the arithmetic circuit is simplified by the weighted average correction processing in which the divisor of the denominator is a power of 2, but such a weighted average can provide a satisfactory result as a correction result. It could not be obtained, and it was thought that no further improvement could be expected for the problem related to the edge of the black image by the correction processing using the weighted average by the two-point interpolation.

【0006】本発明は、上記の点に鑑みて提案されたも
のであって、従来の考えを打破し、特殊な加重平均を用
いた補正処理を行うことにより、黒色画像などのエッジ
付近を読み取って得られたカラー画像データについて、
余分な色成分の出現を極力抑えることができ、しかも回
路構成の簡略化あるいはCPUの負荷軽減を図ることが
できる画像処理装置、およびその画像処理装置を制御す
るためのプログラムを記憶した記憶媒体を提供すること
を目的とする。
The present invention has been proposed in view of the above points, and breaks the conventional idea and performs a correction process using a special weighted average to read the vicinity of an edge of a black image or the like. Color image data obtained by
An image processing apparatus capable of minimizing the appearance of extra color components as well as simplifying the circuit configuration or reducing the load on the CPU, and a storage medium storing a program for controlling the image processing apparatus. The purpose is to provide.

【0007】[0007]

【課題を解決するための手段】上記目的を達成するため
に、請求項1に記載した発明の画像処理装置は、主走査
方向に沿う1ラインの読取画素領域に対して副走査方向
相対的に移動しつつ、各読取画素領域からRGB各色
の反射光を交互に受光して画素信号を出力する受光手段
を有し、この受光手段により所定の読取画素領域から
GB各色の光を受光して得られた注目画素信号に対し、
副走査方向に隣接する読取画素領域から得られた隣接画
素信号を基にして補正処理を施すことにより、上記読取
画素領域の全体に対応したカラー画像データを生成する
画像処理装置であって、上記受光手段を介して順次取り
込んだ各画素信号に含まれるRGB各色の色信号ごと
に、上記注目画素信号と上記隣接画素信号との3点補間
による相関関係式に基づいて、2のべき数を除数とした
加重平均を算出する加重平均算出手段と、上記加重平均
算出手段によって算出された値を、上記各読取画素領域
ごとに得られた各画素信号の補正値とし、各画素信号の
補正値に応じてカラー画像データを生成するカラー画像
データ生成手段とを有することを特徴としている。
To achieve the above object, according to the Invention The image processing apparatus of the invention according to claim 1 in the main scanning
Sub-scanning direction for one line of read pixel area along the direction
Moved relative to have a receiving means for outputting a pixel signal by receiving alternately RGB colors of light reflected from the read pixel regions, R from a predetermined reading pixel region by the light receiving means
For a pixel signal of interest obtained by receiving light of each color of GB ,
By the correction processing performed adjacent pixel signals obtained from the read pixel regions adjacent in the sub-scanning direction based on an image processing apparatus for generating a color image data corresponding to the whole of the read pixel region, the Sequentially via the light receiving means
For each color signal of RGB included in each pixel signal
, Based on the correlation expression according to three-point interpolation of the target pixel signal and the adjacent pixel signal, a weighted average calculation means for calculating a weighted average and divisor number a power of 2, calculated by the weighted average calculation means And a color image data generating means for generating color image data according to the correction value of each pixel signal, with the obtained value as a correction value of each pixel signal obtained for each of the read pixel regions. I have.

【0008】このような画像処理装置によれば、3点補
間による2のべき数を除数とした特殊な加重平均を用い
た補正処理を行うことにより、カラー画像全体を連続し
て読み取った場合になめらかな階調のカラー画像データ
が順次得られる。そして、黒色の画像などを読み取った
場合、黒色画像のエッジ付近に相当するカラー画像デー
タに余分な色成分が出現するが、3点補間による加重平
均を用いた補正処理によっては、2点補間による一般的
な加重平均の場合よりも、余分な色成分の出現が抑えら
れる。つまり、3点補間による加重平均を用いた補正処
理では、注目画素信号に前後して2つの読取画素領域か
ら得られた画素信号を用いることにより、余分な色成分
が十分に除去されるので、黒色画像などのエッジ付近を
読み取って得られたカラー画像データにおいて、2点補
間による加重平均を用いる場合よりも余分な色成分の出
現を極力抑えることができる。しかも、加重平均におけ
る分母の除数を2のべき数とすることで、演算回路にお
けるシフトと加減算の繰り返し動作を単純化することが
できるので、ハードウェアで実現した場合には、回路構
成を簡単なものとすることができ、また、ソフトウェア
で実現した場合には、CPUの負荷を軽減することがで
きる。
According to such an image processing apparatus, by performing a correction process using a special weighted average with a divisor of a power of 2 by three-point interpolation, the entire color image can be read continuously. Color image data with smooth gradation is obtained sequentially. When a black image or the like is read, an extra color component appears in the color image data corresponding to the vicinity of the edge of the black image. However, depending on a correction process using a weighted average by three-point interpolation, two-point interpolation is performed. The appearance of extra color components is suppressed as compared with the case of a general weighted average. That is, in the correction processing using the weighted average by the three-point interpolation, by using the pixel signals obtained from the two read pixel areas before and after the target pixel signal, the extra color components are sufficiently removed. In color image data obtained by reading the vicinity of an edge of a black image or the like, the appearance of extra color components can be suppressed as much as possible when using a weighted average by two-point interpolation. In addition, by setting the divisor of the denominator in the weighted average to be a power of 2, it is possible to simplify the repetition operation of shift and addition / subtraction in the arithmetic circuit. And, if implemented by software, the load on the CPU can be reduced.

【0009】さらには、受光手段が読取画素領域の全体
に対して相対的に移動することで、一定の移動方向に沿
った各読取画素領域からRGB各色の色信号が得られ、
これらRGB各色の色信号ごとに3点補間による2のべ
き数を除数とした加重平均が算出されるので、最終的に
一定方向に沿った3つの読取画素領域ごとに中心領域の
補正されたRGB基調のカラー画像データが得られるこ
ととなり、このようなRGB基調のカラー画像データに
基づいてカラー画像全体の階調を一定方向に沿ってなめ
らかに表現することができる。
[0009] Further, the light receiving unit that moves relative to the whole of the reading pixel region, RGB colors of the color signal is obtained from the read pixel region along a predetermined moving direction,
Since a weighted average is calculated for each of the RGB color signals by dividing the power of 2 by the three-point interpolation into a divisor, the corrected RGB of the central area is finally obtained for each of the three read pixel areas along a certain direction. The base color image data is obtained, and the gradation of the entire color image can be smoothly expressed in a certain direction based on the RGB base color image data.

【0010】また、請求項2に記載した発明の画像処理
装置は、請求項1に記載の画像処理装置であって、上
各画素信号に含まれる色信号ごとに、上記3点補間によ
る相関関係式に基づいて、負のウェイトを含む加重平均
を算出している。
[0010] The image processing apparatus of the invention described in claim 2 is an image processing apparatus according to claim 1, for each color signal included in the above Symbol pixel signals, the correlation by the three-point interpolation A weighted average including a negative weight is calculated based on the relational expression.

【0011】このような画像処理装置によれば、請求項
1に記載の画像処理装置による効果に加えて、RGB各
色の色信号ごとに負のウェイトを含む3点補間による加
重平均が算出されるので、最終的に読取画素領域ごとに
補正されたRGB基調のカラー画像データが得られるこ
ととなり、このようなRGB基調のカラー画像データに
基づいてカラー画像全体の階調をなめらかに表現するこ
とができる。
According to such an image processing apparatus, in addition to the effects of the image processing apparatus according to the first aspect, a weighted average by three-point interpolation including a negative weight is calculated for each of the RGB color signals. Therefore, finally, RGB-based color image data corrected for each read pixel area is obtained, and it is possible to smoothly express the gradation of the entire color image based on such RGB-based color image data. it can.

【0012】また、請求項に記載した発明の画像処理
装置は、請求項1または2に記載の画像処理装置であっ
て、上記加重平均算出手段によって算出された値が予定
範囲を逸脱する場合、その算出値を所定の適切な値に変
更させる加重平均最適化手段を有している。
According to a third aspect of the present invention, there is provided the image processing apparatus according to the first or second aspect , wherein the value calculated by the weighted average calculating means deviates from a predetermined range. And a weighted average optimizing means for changing the calculated value to a predetermined appropriate value.

【0013】このような画像処理装置によれば、請求項
または2に記載の画像処理装置による効果に加えて、
負のウェイトなどを含む特殊な加重平均を算出すること
で、その結果として算出値が予定範囲を逸脱してオーバ
フローしたり、アンダーフローすることとなっても、そ
の算出値が所定の適切な値に変更されるので、予定範囲
外の加重平均を算出して装置全体の処理にエラーが起こ
るような事態が回避され、加重平均を用いた補正処理を
安定的に行うことができる。
According to such an image processing apparatus, in addition to the effects of the image processing apparatus according to claim 1 or 2 ,
By calculating a special weighted average that includes negative weights, etc., if the calculated value overflows the planned range or overflows, the calculated value will be a predetermined appropriate value. Therefore, it is possible to avoid a situation in which an error occurs in the processing of the entire apparatus by calculating the weighted average outside the planned range, and the correction processing using the weighted average can be stably performed.

【0014】さらに、請求項4に記載した発明の記憶媒
体は、主走査方向に沿う1ラインの読取画素領域に対し
副走査方向に相対的に移動しつつ、各読取画素領域か
らRGB各色の反射光を交互に受光して画素信号を出力
する受光手段を有し、この受光手段により所定の読取画
素領域からRGB各色の光を受光して得られた注目画素
信号に対し、副走査方向に隣接する読取画素領域から得
られた隣接画素信号を基にして補正処理を施すことによ
り、上記読取画素領域の全体に対応したカラー画像デー
タを生成する画像処理装置を制御するためのプログラム
を記憶した記憶媒体であって、上記受光手段を介して順
次取り込んだ各画素信号に含まれるRGB各色の色信号
ごとに、上記注目画素信号と上記隣接画素信号との3点
補間による相関関係式に基づいて、2のべき数を除数と
した加重平均を算出するための加重平均算出プログラム
と、上記加重平均算出プログラムによって算出された値
を、上記各読取画素領域ごとに得られた各画素信号の補
正値とし、各画素信号の補正値に応じてカラー画像デー
タを生成するためのカラー画像データ生成プログラムと
を含むプログラムを記憶したことを特徴としている。
Further, in the storage medium according to the present invention, while moving relatively in the sub-scanning direction with respect to one line of the reading pixel region along the main scanning direction , the storage medium of each color of RGB from each reading pixel region. A light receiving means for alternately receiving reflected light and outputting a pixel signal is provided . In the sub-scanning direction, a pixel signal of interest obtained by receiving light of each color of RGB from a predetermined read pixel area by the light receiving means. A program for controlling an image processing apparatus that generates color image data corresponding to the whole of the read pixel area by performing a correction process based on an adjacent pixel signal obtained from an adjacent read pixel area is stored. A storage medium, which is sequentially transmitted through the light receiving means.
Next, the color signal of each of the RGB colors included in the captured pixel signal
Each, based on the correlation expression according to three-point interpolation of the target pixel signal and the adjacent pixel signal, a weighted average calculation program for calculating the weighted average and divisor number a power of 2, the weighted-average calculation A color image data generation program for generating color image data according to the correction value of each pixel signal, with the value calculated by the program as the correction value of each pixel signal obtained for each of the read pixel regions, The program is characterized by storing a program including:

【0015】このような記憶媒体によれば、記憶された
プログラムに基づいてCPUを動作させることにより、
請求項1に記載の画像処理装置の動作を実現することが
できる。
According to such a storage medium, by operating the CPU based on the stored program,
The operation of the image processing device according to claim 1 can be realized.

【0016】[0016]

【発明の実施の形態】以下、本発明の好ましい実施の形
態について図面を参照して具体的に説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Preferred embodiments of the present invention will be specifically described below with reference to the drawings.

【0017】図1は、本発明にかかる画像処理装置を組
み込んだ形態のファクシミリ装置の一実施形態を示した
回路ブロック図である。なお、本ファクシミリ装置は、
本来ファクシミリ画像を送受信するために使用される
が、コピー機などと同様に、原稿用紙のカラー画像を読
み取って記録用紙上に複写するといった機能も備えてい
る。
FIG. 1 is a circuit block diagram showing an embodiment of a facsimile apparatus incorporating an image processing apparatus according to the present invention. This facsimile machine
Although originally used for transmitting and receiving facsimile images, it also has a function of reading a color image of an original paper and copying it on a recording paper, like a copier or the like.

【0018】図1に示すように、ファクシミリ装置は、
CPU1、NCU2、RAM3、モデム4、ROM5、
EEPROM6、ゲートアレイ7、コーデック8、DM
AC9、読取部11、印刷部12、操作部13、および
表示部14を具備して構成されている。CPU1、NC
U2、RAM3、モデム4、ROM5、EEPROM
6、ゲートアレイ7、コーデック8、およびDMAC9
は、バス線15により相互に接続されている。バス線1
5には、アドレスバス、データバス、および制御信号線
が含まれる。ゲートアレイ7には、読取部11、印刷部
12、操作部13、および表示部14が接続されてい
る。NCU2には、公衆電話回線16が接続されてい
る。
As shown in FIG. 1, the facsimile apparatus includes:
CPU1, NCU2, RAM3, modem 4, ROM5,
EEPROM 6, gate array 7, codec 8, DM
An AC 9, a reading unit 11, a printing unit 12, an operation unit 13, and a display unit 14 are provided. CPU1, NC
U2, RAM3, modem 4, ROM5, EEPROM
6, gate array 7, codec 8, and DMAC 9
Are interconnected by a bus line 15. Bus line 1
5 includes an address bus, a data bus, and a control signal line. The reading unit 11, the printing unit 12, the operation unit 13, and the display unit 14 are connected to the gate array 7. A public telephone line 16 is connected to the NCU 2.

【0019】CPU1は、ファクシミリ装置全体を制御
する。NCU2は、公衆電話回線16に接続されて網制
御を行う。RAM3は、充電電池などにより電源バック
アップが施されており、ファクシミリ装置全体のメイン
メモリとしてCPU1の作業領域や各種データの格納領
域を提供する。モデム4は、ファクシミリデータの変調
や復調などを行う。ROM5は、各種のプログラムや設
定値などのデータを記憶している。EEPROM6は、
各種のフラグや設定データなどを記憶する。ゲートアレ
イ7は、CPU1の入出力インターフェースとして機能
し、このゲートアレイ7には、図示しないが複写を行う
場合に画像データを入出力処理するためのA/D変換回
路や、補正回路などが組み込まれている。コーデック8
は、ファクシミリデータの符号化や復号化を行う。DM
AC9は、RAM3へのデータの書き込みや読み出しを
行う。
The CPU 1 controls the entire facsimile machine. The NCU 2 is connected to the public telephone line 16 and performs network control. The RAM 3 is backed up by a power source such as a rechargeable battery, and provides a work area for the CPU 1 and a storage area for various data as a main memory of the entire facsimile apparatus. The modem 4 modulates and demodulates facsimile data. The ROM 5 stores various programs and data such as set values. EEPROM6 is
Various flags and setting data are stored. The gate array 7 functions as an input / output interface of the CPU 1. The gate array 7 incorporates an A / D conversion circuit and a correction circuit (not shown) for inputting and outputting image data when performing copying. Have been. Codec 8
Performs encoding and decoding of facsimile data. DM
The AC 9 writes and reads data to and from the RAM 3.

【0020】読取部11は、たとえばRGB各色の光を
発する複数個のLED光源や、主走査方向に沿って縦長
状のモノクロラインイメージセンサなどを備えており、
イメージセンサの副走査方向に沿って移動する原稿用紙
に対し、順次LED光源を切り替えつつそのイメージセ
ンサで反射光を受光することで、カラー画像に応じた画
素信号を出力するものである。この画素信号とは、イメ
ージセンサの読取最小単位となる読取画素領域ごとにR
GB各色の反射光レベルに応じて出力される信号であっ
て、一つの画素信号には、RGB各色の反射光レベルに
応じた色信号が含まれる。また、原稿用紙とイメージセ
ンサとが相対的に移動する状態においてRGB各色の反
射光が受光されることから、各画素信号におけるRGB
各色の色信号に若干の位置ずれが生じることが知られて
いる。印刷部12は、たとえばインクジェット方式によ
るカラープリンタ機構を備えており、ステップ移動する
記録用紙に対して1バンドごとにCMYK各色のカラー
インクを細かく吐出し、ドットパターンによるカラーイ
ンク像を記録用紙上に形成することで印刷を行うもので
ある。操作部13は、キースイッチ群を備えており、使
用者の入力操作に応じた入力信号などを出力する。表示
部14は、文字や数字などの各種情報を表示するための
LCDなどを備えており、装置の動作状態などを報知す
る。
The reading unit 11 includes, for example, a plurality of LED light sources that emit light of RGB colors, a monochrome line image sensor that is vertically long along the main scanning direction, and the like.
For the original paper sheet moving in the sub-scanning direction of the image sensor, the image sensor receives the reflected light while sequentially switching the LED light source, and outputs a pixel signal corresponding to a color image. This pixel signal is R for each read pixel area that is the minimum read unit of the image sensor.
One pixel signal is a signal that is output according to the level of reflected light of each of the RGB colors, and includes a color signal corresponding to the level of reflected light of each of the RGB colors. In addition, since the reflected light of each color of RGB is received in a state where the original paper and the image sensor relatively move, the RGB in each pixel signal is received.
It is known that a slight displacement occurs in the color signal of each color. The printing unit 12 includes, for example, a color printer mechanism based on an ink-jet system. The printing unit 12 finely discharges the color inks of the respective colors of CMYK for each band on the recording paper that moves stepwise, and forms a color ink image by a dot pattern on the recording paper. Printing is performed by forming them. The operation unit 13 includes a group of key switches, and outputs an input signal or the like according to a user's input operation. The display unit 14 includes an LCD or the like for displaying various information such as characters and numerals, and notifies an operation state of the apparatus.

【0021】本発明の要点についてさらに詳しく説明す
ると、本ファクシミリ装置を使用して複写を行う場合、
読取部11のイメージセンサから得られた画素信号は、
ゲートアレイ7を介してA/D変換されつつ、カラー補
正処理などが施されてRGB基調のカラー画像データと
して取り込まれる。そうしてカラー画像データが取り込
まれると、印刷部12にてカラー画像データに基づく印
刷処理が行われる。このようにして複写が行われる際、
読取部11から取り込んだ画素信号に対して補正処理が
施されるが、この補正処理においては、従来とは異なる
特殊な3点補間による分母の除数を2のべき数とした加
重平均により画素信号が補正される。
The gist of the present invention will be described in more detail. When copying is performed using the facsimile machine,
The pixel signal obtained from the image sensor of the reading unit 11 is
While undergoing A / D conversion via the gate array 7, the image data is subjected to color correction processing and the like, and is taken in as RGB-based color image data. Then, when the color image data is captured, the printing unit 12 performs a printing process based on the color image data. When copying is performed in this way,
The pixel signal fetched from the reading unit 11 is subjected to correction processing. In this correction processing, the pixel signal is obtained by a weighted average in which the denominator of the denominator by a special three-point interpolation different from the conventional one is a power of two. Is corrected.

【0022】図2は、特殊な加重平均を用いた補正処理
を説明するために示した説明図であって、この図の
(A)に示すように、原稿用紙上にある黒色の画像を読
み取る場合、副走査方向Fに沿って各読取画素領域nk
から画素信号が得られ、各画素信号には、(B)に示す
ように、RGB各色の色レベルに応じた色信号が含まれ
る。この際、RGB各色の色レベルを読み取る順番は、
R,G,B色の順であり、G色を読み取り位置の中心と
すると、R色は、G色よりも速いタイミングで読み取ら
れる一方、B色は、G色よりも遅いタイミングで読み取
られる。つまり、各読取画素領域nk から得られた画素
信号には、RGB各色の色信号に若干の位置ずれが生じ
ており、そのため、(B)に示す各読取画素領域nk
ら得られた画素信号を直接印刷用のカラー画像データと
して用いたのでは、副走査方向Fに沿ったカラー画像全
体の階調がなめらかに表現できない。そこで、3点補間
による分母の除数を2のべき数とした加重平均を用いた
補正処理を施すことにより、(C)に示すような画素信
号に補正した後、その補正された画素信号を用いること
で印刷処理が行われる。
FIG. 2 is an explanatory diagram for explaining a correction process using a special weighted average. As shown in FIG. 2A, a black image on a document sheet is read. In the case, each read pixel area nk along the sub-scanning direction F
, A pixel signal is obtained from each pixel signal, and each pixel signal includes a color signal corresponding to the color level of each of the RGB colors as shown in FIG. At this time, the reading order of the color levels of the RGB colors is
In the order of R, G, and B colors, where the G color is the center of the reading position, the R color is read at a timing earlier than the G color, while the B color is read at a later timing than the G color. That is, the pixel in the pixel signal obtained from each read pixel region n k, and cause slight misalignment RGB colors of the color signal, which therefore obtained from the read pixel region n k shown in (B) If the signal is used as color image data for direct printing, the gradation of the entire color image along the sub-scanning direction F cannot be expressed smoothly. Therefore, by performing a correction process using a weighted average in which the denominator of the denominator by the three-point interpolation is a power of 2, the pixel signal is corrected to a pixel signal as shown in (C), and the corrected pixel signal is used. Thus, the printing process is performed.

【0023】この補正処理において用いられる加重平均
を算出するための式は、注目する読取画素領域nk の注
目画素信号と、その読取画素領域nk に対して副走査方
向Fの前後に隣接する2つの読取画素領域nk-1 ,n
k+1 から得られた隣接画素信号との相関関係を負のウェ
イトJ3 によって表した、以下の数式1によって定義さ
れる。なお、読み取り位置の中心とされるG色について
は、補正処理が施されることなくそのまま用いられる。
The formula for calculating the weighted average used in this correction processing is that the pixel signal of interest in the read pixel region nk of interest and the read pixel region nk are adjacent to the read pixel region nk before and after in the sub-scanning direction F. Two read pixel areas n k−1 , n
The correlation between the neighboring pixel signals obtained from k + 1 represented by the negative of the weight J 3, is defined by Equation 1 below. It should be noted that the G color, which is the center of the reading position, is used without being subjected to correction processing.

【0024】[0024]

【数1】 (Equation 1)

【0025】この数式1は、ウェイト全てを正の定数値
として2点補間により規定された後述する従来の補正処
理において用いられる加重平均とな異なり、一つのウェ
イトであるJ3 が負の定数値とされている。また、ウェ
イトの合計Mは、2のべき数とされている。このような
数式1に基づいて加重平均を求めるためには、画素信号
を入力値として加重平均を出力する演算回路などをCP
U1が制御することによって実現され、そのような演算
回路などは、各種の論理回路素子を組み合わせてゲート
アレイ7に組み込まれている。この演算回路について
は、特に図示しないが、除算処理において分母となる除
数を2のべき数とすることにより、演算回路においてシ
フトや加減算に必要なレジスタなどが単純化して構成さ
れている。
This equation 1 is different from the weighted average used in the conventional correction processing described later, which is defined by two-point interpolation with all weights as positive constant values, and one weight J 3 is a negative constant value. It has been. The total M of the weights is a power of two. In order to obtain the weighted average based on the above-described formula 1, an arithmetic circuit or the like that outputs the weighted average with the pixel signal as an input value is provided by a CP or the like.
The operation is realized by the control of U1, and such an arithmetic circuit or the like is incorporated in the gate array 7 by combining various logic circuit elements. Although not shown, the arithmetic circuit is configured by simplifying registers and the like required for shift and addition / subtraction in the arithmetic circuit by setting the divisor as a denominator in the division process to a power of two.

【0026】数式1に基づいて加重平均を算出する具体
的な一例を挙げると、たとえば読取画素領域n2 を注目
画素領域とすると、その読取画素領域n2 から得られた
注目画素信号には、図2の(B)に示すように、RGB
各色の色信号が50%,0%,0%といった比率で含ま
れている。また、注目画素領域n2 に隣接する読取画素
領域n1 ,n3 の隣接画素信号には、RGB各色の色信
号のすべてがそれぞれ100%,0%といった比率で含
まれている。そして、各ウェイトJ1 ,J2 ,J3 をそ
れぞれ2,8,−2として、これらの値を数式1に代入
すると、図2の(C)に示すように、補正後の注目画素
信号では、RGB各色の色信号が25%,0%,25%
といった比率に補正される。なお、数式1による加重平
均の算出値としては、0%〜100%の範囲内に収まる
値でなければならないが、実際には、100%をオーバ
フローしたり、0%をアンダーフローする場合が生じ
る。この場合、CPU1の制御によってオーバフローで
は、加重平均として得られる算出値が100%に変更さ
れる一方、アンダーフローでは、加重平均として得られ
る算出値が0%に変更される。
[0026] and one specific example of calculating a weighted average based on Equation 1, for example, when the read pixel region n 2 to a target pixel area, the pixel of interest signal obtained from the read pixel region n 2, As shown in FIG.
The color signal of each color is included at a ratio of 50%, 0%, 0%. Further, the adjacent pixel signals of the read pixel areas n 1 and n 3 adjacent to the target pixel area n 2 include all the RGB color signals at a ratio of 100% and 0%, respectively. Then, when the weights J 1 , J 2 , and J 3 are set to 2, 8, and −2, respectively, and these values are substituted into Expression 1, as shown in FIG. , RGB signals of 25%, 0%, 25%
Is corrected to such a ratio. The calculated value of the weighted average according to Equation 1 must be a value within the range of 0% to 100%, but in actuality, 100% may overflow or 0% may underflow. . In this case, under overflow, the calculated value obtained as a weighted average is changed to 100% in the case of overflow, while in the case of underflow, the calculated value obtained as a weighted average is changed to 0%.

【0027】ここで、従来の補正処理において用いられ
る加重平均を算出するための式を、以下の数式2に示
す。
The equation for calculating the weighted average used in the conventional correction processing is shown in the following equation (2).

【0028】[0028]

【数2】 (Equation 2)

【0029】このような2点補間による数式2に基づい
て加重平均を算出した場合、たとえば各ウェイトj1
2 をそれぞれ1,2として注目画素領域n2 に着目す
ると、参考として図2の(D)に示すように、補正後の
注目画素領域n2 における注目画素信号では、RGB各
色の色信号が33.3%,0%,33.3%といった比
率に補正される。
When the weighted average is calculated based on Equation 2 by such two-point interpolation, for example, each weight j 1 ,
Focusing j 2 of each pixel region of interest n 2 as 1, as shown in shown in FIG. 2 (D) as a reference, the target pixel signals in the correction target pixel region n 2 after, the RGB colors of the color signals It is corrected to a ratio of 33.3%, 0%, 33.3%.

【0030】また、数式2をさらに発展させた従来の補
正処理において用いられる数式としては、以下に示すよ
うな数式3がある。
The following equation (3) is used as an equation used in the conventional correction processing obtained by further developing the equation (2).

【0031】[0031]

【数3】 (Equation 3)

【0032】この数式3は、上記数式2の分母であるm
が2のべき数となるように、ウェイトを調整したもので
ある。このような2のべき数を分母とした数式3に基づ
いて加重平均を算出した場合、先に説明したように演算
回路が単純化されるが、参考として図2の(E)に示す
ように、補正後の注目画素領域n2 における注目画素信
号では、RGB各色の色信号が37.5%,0%,2
5.0%といった比率に補正される。
Equation 3 is obtained by calculating m, which is the denominator of Equation 2 above.
Is adjusted to be a power of 2. When the weighted average is calculated based on Expression 3 using the power of 2 as the denominator, the arithmetic circuit is simplified as described above. For reference, as shown in FIG. in the target pixel signals in the correction target pixel region n 2 after, RGB colors of the color signal is 37.5%, 0%, 2
It is corrected to a ratio such as 5.0%.

【0033】つまり、図2の(C)に対して(D)およ
び(E)を比較して理解されるように、数式1を用いて
各読取画素領域nk から得られた画素信号を補正した場
合、数式2や数式3を用いて補正する場合に比べて、黒
色画像のエッジ付近の読取画素領域から得られる画素信
号中に、余分な色成分の出現する割合が低減されること
となる。
That is, as can be understood by comparing (D) and (E) with (C) in FIG. 2, the pixel signal obtained from each read pixel area nk is corrected by using Equation (1). In this case, the ratio of the appearance of extra color components in the pixel signal obtained from the read pixel area near the edge of the black image is reduced as compared with the case where the correction is performed using Expressions 2 and 3. .

【0034】以上のようにして、数式1により示される
3点補間で分母を2のべき数とした加重平均を算出する
ことで各読取画素領域nk から得られた画素信号を補正
した後、CPU1は、RGBを基調として補正された各
画素信号の値に応じてビット反転などを施すことによ
り、CMYK基調のカラー画像データを生成する。こう
してCMYK基調のカラー画像データが生成されると、
CPU1は、印刷部12にてインクジェット方式などで
記録用紙上にカラー画像を形成させる。記録用紙上に形
成されたカラー画像としては、黒色画像のエッジ付近に
CMY色のインクによるドットの出現が極力抑えられた
ものとなる。
As described above, the pixel signal obtained from each read pixel area nk is corrected by calculating the weighted average with the denominator being a power of 2 by the three-point interpolation represented by Equation 1, and The CPU 1 generates color image data based on CMYK by performing bit inversion or the like in accordance with the value of each pixel signal corrected based on RGB. When color image data based on CMYK is generated in this way,
The CPU 1 causes the printing unit 12 to form a color image on recording paper by an inkjet method or the like. As for the color image formed on the recording paper, the appearance of dots by CMY ink near the edges of the black image is minimized.

【0035】図3は、各読取画素領域に対応して吐出さ
れるCMYインクの比率を示した図であって、この図に
示すように、補正後の図2に示す(C)の画素信号に基
づいてカラー画像を形成した場合、図2の(D)や
(E)の場合に比べて読取画素領域n2 に対応して吐出
されるべきM色のインクが少ないものとされている。つ
まり、数式1に基づいて補正した結果では、黒色画像の
エッジ付近にM色などのインクが吐出されるが、その量
やインク色数は、数式2や数式3に基づいて補正した結
果よりも少ないものとされることから、黒色画像のエッ
ジ付近において色成分の出現が抑制され、そのエッジ付
近がより強調される。なお、参考のために、補正なしと
して図2の(B)に示す画素信号に基づいてカラー画像
を形成した場合の結果も、図3の最下段に示す。
FIG. 3 is a diagram showing the ratio of CMY ink ejected corresponding to each read pixel area. As shown in FIG. 3, the corrected pixel signal shown in FIG. when forming a color image based on, it is as small ink color M to be discharged in response to the read pixel region n 2 is compared with the case of shown in FIG. 2 (D) and (E). In other words, according to the result of the correction based on Expression 1, the ink such as M is ejected near the edge of the black image. However, the amount and the number of the ink colors are smaller than the results corrected based on Expression 2 and Expression 3. Since the number is small, the appearance of color components near the edge of the black image is suppressed, and the vicinity of the edge is further emphasized. For reference, the result when a color image is formed based on the pixel signals shown in FIG. 2B without correction is also shown at the bottom of FIG.

【0036】すなわち、CPU1は、各読取画素領域ご
とに得られた各画素信号に関し、注目画素信号と隣接画
素信号との3点補間による相関関係式に基づいて、2の
べき数を除数とした加重平均を算出する加重平均算出手
段と、加重平均算出手段によって算出された値を、各読
取画素領域ごとに得られた各画素信号の補正値とし、各
画素信号の補正値に応じてカラー画像データを生成する
カラー画像データ生成手段とを実現している。また、C
PU1は、加重平均算出手段によって算出された値が予
定範囲を逸脱する場合、その算出値を所定の適切な値に
変更させる加重平均最適化手段を実現している。
That is, for each pixel signal obtained for each read pixel area, the CPU 1 sets a power of 2 as a divisor based on a correlation equation based on three-point interpolation between a pixel signal of interest and an adjacent pixel signal. A weighted average calculating unit for calculating a weighted average, and a value calculated by the weighted average calculating unit is used as a correction value of each pixel signal obtained for each read pixel area, and a color image is formed in accordance with the correction value of each pixel signal. And color image data generating means for generating data. Also, C
The PU1 implements a weighted average optimizing unit that changes the calculated value to a predetermined appropriate value when the value calculated by the weighted average calculating unit deviates from the predetermined range.

【0037】ROM5は、所定の読取画素領域から異な
る色の光を受光して得られた注目画素信号に対し、隣接
する読取画素領域から得られた隣接画素信号を基にして
補正処理を施すことにより、上記読取画素領域の全体に
対応したカラー画像データを生成する画像処理装置を制
御するためのプログラムを記憶した記憶媒体であって、
上記各読取画素領域ごとに得られた各画素信号に関し、
上記注目画素信号と上記隣接画素信号との3点補間によ
る相関関係式に基づいて、2のべき数を除数とした加重
平均を算出するための加重平均算出プログラムと、上記
加重平均算出プログラムによって算出された値を、上記
各読取画素領域ごとに得られた各画素信号の補正値と
し、各画素信号の補正値に応じてカラー画像データを生
成するためのカラー画像データ生成プログラムとを含む
プログラムを記憶した記憶媒体を実現している。
The ROM 5 performs a correction process on a target pixel signal obtained by receiving light of a different color from a predetermined read pixel area based on an adjacent pixel signal obtained from an adjacent read pixel area. According to a storage medium storing a program for controlling an image processing apparatus that generates color image data corresponding to the entirety of the read pixel area,
Regarding each pixel signal obtained for each of the read pixel regions,
A weighted average calculation program for calculating a weighted average using a power of 2 as a divisor based on a correlation equation by three-point interpolation between the target pixel signal and the adjacent pixel signal, and a calculation by the weighted average calculation program And a color image data generation program for generating color image data according to the correction value of each pixel signal. A storage medium that stores the information is realized.

【0038】次に、上記構成を有するファクシミリ装置
の動作、特に複写時の動作について図面を参照して説明
する。
Next, the operation of the facsimile apparatus having the above configuration, particularly, the operation at the time of copying will be described with reference to the drawings.

【0039】図4は、複写処理時におけるCPUの動作
手順を示したフローチャートであって、この図に示すよ
うに、まず、CPU1は、使用者などによって複写開始
のスタートボタンが押下されたか否かを判断している
(S1)。
FIG. 4 is a flowchart showing the operation procedure of the CPU during the copying process. As shown in FIG. 4, first, the CPU 1 determines whether or not the user or the like has pressed the start button for starting copying. Is determined (S1).

【0040】複写処理が開始された場合(S1:YE
S)、CPU1は、読取部11にてセットされた原稿用
紙を装置内へと引き込ませる(S2)。
When the copying process is started (S1: YE
S), the CPU 1 draws the original paper set by the reading unit 11 into the apparatus (S2).

【0041】そうした後、CPU1は、読取処理を開始
させる(S3)。この読取処理においては、読取部11
のイメージセンサから主走査方向に沿った1ラインある
いは1バンドごとに各読取画素領域から得られた画素信
号が順次RAM3などに蓄積される(S4)。
After that, the CPU 1 starts the reading process (S3). In this reading process, the reading unit 11
The pixel signals obtained from each read pixel area from the image sensor for each line or band along the main scanning direction are sequentially accumulated in the RAM 3 or the like (S4).

【0042】そうしてある程度の画素信号が蓄積される
と、CPU1は、ゲートアレイ7を介して上記数式1を
用いた加重平均による補正処理を行う(S5)。この補
正処理においては、先述したように、各読取画素領域n
k から得られた画素信号に対して数式1で示される加重
平均を算出することにより、RGB各色の色信号ごとに
補正が施される。なお、読み取り位置の中心とされるG
色については、補正処理が施されない。
When a certain amount of pixel signals are accumulated in this way, the CPU 1 performs a correction process by weighted averaging using the above equation 1 via the gate array 7 (S5). In this correction processing, as described above, each read pixel area n
By calculating the weighted average represented by Expression 1 for the pixel signal obtained from k , correction is performed for each of the RGB color signals. Note that G, which is the center of the reading position,
No correction processing is performed on the colors.

【0043】そうして補正処理を行った結果、CPU1
は、算出された加重平均にオーバフローまたはアンダー
フローが生じたか否かを判断する(S6)。
As a result of the correction processing, the CPU 1
Determines whether an overflow or underflow has occurred in the calculated weighted average (S6).

【0044】オーバフローまたはアンダーフローが生じ
なかった場合(S6:NO)、CPU1は、補正された
各画素信号の値に応じてビット反転などを施すことによ
り、CMYK色を基調とした印刷用のカラー画像データ
を生成する(S7)。
If no overflow or underflow has occurred (S6: NO), the CPU 1 performs a bit inversion or the like in accordance with the corrected value of each pixel signal, thereby obtaining a printing color based on CMYK colors. Image data is generated (S7).

【0045】印刷用のカラー画像データが生成される
と、CPU1は、印刷処理を開始させ、印刷部12にて
セットされた記録用紙を装置内へと引き込ませつつ、イ
ンクジェット方式などで記録用紙上にカラー画像を形成
させる(S8)。
When the color image data for printing is generated, the CPU 1 starts the printing process and draws the recording paper set by the printing unit 12 into the apparatus, and prints the recording paper on the recording paper by an ink jet method or the like. To form a color image (S8).

【0046】その後、CPU1は、印刷待ちのデータが
RAM3などに残されているか否かを判断し(S9)、
印刷待ちのデータがない場合(S9:YES)、CPU
1は、この複写処理にかかるプログラムの実行を終えて
待機状態となる。
Thereafter, the CPU 1 determines whether or not data waiting for printing is left in the RAM 3 or the like (S9).
If there is no data waiting to be printed (S9: YES), the CPU
1 is in a standby state after the execution of the program related to the copying process.

【0047】S9において、印刷待ちのデータがある場
合(S9:NO)、CPU1は、S8に戻って印刷処理
を継続する。
In S9, if there is data waiting to be printed (S9: NO), the CPU 1 returns to S8 and continues the printing process.

【0048】S6において、算出された加重平均にオー
バフローまたはアンダーフローが生じた場合(S6:Y
ES)、CPU1は、算出された実際の加重平均を最適
化する処理を実行し(S10)、その後S7の処理に移
る。この加重平均を最適化する処理においては、たとえ
ばオーバフローした場合では、加重平均として得られた
算出値が100%に変更される一方、アンダーフローし
た場合では、加重平均として得られた算出値が0%に変
更される。
In S6, when an overflow or underflow occurs in the calculated weighted average (S6: Y
ES), the CPU 1 executes a process of optimizing the calculated actual weighted average (S10), and then proceeds to a process of S7. In the process of optimizing the weighted average, for example, in the case of overflow, the calculated value obtained as the weighted average is changed to 100%, whereas in the case of underflow, the calculated value obtained as the weighted average is changed to 0. %.

【0049】S1において、スタートボタンが押下され
ることなく複写処理が開始されない場合(S1:N
O)、CPU1は、複写処理にかかるプログラムを実行
開始させることなく、スタートボタンが押下されるまで
待機状態を続ける。
In S1, when the copy process is not started without pressing the start button (S1: N
O), the CPU 1 continues the standby state until the start button is pressed without starting the execution of the program related to the copying process.

【0050】つまり、上記構成、動作を有するファクシ
ミリ装置によれば、3点補間により負のウェイトj3
含んで分母の除数を2のべき数とした加重平均を用いた
補正処理を行うことにより、カラー画像全体を副走査方
向Fに沿って読み取った場合になめらかな階調のカラー
画像データが順次得られる。そして、黒色の画像などを
読み取った場合、黒色画像のエッジ付近に相当するカラ
ー画像データに余分な色成分が出現するが、負のウェイ
トJ3 を含む3点補間による加重平均を用いた補正処理
によっては、従来のような2点補間による加重平均を用
いて補正処理を行う場合よりも、余分な色成分の出現が
抑えられる。つまり、特殊な負のウェイトJ3 を含む3
点補間の加重平均を用いた補正処理では、読取画素領域
k ごとに得られる画素信号から余分な色成分が十分に
除去されるので、黒色画像などのエッジ付近を読み取っ
て得られたカラー画像データにおいて、一般的な2点補
間による加重平均を用いる場合よりも余分な色成分の出
現を極力抑えることができる。
That is, according to the facsimile apparatus having the above configuration and operation, the correction processing using the weighted average in which the divisor of the denominator is a power of 2 including the negative weight j 3 by three-point interpolation is performed. When the entire color image is read in the sub-scanning direction F, color image data with smooth gradation is sequentially obtained. When the read and black image, although extra color component in the color image data corresponding to the vicinity of the edge of the black image appears, the correction process using a weighted average by three-point interpolation comprising negative weights J 3 In some cases, the appearance of extra color components can be suppressed as compared with the case where correction processing is performed using a weighted average based on two-point interpolation as in the related art. That is, 3 including the special negative weight J 3
In the correction processing using the weighted average of the point interpolation, extra color components are sufficiently removed from the pixel signals obtained for each of the read pixel areas nk , so that a color image obtained by reading the vicinity of an edge such as a black image is obtained. In data, the appearance of extra color components can be suppressed as much as possible compared to a case where a weighted average by general two-point interpolation is used.

【0051】しかも、数式1に示すように、加重平均に
おける分母の除数を2のべき数とすることにより、演算
回路などにおけるシフトと加減算の繰り返し動作を単純
化することができ、必要な演算回路の回路構成を簡単な
ものとすることができる。
Further, as shown in Formula 1, by setting the divisor of the denominator in the weighted average to be a power of 2, it is possible to simplify the shift and addition / subtraction operations in an arithmetic circuit or the like. Can be simplified.

【0052】また、負のウェイトJ3 を含む3点補間に
よる加重平均を算出することで、その結果として算出値
が0%〜100%の範囲を逸脱してオーバフローした
り、アンダーフローすることとなっても、その算出値が
所定の適切な値に変更されるので、予定範囲外の加重平
均を算出して装置全体の処理にエラーが起こるような事
態が回避され、加重平均を用いた補正処理を安定的に行
うことができる。
By calculating the weighted average by three-point interpolation including the negative weight J 3 , the calculated value may deviate from the range of 0% to 100% or overflow. Even so, the calculated value is changed to a predetermined appropriate value, so that a situation in which an error occurs in processing of the entire apparatus by calculating a weighted average outside the planned range is avoided, and correction using the weighted average is performed. Processing can be performed stably.

【0053】なお、本実施形態においては、画像処理装
置をファクシミリ装置に組み込んだ形態とされている
が、特にファクシミリ装置に限って適用されるものでは
なく、カラー画像を読取可能なスキャナ装置やコピー機
などの読取機能を備えたものに組み込んで使用すること
が可能である。
In this embodiment, the image processing apparatus is incorporated in a facsimile apparatus. However, the present invention is not particularly applied to a facsimile apparatus, and it is not limited to a facsimile apparatus. It can be used by incorporating it into a device having a reading function such as a machine.

【0054】また、数式1においては、J1 ,J2 ,J
3 をそれぞれ2,8,−2とした一例を挙げて説明した
が、特にそのような数値に限定するものではなく、3点
補間により分母となる除数を2のべき数とした加重平均
を求める数式であれば良い。
In equation (1), J 1 , J 2 , J
Although an example has been described in which 3 is 2, 8, and -2, however, the present invention is not particularly limited to such numerical values, and a weighted average in which the divisor as a denominator is a power of 2 is obtained by three-point interpolation. Any formula is acceptable.

【0055】[0055]

【発明の効果】以上説明したように、請求項1に記載し
た発明の画像処理装置によれば、3点補間による2のべ
き数を除数とした特殊な加重平均を用いた補正処理を行
うことにより、カラー画像全体を連続して読み取った場
合になめらかな階調のカラー画像データが順次得られ
る。そして、黒色の画像などを読み取った場合、黒色画
像のエッジ付近に相当するカラー画像データに余分な色
成分が出現するが、3点補間による加重平均を用いた補
正処理によっては、2点補間による一般的な加重平均の
場合よりも、余分な色成分の出現が抑えられる。つま
り、3点補間による加重平均を用いた補正処理では、注
目画素信号に前後して2つの読取画素領域から得られた
画素信号を用いることにより、余分な色成分が十分に除
去されるので、黒色画像などのエッジ付近を読み取って
得られたカラー画像データにおいて、2点補間による加
重平均を用いる場合よりも余分な色成分の出現を極力抑
えることができる。しかも、加重平均における分母の除
数を2のべき数とすることで、演算回路におけるシフト
と加減算の繰り返し動作を単純化することができるの
で、ハードウェアで実現した場合には、回路構成を簡単
なものとすることができ、また、ソフトウェアで実現し
た場合には、CPUの負荷を軽減することができる。
As described above, according to the image processing apparatus of the first aspect of the present invention, the correction processing using the special weighted average with the divisor of the power of 2 by the three-point interpolation is performed. Accordingly, when the entire color image is continuously read, color image data with smooth gradation is sequentially obtained. When a black image or the like is read, an extra color component appears in the color image data corresponding to the vicinity of the edge of the black image. However, depending on a correction process using a weighted average by three-point interpolation, two-point interpolation is performed. The appearance of extra color components is suppressed as compared with the case of a general weighted average. That is, in the correction processing using the weighted average by the three-point interpolation, by using the pixel signals obtained from the two read pixel areas before and after the target pixel signal, the extra color components are sufficiently removed. In color image data obtained by reading the vicinity of an edge of a black image or the like, the appearance of extra color components can be suppressed as much as possible when using a weighted average by two-point interpolation. In addition, by setting the divisor of the denominator in the weighted average to be a power of 2, it is possible to simplify the repetition operation of shift and addition / subtraction in the arithmetic circuit. Therefore, when realized by hardware, the circuit configuration is simplified. And, if implemented by software, the load on the CPU can be reduced.

【0056】さらには、受光手段が読取画素領域の全体
に対して相対的に移動することで、一定の移動方向に沿
った各読取画素領域からRGB各色の色信号が得られ、
これらRGB各色の色信号ごとに3点補間による2のべ
き数を除数とした加重平均が算出されるので、最終的に
一定方向に沿った3つの読取画素領域ごとに中心領域の
補正されたRGB基調のカラー画像データが得られるこ
ととなり、このようなRGB基調のカラー画像データに
基づいてカラー画像全体の階調を一定方向に沿ってなめ
らかに表現することができる。
Further, since the light receiving means relatively moves with respect to the entire read pixel area, RGB color signals are obtained from each read pixel area along a certain moving direction.
Since a weighted average is calculated for each of the RGB color signals by dividing the power of 2 by the three-point interpolation into a divisor, the corrected RGB of the central area is finally obtained for each of the three read pixel areas along a certain direction. The base color image data is obtained, and the gradation of the entire color image can be smoothly expressed in a certain direction based on the RGB base color image data.

【0057】また、請求項2に記載した発明の画像処理
装置によれば、請求項1に記載の画像処理装置による効
果に加えて、RGB各色の色信号ごとに負のウェイトを
含む3点補間による加重平均が算出されるので、最終的
に読取画素領域ごとに補正されたRGB基調のカラー画
像データが得られることとなり、このようなRGB基調
のカラー画像データに基づいてカラー画像全体の階調を
なめらかに表現することができる。
According to the image processing apparatus of the second aspect, in addition to the effect of the image processing apparatus of the first aspect, three-point interpolation including a negative weight for each of the RGB color signals is provided. Is calculated, the RGB-based color image data corrected for each read pixel area is finally obtained. Based on such RGB-based color image data, the gradation of the entire color image is obtained. Can be expressed smoothly.

【0058】また、請求項に記載した発明の画像処理
装置によれば、請求項1または2に記載の画像処理装置
による効果に加えて、負のウェイトなどを含む特殊な加
重平均を算出することで、その結果として算出値が予定
範囲を逸脱してオーバフローしたり、アンダーフローす
ることとなっても、その算出値が所定の適切な値に変更
されるので、予定範囲外の加重平均を算出して装置全体
の処理にエラーが起こるような事態が回避され、加重平
均を用いた補正処理を安定的に行うことができる。
According to the image processing apparatus of the third aspect of the invention, in addition to the effects of the image processing apparatus of the first or second aspect , a special weighted average including a negative weight or the like is calculated. Therefore, even if the calculated value deviates from the planned range and overflows or underflows, the calculated value is changed to a predetermined appropriate value. It is possible to avoid a situation where an error occurs in the processing of the entire apparatus by calculation, and the correction processing using the weighted average can be stably performed.

【0059】さらに、請求項に記載した発明の記憶媒
体によれば、記憶されたプログラムに基づいてCPUを
動作させることにより、請求項1に記載の画像処理装置
の動作を実現することができる。
Further, according to the storage medium of the invention described in claim 4 , the operation of the image processing apparatus according to claim 1 can be realized by operating the CPU based on the stored program. .

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

【図1】本発明にかかる画像処理装置を組み込んだ形態
のファクシミリ装置の一実施形態を示した回路ブロック
図である。
FIG. 1 is a circuit block diagram illustrating an embodiment of a facsimile apparatus incorporating an image processing apparatus according to the present invention.

【図2】本発明による特殊な加重平均を用いた補正処理
を説明するために示した説明図である。
FIG. 2 is an explanatory diagram shown to explain a correction process using a special weighted average according to the present invention.

【図3】各読取画素領域に対応して吐出されるCMYイ
ンクの比率を示した図である。
FIG. 3 is a diagram showing a ratio of CMY ink ejected corresponding to each read pixel area.

【図4】複写処理時におけるCPUの動作手順を示した
フローチャートである。
FIG. 4 is a flowchart showing an operation procedure of a CPU during a copying process.

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

1 CPU 2 NCU 3 RAM 4 モデム 5 ROM 6 EEPROM 7 ゲートアレイ 8 コーデック 9 DMAC 11 読取部 12 印刷部 13 操作部 14 表示部 16 公衆電話回線 DESCRIPTION OF SYMBOLS 1 CPU 2 NCU 3 RAM 4 Modem 5 ROM 6 EEPROM 7 Gate array 8 Codec 9 DMAC 11 Reading unit 12 Printing unit 13 Operation unit 14 Display unit 16 Public telephone line

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 主走査方向に沿う1ラインの読取画素領
域に対して副走査方向に相対的に移動しつつ、各読取画
素領域からRGB各色の反射光を交互に受光して画素信
号を出力する受光手段を有し、この受光手段により所定
の読取画素領域からRGB各色の光を受光して得られた
注目画素信号に対し、副走査方向に隣接する読取画素領
域から得られた隣接画素信号を基にして補正処理を施す
ことにより、上記読取画素領域の全体に対応したカラー
画像データを生成する画像処理装置であって、上記受光手段を介して順次取り込んだ各画素信号に含ま
れるRGB各色の色信号ごとに、 上記注目画素信号と上
記隣接画素信号との3点補間による相関関係式に基づい
て、2のべき数を除数とした加重平均を算出する加重平
均算出手段と、 上記加重平均算出手段によって算出された値を、上記各
読取画素領域ごとに得られた各画素信号の補正値とし、
各画素信号の補正値に応じてカラー画像データを生成す
るカラー画像データ生成手段とを有することを特徴とす
る画像処理装置。
1. A pixel signal is output by alternately receiving reflected light of each color of RGB from each read pixel region while relatively moving in a sub- scan direction with respect to one line of a read pixel region along the main scan direction. An adjacent pixel signal obtained from a reading pixel area adjacent in the sub-scanning direction with respect to a target pixel signal obtained by receiving light of each of RGB colors from a predetermined reading pixel area by the light receiving means. by performing the correction process based on an image processing apparatus for generating a color image data corresponding to the whole of the reading pixel region included in the sequential pixel signals captured through the light receiving means
Weighted average calculating means for calculating a weighted average using a power of 2 as a divisor based on a correlation equation based on three-point interpolation between the pixel signal of interest and the adjacent pixel signal for each of the RGB color signals ; The value calculated by the weighted average calculation means, as a correction value of each pixel signal obtained for each of the read pixel area,
An image processing apparatus comprising: a color image data generation unit configured to generate color image data according to a correction value of each pixel signal.
【請求項2】 上記加重平均算出手段は、上記各画素信
号に含まれる色信号ごとに、上記3点補間による相関関
係式に基づいて、負のウェイトを含む加重平均を算出し
ている、請求項1に記載の画像処理装置。
2. The weighted average calculation means calculates a weighted average including a negative weight for each color signal included in each of the pixel signals, based on the correlation equation based on the three-point interpolation. Item 2. The image processing device according to Item 1.
【請求項3】 上記加重平均算出手段によって算出され
た値が予定範囲を逸脱する場合、その算出値を所定の適
切な値に変更させる加重平均最適化手段を有している、
請求項1または2に記載の画像処理装置。
And a weighted average optimizing means for changing the calculated value to a predetermined appropriate value when the value calculated by the weighted average calculating means deviates from a predetermined range.
The image processing apparatus according to claim 1 or 2.
【請求項4】 主走査方向に沿う1ラインの読取画素領
域に対して副走査方向に相対的に移動しつつ、各読取画
素領域からRGB各色の反射光を交互に受光して画素信
号を出力する受光手段を有し、この受光手段により所定
の読取画素領域からRGB各色の光を受光して得られた
注目画素信号に対し、副走査方向に隣接する読取画素領
域から得られた隣接画素信号を基にして補正処理を施す
ことにより、上記読取画素領域の全体に対応したカラー
画像データを生成する画像処理装置を制御するためのプ
ログラムを記憶した記憶媒体であって、上記受光手段を介して順次取り込んだ各画素信号に含ま
れるRGB各色の色信号ごとに、 上記注目画素信号と上
記隣接画素信号との3点補間による相関関係式に基づい
て、2のべき数を除数とした加重平均を算出するための
加重平均算出プログラムと、 上記加重平均算出プログラムによって算出された値を、
上記各読取画素領域ごとに得られた各画素信号の補正値
とし、各画素信号の補正値に応じてカラー画像データを
生成するためのカラー画像データ生成プログラムとを含
むプログラムを記憶したことを特徴とする記憶媒体。
4. A pixel signal is output by alternately receiving reflected light of each color of RGB from each read pixel area while relatively moving in the sub- scan direction with respect to one line of read pixel area along the main scan direction. An adjacent pixel signal obtained from a reading pixel area adjacent in the sub-scanning direction with respect to a target pixel signal obtained by receiving light of each of RGB colors from a predetermined reading pixel area by the light receiving means. the by performing the correction process based on, a storage medium storing a program for controlling an image processing apparatus for generating a color image data corresponding to the whole of the read pixel region, through the light receiving means Included in each pixel signal acquired sequentially
Weighted average calculation program for calculating a weighted average using a power of 2 as a divisor based on a correlation equation by three-point interpolation between the pixel signal of interest and the adjacent pixel signal for each of the RGB color signals. And the value calculated by the weighted average calculation program,
A program including a color image data generation program for generating color image data according to the correction value of each pixel signal as a correction value of each pixel signal obtained for each of the read pixel regions is stored. Storage medium.
JP10366783A 1998-12-24 1998-12-24 Image processing device and storage medium Expired - Fee Related JP3099820B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10366783A JP3099820B2 (en) 1998-12-24 1998-12-24 Image processing device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10366783A JP3099820B2 (en) 1998-12-24 1998-12-24 Image processing device and storage medium

Publications (2)

Publication Number Publication Date
JP2000196902A JP2000196902A (en) 2000-07-14
JP3099820B2 true JP3099820B2 (en) 2000-10-16

Family

ID=18487666

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10366783A Expired - Fee Related JP3099820B2 (en) 1998-12-24 1998-12-24 Image processing device and storage medium

Country Status (1)

Country Link
JP (1) JP3099820B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7974489B2 (en) * 2007-05-30 2011-07-05 Avago Technologies Ecbu Ip (Singapore) Pte. Ltd. Buffer management for an adaptive buffer value using accumulation and averaging

Also Published As

Publication number Publication date
JP2000196902A (en) 2000-07-14

Similar Documents

Publication Publication Date Title
EP1303132B1 (en) Printing apparatus, control method therefor, and storage medium
US8619328B2 (en) Image processing apparatus and image processing method
JP3962642B2 (en) Image processing apparatus and method
US8711433B2 (en) Image forming apparatus and method for making density correction in a low resolution image based on edge determination
JP2004235993A (en) Method for image processing
JP2012232590A (en) System and program for forming image
JP2006251102A (en) Image forming apparatus
US8294954B2 (en) Image forming apparatus and method for reducing the difference of image qualities between the image data read by a plurality of reading units
JP3099820B2 (en) Image processing device and storage medium
KR20080032638A (en) Image processing apparatus, image processing method and image processing program product
US7554556B2 (en) Color image processing device and color image processing method
JP2012199669A (en) Image processing apparatus, image processing method, image processing program, and printer
JPH1141473A (en) Image processor, image recording device, and image forming device
JP2006259261A (en) Image forming apparatus
JP4753253B2 (en) Image processing device
US10542158B1 (en) Image forming apparatus and image forming method with gamma correction
JP5649552B2 (en) Image processing apparatus and image forming apparatus
US20030030827A1 (en) Image processing apparatus and image forming apparatus
JP6688193B2 (en) Image processing apparatus, image forming apparatus, image processing method, and image processing program
JP2002344763A (en) Image processor
JP4550432B2 (en) Image forming apparatus, image correction method, image correction program, and recording medium
JP2018078464A (en) Image processing device and program
JP4748985B2 (en) Halftone image forming method and apparatus for reducing dot isolation
JP3039662B2 (en) Recording device
JPH1155535A (en) Image processor

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080818

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090818

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100818

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100818

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110818

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120818

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120818

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130818

Year of fee payment: 13

LAPS Cancellation because of no payment of annual fees