[go: up one dir, main page]

JP2005260399A - Image processing apparatus and image forming apparatus - Google Patents

Image processing apparatus and image forming apparatus Download PDF

Info

Publication number
JP2005260399A
JP2005260399A JP2004066747A JP2004066747A JP2005260399A JP 2005260399 A JP2005260399 A JP 2005260399A JP 2004066747 A JP2004066747 A JP 2004066747A JP 2004066747 A JP2004066747 A JP 2004066747A JP 2005260399 A JP2005260399 A JP 2005260399A
Authority
JP
Japan
Prior art keywords
image
feature amount
processing
unit
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.)
Pending
Application number
JP2004066747A
Other languages
Japanese (ja)
Inventor
Koji Hayashi
浩司 林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2004066747A priority Critical patent/JP2005260399A/en
Publication of JP2005260399A publication Critical patent/JP2005260399A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Color, Gradation (AREA)
  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)

Abstract

【課題】 適切な特徴量抽出閾値を決定する手段を提供し、特徴量の抽出処理において階調変換テーブルの変更の影響を受けにくくする。
【解決手段】 画像処理用プリンターγ部409は、プリンターγテーブルに基づいて画像データの階調変換を行う。階調変換が行われた多階調の画像データは、階調処理部410で量子化閾値を用いた誤差拡散法により量子化される。特徴量抽出部1701は、階調変換後の画像データから特徴量閾値に基づいて画像の特徴量を抽出する。閾値選択部1702は、特徴量抽出後の特徴量に基づいて、周期的な振動の有無及び振動が有る場合の振幅の大きさのうち少なくとも前者が異なる複数の量子化閾値の中から誤差拡散法の実行に用いるものを選択する。特徴量の抽出に用いる特徴量抽出閾値は、プリンターγテーブルで処理し、この処理後の特徴量抽出閾値を特徴量の抽出に用いる。
【選択図】 図14
PROBLEM TO BE SOLVED: To provide means for determining an appropriate feature amount extraction threshold value, and to make it less susceptible to a change in a gradation conversion table in feature amount extraction processing.
An image processing printer γ unit 409 performs gradation conversion of image data based on a printer γ table. The multi-tone image data subjected to the tone conversion is quantized by the tone processing unit 410 by an error diffusion method using a quantization threshold. The feature amount extraction unit 1701 extracts the feature amount of the image based on the feature amount threshold value from the image data after gradation conversion. Based on the feature value after the feature value is extracted, the threshold value selection unit 1702 uses an error diffusion method from a plurality of quantization threshold values that differ in at least the former among the presence or absence of periodic vibration and the magnitude of amplitude when there is vibration. Select the one used to execute The feature amount extraction threshold used for extracting the feature amount is processed by the printer γ table, and the feature amount extraction threshold after the processing is used for extracting the feature amount.
[Selection] FIG.

Description

本発明は、画像データを誤差拡散法により量子化する画像処理装置及びこの画像処理装置を備えた画像形成装置に関する。   The present invention relates to an image processing apparatus that quantizes image data by an error diffusion method and an image forming apparatus including the image processing apparatus.

特許文献1,2には、量子化閾値を用いた誤差拡散法により画像データを量子化する技術について開示されている。   Patent Documents 1 and 2 disclose a technique for quantizing image data by an error diffusion method using a quantization threshold.

特許文献1に開示の技術では、画像のエッジ度合により誤差拡散処理の閾値パターンの切り替えを行う。閾値パターンには周期的な振動が含まれ、エッジ部分では振動振幅を小さくし単純な少値誤差拡散となり、平坦部分では振動振幅を大きく、ディザ処理に近いパターンとする。   In the technique disclosed in Patent Document 1, the threshold pattern of error diffusion processing is switched depending on the edge degree of an image. The threshold pattern includes periodic vibrations, the vibration amplitude is reduced at the edge portion to provide simple low-value error diffusion, the vibration amplitude is increased at the flat portion, and the pattern is close to dither processing.

特開2001−128004公報JP 2001-128004 A 特開2003−234893公報JP 2003-234893 A

階調変換テーブルによる階調変換後の画像データから画像の特徴量を抽出し、この特徴量抽出結果に基づいて誤差拡散処理で使用する量子化閾値を切り替える誤差拡散処理技術においては、ハードウェア構成上の制約から、特徴量抽出閾値が固定であっても、階調変換テーブルのパラメーターによって、特徴量が抽出される領域が異なり、最終的に階調処理で得られる画像が異なる場合がある。   In the error diffusion processing technique for extracting the feature amount of the image from the image data after the gradation conversion by the gradation conversion table and switching the quantization threshold used in the error diffusion processing based on the feature amount extraction result, the hardware configuration Due to the above restrictions, even if the feature amount extraction threshold is fixed, the region from which the feature amount is extracted differs depending on the parameters of the tone conversion table, and the image finally obtained by the tone processing may differ.

この場合には、階調変換テーブルのパラメーターにより特徴量抽出閾値のパラメーターも変更するようにすれば、特徴量抽出の結果が階調変換テーブルの影響を受けにくくすることができる。   In this case, if the parameter of the feature amount extraction threshold is also changed according to the parameter of the gradation conversion table, the result of feature amount extraction can be made less susceptible to the influence of the gradation conversion table.

しかしながら、このような場合において、適切な特徴量抽出閾値を決定する手段については知られていなかった(特許文献1,2を参照)。   However, in such a case, a means for determining an appropriate feature amount extraction threshold has not been known (see Patent Documents 1 and 2).

本発明の目的は、適切な特徴量抽出閾値を決定する手段を提供し、特徴量の抽出処理において階調変換テーブルの変更の影響を受けにくくすることである。   An object of the present invention is to provide means for determining an appropriate feature amount extraction threshold value, and to make it less susceptible to the change in the gradation conversion table in the feature amount extraction processing.

本発明は、所定の階調変換テーブルに基づいて画像データの階調変換を行う手段と、前記階調変換が行われた多階調の画像データを、所定の量子化閾値を用いた誤差拡散法により量子化する手段と、前記階調変換後の画像データから特徴量閾値に基づいて画像の特徴量を抽出する手段と、前記抽出後の特徴量に基づいて、周期的な振動の有無及び振動が有る場合の振幅の大きさのうち少なくとも前者が異なる複数の前記量子化閾値の中から前記誤差拡散法の実行に用いるものを選択する手段と、前記特徴量の抽出に用いる特徴量抽出閾値を前記階調変換テーブルで処理する手段と、を備え、前記処理後の特徴量抽出閾値を前記特徴量の抽出に用いる、画像処理装置である。   The present invention relates to a means for performing gradation conversion of image data based on a predetermined gradation conversion table, and error diffusion using a predetermined quantization threshold for the multi-gradation image data subjected to the gradation conversion. A means for quantizing by a method, a means for extracting a feature amount of an image from the image data after gradation conversion based on a feature amount threshold, and the presence or absence of periodic vibration based on the feature amount after extraction Means for selecting the one used for execution of the error diffusion method from among the plurality of quantization thresholds of which the former is different among the magnitudes of amplitudes when there is vibration; and a feature quantity extraction threshold used for extracting the feature quantity Is processed by the gradation conversion table, and a feature quantity extraction threshold after the process is used for extraction of the feature quantity.

本発明によれば、特徴量の抽出に用いる特徴量抽出閾値を階調変換テーブルで処理することで、適切な特徴量抽出閾値を決定することができ、特徴量の抽出処理において階調変換テーブルの変更の影響を受けにくくすることができる。   According to the present invention, an appropriate feature amount extraction threshold value can be determined by processing a feature amount extraction threshold value used for feature amount extraction using a gradation conversion table. Can be made less susceptible to changes.

発明を実施するための最良の一形態について説明する。   The best mode for carrying out the invention will be described.

以下は、本発明の画像形成装置を実施する電子写真複写機(以下、単に複写機と言う)ある。まず、図1に示す機構図によって実施の形態である複写機本体101の機構の概略を説明する。図1において、複写機本体101のほぼ中央部に4つ並んで配置された像担持体としての有機感光体(OPC)ドラム102a〜102dの周囲には、該感光体ドラム102a〜102dの表面を帯電する帯電チャージャー103a〜103d、一様帯電された感光体ドラム102a〜102dの表面上に半導体レーザ光を照射して静電潜像を形成するレーザ光学系104a〜104d、静電潜像に各色トナーを供給して現像し、色毎にトナー像を得る黒現像装置105及びイエローY、マゼンタM,シアンCの3つのカラー現像装置106,107,108、感光体ドラム102a〜102d上に形成された色毎のトナー像を順次転写する中間転写ベルト109、上記中間転写ベルト109に転写電圧を印加するバイアスローラ110a〜110d、転写後の感光体ドラム102の表面に残留するトナーを除去するクリーニング装置111a〜111d、転写後の感光体ドラム102a〜102dの表面に残留する電荷を除去する除電部112a〜112dなどが順次配列されている。また、上記中間転写ベルト109には、転写されたトナー像を転写材に転写する電圧を印加するための転写バイアスローラ113及び転写材に転写後に残留したトナー像をクリーニングするためのベルトクリーニング装置114が配設されている。   The following is an electrophotographic copying machine (hereinafter simply referred to as a copying machine) that implements the image forming apparatus of the present invention. First, the outline of the mechanism of the copying machine main body 101 according to the embodiment will be described with reference to the mechanism diagram shown in FIG. In FIG. 1, around the surface of organic photoconductor (OPC) drums 102a to 102d as image bearing members arranged side by side in the substantially central portion of the copying machine main body 101, the surfaces of the photoconductor drums 102a to 102d are disposed. Charging chargers 103a to 103d to be charged, laser optical systems 104a to 104d for forming an electrostatic latent image by irradiating the surface of uniformly charged photosensitive drums 102a to 102d with semiconductor laser light, and various colors to the electrostatic latent image It is formed on a black developing device 105 that supplies toner and develops toner images for each color, three color developing devices 106, 107, and 108 of yellow Y, magenta M, and cyan C, and photosensitive drums 102a to 102d. An intermediate transfer belt 109 for sequentially transferring toner images of respective colors, and bias rollers 110a to 110a for applying a transfer voltage to the intermediate transfer belt 109. 10d, cleaning devices 111a to 111d for removing the toner remaining on the surface of the photosensitive drum 102 after the transfer, neutralization units 112a to 112d for removing the charge remaining on the surface of the photosensitive drums 102a to 102d after the transfer, and the like. It is arranged. The intermediate transfer belt 109 has a transfer bias roller 113 for applying a voltage for transferring the transferred toner image to the transfer material, and a belt cleaning device 114 for cleaning the toner image remaining on the transfer material after transfer. Is arranged.

中間転写ベルト109から剥離された転写材を搬送する搬送ベルト115の出口側端部には、トナー像を加熱及び加圧して定着させる定着装置116が配置されているとともに、この定着装置116の出口部には、排紙トレイ117が取り付けられている。   A fixing device 116 that heats and pressurizes and fixes the toner image is disposed at the end of the conveyance belt 115 that conveys the transfer material peeled off from the intermediate transfer belt 109. A paper discharge tray 117 is attached to the section.

レーザ光学系104の上部には、複写機本体101の上部に配置された原稿載置台としてのコンタクトガラス118、このコンタクトガラス118上の原稿に走査光を照射する露光ランプ119、原稿からの反射光を反射ミラー121によって結像レンズ122に導き、光電変換素子であるCCD(Charge Coupled Device)のイメージセンサアレイ123に入光させる。CCDのイメージセンサアレイ123で電気信号に変換された画像信号は図示しない画像処理装置を経て、レーザ光学系104中の半導体レーザのレーザ発振を制御する。   Above the laser optical system 104, a contact glass 118 serving as a document placement table disposed above the copier body 101, an exposure lamp 119 for irradiating scanning light onto the document on the contact glass 118, and reflected light from the document Is guided to the imaging lens 122 by the reflecting mirror 121 and is incident on an image sensor array 123 of a CCD (Charge Coupled Device) which is a photoelectric conversion element. The image signal converted into an electrical signal by the CCD image sensor array 123 is controlled by an unillustrated image processing device to control the laser oscillation of the semiconductor laser in the laser optical system 104.

次に、複写機に内蔵される制御系について説明する。図2に示すように、この制御系は、メイン制御部(CPU)130を備え、このメイン制御部130に対して所定のROM131、RAM132、NV−RAM(不揮発RAM)183、フラッシュメモリ184が付設されている。NV−RAM183には各種パラメーターを記憶し、フラッシュメモリには制御プログラムを記憶させている。更に上記メイン制御部130には、インターフェースI/O133を介してレーザ光学系制御部134、電源回路135、YMCK各作像部に設置された光学センサー136、YMCK各現像器内に設置されたトナー濃度センサー137、環境センサー138、感光体表面電位センサー139a〜139d、トナー補給回路140、中間転写ベルト駆動部141、操作部142、がそれぞれ接続されている。上記レーザ光学系制御部134は、前記レーザ光学系104a〜104dのレーザ出力を調整するものであり、また上記電源回路135は、前記帯電チャージャー113a〜113dに対して所定の帯電用放電電圧を与えると共に、現像装置105,106,107,108に対して所定電圧の現像バイアスを与え、かつ、バイアスローラ110a〜110dおよび転写バイアスローラ113a〜113dに対して所定の転写電圧を与えるものである。   Next, a control system built in the copying machine will be described. As shown in FIG. 2, the control system includes a main control unit (CPU) 130, and a predetermined ROM 131, RAM 132, NV-RAM (nonvolatile RAM) 183, and flash memory 184 are attached to the main control unit 130. Has been. Various parameters are stored in the NV-RAM 183, and a control program is stored in the flash memory. Further, the main control unit 130 includes, via an interface I / O 133, a laser optical system control unit 134, a power supply circuit 135, an optical sensor 136 installed in each YMCK image forming unit, and a toner installed in each YMCK developer. A density sensor 137, an environmental sensor 138, photoconductor surface potential sensors 139a to 139d, a toner supply circuit 140, an intermediate transfer belt drive unit 141, and an operation unit 142 are connected to each other. The laser optical system control unit 134 adjusts the laser output of the laser optical systems 104a to 104d, and the power supply circuit 135 gives a predetermined charging discharge voltage to the charging chargers 113a to 113d. At the same time, a developing bias having a predetermined voltage is applied to the developing devices 105, 106, 107, and 108, and a predetermined transfer voltage is applied to the bias rollers 110a to 110d and the transfer bias rollers 113a to 113d.

なお、光学センサー136は、それぞれ感光体102a〜102dに対向させ、感光体102a〜102d上のトナー付着量を検知するための光学センサー136a、転写ベルト109に対向させ、転写ベルト109上のトナー付着量を検知するための光学センサー136b、搬送ベルト115に対向させ、搬送ベルト115上のトナー付着量を検知するための光学センサー136cを図示した。なお、実用上は光学センサー136a〜136cのいずれか1カ所で検知すれば良い。   The optical sensors 136 are opposed to the photoconductors 102a to 102d, respectively, are opposed to the optical sensor 136a and the transfer belt 109 for detecting the toner adhesion amount on the photoconductors 102a to 102d, and are attached to the toner on the transfer belt 109. The optical sensor 136b for detecting the amount and the optical sensor 136c for detecting the toner adhesion amount on the conveyor belt 115 while facing the conveyor belt 115 are shown. In practice, detection may be performed at any one of the optical sensors 136a to 136c.

光学センサー136a〜136cは、前記感光体ドラム102a〜102dの転写後の領域に近接配置される発光ダイオードなどの発光素子とフォトセンサーなどの受光素子とからなり、感光体ドラム102上に形成される検知パターン潜像のトナー像におけるトナー付着量及び地肌部におけるトナー付着量が色毎にそれぞれ検知されるとともに、感光体除電後のいわゆる残留電位が検知されるようになっている。
この光電センサー136a〜136cからの検知出力信号は、図示を省略した光電センサー制御部に印加される。光電センサー制御部は、検知パターントナー像に於けるトナー付着量と地肌部におけるトナー付着量との比率を求め、その比率値を基準値と比較して画像濃度の変動を検知し、YMCK各色のトナー濃度センサー137の制御値の補正を行なう。
The optical sensors 136a to 136c are formed of a light emitting element such as a light emitting diode and a light receiving element such as a photosensor, which are disposed in the vicinity of the areas after transfer of the photosensitive drums 102a to 102d, and are formed on the photosensitive drum 102. The toner adhesion amount in the toner image of the detection pattern latent image and the toner adhesion amount in the background portion are detected for each color, and so-called residual potential after static elimination on the photoreceptor is detected.
The detection output signals from the photoelectric sensors 136a to 136c are applied to a photoelectric sensor control unit (not shown). The photoelectric sensor control unit obtains a ratio between the toner adhesion amount in the detection pattern toner image and the toner adhesion amount in the background portion, compares the ratio value with a reference value, detects a change in image density, and detects each color of YMCK. The control value of the toner density sensor 137 is corrected.

更に、トナー濃度センサー137は、現像装置105〜108には、現像装置105から108内に存在する現像剤の透磁率変化に基づいてトナー濃度を検知する。トナー濃度センサー137は、検知されたトナー濃度値と基準値と比較し、トナー濃度が一定値を下回ってトナー不足状態になった場合に、その不足分に対応した大きさのトナー補給信号をトナー補給回路140に印加する機能を備えている。電位センサー139は、像担持体である感光体102a〜102dのそれぞれの表面電位を検知し、中間転写ベルト駆動部141は、中間転写ベルトの駆動を制御する。   Further, the toner density sensor 137 detects the toner density in the developing devices 105 to 108 based on the change in magnetic permeability of the developer present in the developing devices 105 to 108. The toner density sensor 137 compares the detected toner density value with a reference value, and when the toner density falls below a certain value and becomes a toner shortage state, a toner replenishment signal having a magnitude corresponding to the shortage is supplied to the toner. A function of applying to the supply circuit 140 is provided. The potential sensor 139 detects the surface potential of each of the photoconductors 102a to 102d, which are image carriers, and the intermediate transfer belt drive unit 141 controls the drive of the intermediate transfer belt.

黒現像器105内には黒トナーとキャリアを含む現像剤が収容されていて、これは、剤撹拌部材202の回転によって撹拌され、現像スリーブ201B上で、現像剤規制部材202によってスリーブ上に汲み上げられる現像剤量を調整する。この供給された現像剤は、現像スリーブ201B上に磁気的に担持されつつ、磁気ブラシとして現像スリーブ201Bの回転方向に回転する。   The black developer 105 contains a developer containing black toner and a carrier, which is agitated by the rotation of the agent agitating member 202 and pumped onto the sleeve by the developer regulating member 202 on the developing sleeve 201B. Adjust the amount of developer produced. The supplied developer is magnetically carried on the developing sleeve 201B and rotates as a magnetic brush in the rotating direction of the developing sleeve 201B.

次に、図3のブロック図に基づいて、複写機の画像処理装置について説明する。図3において、400はスキャナー、401はシェーディング補正部、423はエリア処理部、402はスキャナーγ変換部、403は画像メモリ、404は画像分離部、405はMTFフィルター、406は色変換UCR処理部、426は画像圧縮・伸張部、407は変倍部、408は画像加工(クリエイト)部、409は画像処理用プリンターγ変換部、410は階調処理部、411はインターフェースI/F・セレクタ、412は画像形成部用プリンターγ(以下、プロコンγと呼ぶ)変換部、413はプリンタエンジンとなるプリンター、414はROM、415はCPU、416はRAM、417はシステムコントローラー、418は外部コンピュータ、419はプリンターコントローラ、421及び422はそれぞれパターン発生部、425はNV−RAM(不揮発RAM)である。   Next, the image processing apparatus of the copying machine will be described based on the block diagram of FIG. 3, 400 is a scanner, 401 is a shading correction unit, 423 is an area processing unit, 402 is a scanner γ conversion unit, 403 is an image memory, 404 is an image separation unit, 405 is an MTF filter, and 406 is a color conversion UCR processing unit. 426 is an image compression / expansion unit, 407 is a scaling unit, 408 is an image processing (create) unit, 409 is an image processing printer γ conversion unit, 410 is a gradation processing unit, 411 is an interface I / F selector, Reference numeral 412 denotes an image forming unit printer γ (hereinafter referred to as “procon γ”) conversion unit, 413 a printer serving as a printer engine, 414 a ROM, 415 a CPU, 416 a RAM, 417 a system controller, 418 an external computer, 419 Is the printer controller, and 421 and 422 generate patterns respectively. , 425 is a NV-RAM (non-volatile RAM).

複写機で複写すべき原稿は、カラースキャナ400によりR,G,Bに色分解されて、一例として10ビット信号で読み取られる。読みとられた画像信号は、シェーディング補正部401により、主走査方向のムラが補正され、8ビット信号で出力される。   A document to be copied by a copying machine is color-separated into R, G, and B by a color scanner 400 and is read as a 10-bit signal as an example. The read image signal is corrected for unevenness in the main scanning direction by the shading correction unit 401 and output as an 8-bit signal.

エリア処理部423では、現在処理を行っている画像データが原稿内のどの領域に属するかを区別するための領域信号を発生させる。この回路で発生された領域信号により、後段の画像処理部で用いるパラメーターを切り替える。これらの領域は、指定領域毎に、文字、銀塩写真(印画紙)、印刷原稿、インクジェット、蛍光ペン、地図、熱転写原稿など、それぞれの原稿に最適な色補正係数、空間フィルター、階調変換テーブルなどの画像処理パラメーターをそれぞれ画像領域に応じて設定することができる。   The area processing unit 423 generates an area signal for distinguishing which area in the document the image data currently being processed belongs to. The parameters used in the subsequent image processing unit are switched according to the area signal generated by this circuit. These areas include color correction coefficients, spatial filters, and gradation conversion that are optimal for each original, such as text, silver halide photographs (photographic paper), printed originals, inkjets, highlighters, maps, and thermal transfer originals. Image processing parameters such as a table can be set according to the image area.

インターフェース(I/F)411は、スキャナー400で読み取った画像を外部に出力する際に使用する。   An interface (I / F) 411 is used when an image read by the scanner 400 is output to the outside.

スキャナーγ変換部402では、スキャナー400からの読み取り信号が反射率データから明度データに変換される。   In the scanner γ conversion unit 402, a read signal from the scanner 400 is converted from reflectance data to brightness data.

画像メモリ403は、スキャナーγ変換後の画像信号を記憶する。画像分離部404では、画像の文字部と写真部の判定、及び有彩色・無彩色判定を行う。   The image memory 403 stores the image signal after the scanner γ conversion. The image separation unit 404 performs determination of a character part and a photograph part of an image, and chromatic / achromatic color determination.

MTFフィルター405では、シャープな画像やソフトな画像など、使用者の好みに応じてエッジ強調や平滑化等、画像信号の周波数特性を変更する処理に加えて、画像信号のエッジ度に応じたエッジ強調処理(適応エッジ強調処理)を行う。例えば、文字エッジにはエッジ強調を行い、網点画像にはエッジ強調を行わないという所謂適応エッジ強調をR、G、B信号それぞれに対して行う。   In the MTF filter 405, in addition to processing for changing the frequency characteristics of the image signal such as edge enhancement or smoothing according to the user's preference, such as a sharp image or a soft image, the edge according to the edge degree of the image signal Perform enhancement processing (adaptive edge enhancement processing). For example, so-called adaptive edge enhancement, in which edge enhancement is performed on a character edge and edge enhancement is not performed on a halftone image, is performed on each of the R, G, and B signals.

図4に、MTFフィルター部405の例を示す。スキャナーγ変換402によって反射率リニアから明度リニアに変換された画像信号は、図4の平滑化フィルター部1101によって平滑化する。平滑化には、一例として、表1の係数を使用する。   FIG. 4 shows an example of the MTF filter unit 405. The image signal converted from reflectance linear to lightness linear by the scanner γ conversion 402 is smoothed by the smoothing filter unit 1101 in FIG. As an example, the coefficients shown in Table 1 are used for smoothing.

Figure 2005260399
Figure 2005260399

次に、次段の3×3のラプラシアンフィルタ1102によって画像データの微分成分が抽出される。ラプラシアンフィルタの具体例は、表2のとおりである。   Next, the differential component of the image data is extracted by the 3 × 3 Laplacian filter 1102 at the next stage. Specific examples of the Laplacian filter are shown in Table 2.

Figure 2005260399
Figure 2005260399

スキャナーγ変換によるγ変換をされない10ビットの画像信号のうち、上位8ビット(一例である)成分が、エッジ量検出フィルター1103により、エッジ検出がなされる。
エッジ量検出フィルター1103の具体例を図5に示す。
Of the 10-bit image signal that is not subjected to γ conversion by the scanner γ conversion, the edge detection is performed by the edge amount detection filter 1103 on the upper 8 bits (one example).
A specific example of the edge amount detection filter 1103 is shown in FIG.

エッジ検出フィルター1103により得られたエッジ量のうち、最大値がエッジ度として使用される。すなわち、エッジ度は、必要に応じて後段の平滑化フィルター1104により平滑化される。
これにより、スキャナーの偶数画素と奇数画素の感度差の影響を軽減する。
一例として、表3のような係数を使用する。
Of the edge amounts obtained by the edge detection filter 1103, the maximum value is used as the edge degree. That is, the edge degree is smoothed by the subsequent smoothing filter 1104 as necessary.
This reduces the influence of the sensitivity difference between the even and odd pixels of the scanner.
As an example, the coefficients shown in Table 3 are used.

Figure 2005260399
Figure 2005260399

そして、テーブル変換部1105により、求められたエッジ度をテーブル変換する。このテーブルの値により、線や点の濃さ(コントラスト、濃度を含む)および網点部の滑らかさを指定する。このテーブルにおける画像のエッジ度とフィルター係数の関係の例を図6に示す。エッジ度は、白地に黒い線や点などで最も大きくなり、印刷の細かい網点や、銀塩写真や熱転写原稿などのように画素の境界が滑らかなものになるほど小さくなる。   Then, the table conversion unit 1105 converts the obtained edge degree into a table. The values of this table specify the darkness of lines and dots (including contrast and density) and the smoothness of the halftone dots. An example of the relationship between the edge degree of the image and the filter coefficient in this table is shown in FIG. The edge degree is the largest with black lines or dots on a white background, and the edge degree becomes smaller as the pixel boundaries become smoother, such as finely printed halftone dots, silver halide photographs, and thermal transfer originals.

図5のテーブル変換部1105によって変換されたエッジ度(画像信号C)と、ラプラシアンフィルタ1102の出力値(画像信号B)との積(画像信号D)が、平滑処理後の画像信号(画像信号A)に加算され、画像信号EとしてMTFフィルター405の後段の回路に伝達される。   The product (image signal D) of the edge degree (image signal C) converted by the table conversion unit 1105 in FIG. 5 and the output value (image signal B) of the Laplacian filter 1102 is the image signal after smoothing (image signal). Is added to A), and is transmitted as an image signal E to a circuit subsequent to the MTF filter 405.

色変換UCR処理部406では、入力系の色分解特性と出力系の色材の分光特性の違いを補正し、忠実な色再現に必要な色材Y,M,Cの量を計算する色補正処理と、Y,M,Cの3色が重なる部分をBk(ブラック)に置き換えるためのUCR処理を行なう。色補正処理は下式のようなマトリクス演算をすることにより実現できる。   The color conversion UCR processing unit 406 corrects the difference between the color separation characteristics of the input system and the spectral characteristics of the output system color material, and calculates the amount of color materials Y, M, and C necessary for faithful color reproduction. The UCR process for replacing the part where the three colors Y, M, and C overlap with Bk (black) is performed. The color correction process can be realized by performing a matrix operation as shown in the following equation.

Figure 2005260399
Figure 2005260399

ここで、s(R),s(G),s(B)は、スキャナーγ変換処理後のスキャナー400のR,G,B信号を表す。hueは、White,Black,Yellow,Red,Magenta,Blue,Cyan,Greenなどの各色相を表す。この色相の分割は一例であり、もっと細かく分割しても良い。マトリクス係数aij(hue)は入力系と出力系(色材)の分光特性によって前述した色相毎に決まる。ここでは、1次マスキング方程式を例に挙げたが、s(B)×s(B),s(B)×s(G)のような2次項、あるいは、さらに高次の項を用いることにより、より精度良く色補正することができる。また、ノイゲバウアー方程式を用いるようにしても良い。何れの方法にしても、Y,M,Cは、s(B),s(G),s(R)の値から求めることができる。   Here, s (R), s (G), and s (B) represent the R, G, and B signals of the scanner 400 after the scanner γ conversion processing. Hue represents each hue such as White, Black, Yellow, Red, Magenta, Blue, Cyan, and Green. This division of hue is an example, and it may be divided more finely. The matrix coefficient aij (hue) is determined for each hue described above according to the spectral characteristics of the input system and the output system (color material). Here, the primary masking equation is taken as an example, but by using a quadratic term such as s (B) × s (B), s (B) × s (G), or a higher order term. Therefore, color correction can be performed with higher accuracy. Further, the Neugebauer equation may be used. In any method, Y, M, and C can be obtained from the values of s (B), s (G), and s (R).

色相の判定は、一例として以下のように行う。   The determination of the hue is performed as follows as an example.

スキャナー400の読み取り値と測色値との関係は、所定の係数bij(i,j=1,2,3)を用いて、   The relationship between the reading value of the scanner 400 and the colorimetric value is determined using predetermined coefficients bij (i, j = 1, 2, 3).

Figure 2005260399
Figure 2005260399

と表される。 It is expressed.

測色値の定義から、   From the definition of colorimetric values,

Figure 2005260399
Figure 2005260399

などと関係づけられるので、スキャナー400のR,G,B信号から読み取った原稿のある画素がどの色相に相当するかを判定することができる。図7に色相の一例を図示した。図7の色相については、一般に良く知られているので概略のみを説明する。上部の同心円の中心は、L*a*b*表色系で、a*=b*=0で無彩色の軸である。円の中心から放射方向への距離は、彩度c*で、a*>0かつb*=0の直線からある点までの角度は色相角h*である。Yellow,Red,Magenta,Blue,Cyan,Greenの各色相は、彩度のある基準値c0*に対し、彩度c*≧c0*となる彩度を有し、かつ、色相角がそれぞれ、
Yellow:H1*≦h*<H6*
Red:H2*≦h*<H1*
Magenta:H3*≦h*<0および0≦h*<H2*
Blue:H4*≦h*<H3*
Cyan:H5*≦h*<H4*
Green:H6*≦h*<H5*
などと定義する(一例である)。
Therefore, it is possible to determine which hue corresponds to a certain pixel of the document read from the R, G, and B signals of the scanner 400. FIG. 7 shows an example of the hue. Since the hue of FIG. 7 is generally well known, only the outline will be described. The center of the upper concentric circle is the L * a * b * color system, with a * = b * = 0 and an achromatic axis. The distance from the center of the circle in the radial direction is saturation c *, and the angle from a straight line of a *> 0 and b * = 0 to a certain point is the hue angle h *. Each hue of Yellow, Red, Magenta, Blue, Cyan, and Green has a saturation that satisfies saturation c * ≧ c0 * with respect to a reference value c0 * having saturation, and the hue angle is respectively
Yellow: H1 * ≦ h * <H6 *
Red: H2 * ≦ h * <H1 *
Magenta: H3 * ≦ h * <0 and 0 ≦ h * <H2 *
Blue: H4 * ≦ h * <H3 *
Cyan: H5 * ≦ h * <H4 *
Green: H6 * ≦ h * <H5 *
And so on (this is an example).

図7の下の図の縦軸は、L*(明度)を表し、彩度c*が、c*≦c0*であり、
White:L=100
Black:L=0
などと定義する。
また、簡易的には、s(B),s(G),s(R)の各信号の比s(B):s(G):s(R)と絶対値から、色相を判定することも可能である。
The vertical axis in the lower diagram of FIG. 7 represents L * (brightness), the saturation c * is c * ≦ c0 *,
White: L = 100
Black: L = 0
And so on.
Further, simply, the hue is determined from the ratio s (B): s (G): s (R) of each signal of s (B), s (G), and s (R) and the absolute value. Is also possible.

一方、UCR処理は次式を用いて演算することにより行うことができる。   On the other hand, UCR processing can be performed by calculating using the following equation.

Y’=Y−α・min(Y,M,C)
M’=M−α・min(Y,M,C)
C’=C−α・min(Y,M,C)
Bk=α・min(Y,M,C)
上式において、αはUCRの量を決める係数で、α=1の時100%UCR処理となる。αは一定値でも良い。例えば、高濃度部では、αは1に近く、ハイライト部(低画像濃度部)では、0に近くすることにより、画像のハイライト部での画像を滑らかにすることができる。上記の色補正係数は、RGBYMCの6色相をそれぞれ更に2分割した12色相に、更に黒および白の14色相毎に異なる。
Y ′ = Y−α · min (Y, M, C)
M ′ = M−α · min (Y, M, C)
C ′ = C−α · min (Y, M, C)
Bk = α · min (Y, M, C)
In the above equation, α is a coefficient that determines the amount of UCR, and when α = 1, 100% UCR processing is performed. α may be a constant value. For example, when α is close to 1 in the high density portion and close to 0 in the highlight portion (low image density portion), the image in the highlight portion of the image can be smoothed. The above-described color correction coefficient is changed to 12 hues obtained by further dividing the six hues of RGBYMC into two, and further to every 14 hues of black and white.

図3の色相判定部424は、読み取った画像データがどの色相に判別するかを判定する。そして、判定した結果に基づいて、各色相毎の色補正係数を選択する。   The hue determination unit 424 in FIG. 3 determines to which hue the read image data is determined. Based on the determined result, a color correction coefficient for each hue is selected.

画像圧縮・伸張部426では、画像の圧縮・伸張を行い、画像メモリ403では圧縮した画像データの蓄積・呼び出しを行う。   The image compression / decompression unit 426 performs image compression / decompression, and the image memory 403 stores and calls the compressed image data.

変倍部407は、画像の縦横変倍を行い、画像加工(クリエイト)部408は、リピート処理などを行なう。   A scaling unit 407 performs vertical / horizontal scaling of the image, and an image processing (creating) unit 408 performs repeat processing and the like.

画像処理用プリンターγ部409は、文字、写真などの画質モードに応じて、画像信号の補正を行なう。また、画像中の地肌飛ばしなども同時に行うこともできる。画像処理用プリンターγ補正部409は、前述したエリア処理部423が発生した領域信号に対応して切り替え可能な複数本(一例として10本)の階調変換テーブル(プリンタγテーブル)を備えている。この階調変換テーブルでは、文字、銀塩写真(印画紙)、印刷原稿、インクジェット、蛍光ペン、地図、熱転写原稿など、それぞれの原稿に最適な階調変換を行なうためのテーブルを複数の画像処理パラメーターの中から選択することができる。   An image processing printer γ unit 409 corrects an image signal in accordance with an image quality mode such as characters and photographs. In addition, it is possible to simultaneously perform background removal in an image. The image processing printer γ correction unit 409 includes a plurality of (for example, 10) gradation conversion tables (printer γ tables) that can be switched in accordance with the area signal generated by the area processing unit 423 described above. . In this gradation conversion table, a table for performing optimum gradation conversion for each original such as characters, silver halide photographs (printing paper), printed originals, ink jets, highlighter pens, maps, thermal transfer originals, etc. You can choose from parameters.

階調処理部410は、画像の階調処理を行なう。この階調処理はSIMD型のプロセッサーによって行う。   The gradation processing unit 410 performs gradation processing on the image. This gradation processing is performed by a SIMD type processor.

図8は、SIMD型プロセッサー1506の概略構成を示す説明図である。SIMD(Single Instruction-stream Multiple Data-stream)型プロセッサー1506は、複数のデータに対し単一の命令を並列に実行させるもので、複数のPE(プロセッサー・エレメント)より構成される。それぞれのPEはデータを格納するレジスター(Reg)2001、他のPEのレジスターをアクセスするためのマルチプレクサ(MUX)2002、バレルシフター(ShiftExpand)2003、論理演算器(ALU)2004、論理結果を格納するアキュムレーター(A)2005、アキュムレーターの内容を一時的に退避させるテンポラリー・レジスター(F)2006から構成される。   FIG. 8 is an explanatory diagram showing a schematic configuration of the SIMD type processor 1506. A SIMD (Single Instruction-stream Multiple Data-stream) processor 1506 executes a single instruction in parallel on a plurality of data, and is composed of a plurality of PEs (processor elements). Each PE stores a register (Reg) 2001 for storing data, a multiplexer (MUX) 2002 for accessing a register of another PE, a barrel shifter (ShiftExpand) 2003, a logical operation unit (ALU) 2004, and a logical result. An accumulator (A) 2005 and a temporary register (F) 2006 for temporarily saving the contents of the accumulator.

各レジスター2001は、アドレスバスおよびデータバス(リード線およびワード線)に接続されており、処理を規定する命令コード、処理の対象となるデータを格納する。レジスター2001の内容は論理演算器2004に入力され、演算処理結果はアキュムレーター2005に格納される。結果をPE外部に取り出すために、テンポラリー・レジスター2006に一旦退避させる。テンポラリー・レジスター2006の内容を取り出すことにより、対象データに対する処理結果が得られる。   Each register 2001 is connected to an address bus and a data bus (read line and word line), and stores an instruction code defining processing and data to be processed. The contents of the register 2001 are input to the logical operation unit 2004, and the operation processing result is stored in the accumulator 2005. In order to retrieve the result outside the PE, the result is temporarily saved in the temporary register 2006. By extracting the contents of the temporary register 2006, the processing result for the target data is obtained.

命令コードは各PEに同一内容で与え、処理の対象データをPEごとに異なる状態で与え、隣接PEのレジスター2001の内容をマルチプレクサ2002において参照することで、演算結果は並列処理され、各アキュムレーター2005に出力される。   The instruction code is given to each PE with the same contents, the processing target data is given in a different state for each PE, and the contents of the register 2001 of the adjacent PE are referred to in the multiplexer 2002, so that the operation result is processed in parallel. It is output to 2005.

たとえば、画像データ1ラインの内容を各画素ごとにPEに配置し、同一の命令コードで演算処理させれば、1画素ずつ逐次処理するよりも短時間で1ライン分の処理結果が得られる。特に、空間フィルター処理はPEごとの命令コードは演算式そのもので、PE全てに共通に処理を実施することができる。   For example, if the content of one line of image data is arranged in the PE for each pixel and is processed by the same instruction code, the processing result for one line can be obtained in a shorter time than the sequential processing of each pixel. In particular, in the spatial filter processing, the instruction code for each PE is an arithmetic expression itself, and the processing can be performed in common for all the PEs.

次に、図3の画像処理装置に用いるSIMD型の画像データ処理と逐次型の画像データ処理とで実現する場合のハードウェア構成について説明する。図9は、SIMD型の画像データ処理を実行するSIMD型画像データ処理部1500と、逐次型の画像データ処理を実行する逐次画像データ演算処理部1507との構成についてハードウェア説明するブロック図である。本実施の形態では、まず、SIMD型画像データ処理部1500について説明し、続いて逐次型画像データ処理部1507について説明する。   Next, a hardware configuration in the case of realizing the SIMD type image data processing and the sequential type image data processing used in the image processing apparatus of FIG. 3 will be described. FIG. 9 is a block diagram for explaining the hardware of the configurations of a SIMD type image data processing unit 1500 that executes SIMD type image data processing and a sequential image data calculation processing unit 1507 that executes sequential type image data processing. . In this embodiment, first, the SIMD type image data processing unit 1500 will be described, and then the sequential type image data processing unit 1507 will be described.

画像データ並列処理部1500と画像データ逐次処理部1507とは、一方向に配列された複数の画素で構成される複数の画素ラインとして画像を処理するものである。図10は、画素ラインを説明するための図であり、画素ラインa〜dの4本の画素ラインを示している。また、図中に斜線を付して示した画素は、今回処理される注目画素である。   The image data parallel processing unit 1500 and the image data sequential processing unit 1507 process an image as a plurality of pixel lines composed of a plurality of pixels arranged in one direction. FIG. 10 is a diagram for explaining pixel lines, and shows four pixel lines of pixel lines a to d. In addition, pixels indicated by hatching in the figure are target pixels to be processed this time.

本実施の形態では、注目画素の誤差拡散処理に当たり、注目画素に対して周囲の画素の影響を、同一の画素ラインに含まれる画素、異なる画素ラインに含まれる画素の両方について考慮している。そして、注目画素とは異なる画素ラインに含まれる画素との間の誤差拡散処理をSIMD型画像データ処理部1500でおこない、注目画素と同一の画素ラインに含まれる画素(図中に丸付き数字の1,2,3を付して示した画素)との間の誤差拡散処理を逐次型画像データ処理部1507でおこなう。   In the present embodiment, in the error diffusion process of the target pixel, the influence of surrounding pixels on the target pixel is considered for both pixels included in the same pixel line and pixels included in different pixel lines. Then, error diffusion processing between pixels included in a pixel line different from the target pixel is performed by the SIMD type image data processing unit 1500, and pixels included in the same pixel line as the target pixel (circled numbers in the figure). The sequential image data processing unit 1507 performs error diffusion processing between the pixels 1, 2, and 3.

SIMD型画像データ処理部1500は、SIMD型プロセッサー1506と、SIMD型画像データ処理部1500に画像データおよび制御信号を入力する5つのデータ入出力用バス1501a〜1501eと、データ入出力用バス1501a〜1501eをスイッチングしてSIMD型プロセッサー1506に入力する画像データおよび制御信号を切り替えるとともに、接続されたバスのバス幅を切り替えるバススイッチ1502a〜1502cと、入力した画像データの処理に使用されるデータを記憶する20個のRAM1503と、各々対応するRAM1503を制御するメモリーコントローラー1505a、メモリーコントローラー1505b、メモリーコントローラー1505aまたはメモリーコントローラー1505bの制御にしたがってRAM1503をスイッチングする4つのメモリースイッチ1504a〜1504dを有している。   The SIMD type image data processing unit 1500 includes a SIMD type processor 1506, five data input / output buses 1501a to 1501e for inputting image data and control signals to the SIMD type image data processing unit 1500, and data input / output buses 1501a to 1501a. 1501e is switched to switch the image data and control signals input to the SIMD type processor 1506, and the bus switches 1502a to 1502c for switching the bus width of the connected bus, and data used for processing the input image data are stored. 20 RAMs 1503 that control the memory controller 1505a, memory controller 1505b, memory controller 1505a, or memory controller 1505b that control the corresponding RAM 1503 Thus it has four memory switches 1504a~1504d for switching the RAM 1503.

なお、以上の構成では、バススイッチ1502a〜1502cによって制御されるメモリーコントローラーをメモリーコントローラー1505bとし、バススイッチ1502a〜1502cの制御をうけないメモリーコントローラーをメモリーコントローラー1505aとして区別した。   In the above configuration, the memory controller controlled by the bus switches 1502a to 1502c is identified as the memory controller 1505b, and the memory controller that is not controlled by the bus switches 1502a to 1502c is identified as the memory controller 1505a.

上記したSIMD型プロセッサー1506は、レジスター0(R0)〜レジスター23(R23)を備えている。R0〜R23の各々は、SIMD型プロセッサー1506にあるPEとメモリーコントローラー1505a,1505bとのデータインターフェースとして機能する。バススイッチ1502aは、R0〜R3に接続されたメモリーコントローラー1505bを切り替えてSIMD型プロセッサーに制御信号を入力する。   The SIMD type processor 1506 described above includes registers 0 (R0) to 23 (R23). Each of R0 to R23 functions as a data interface between the PE in the SIMD type processor 1506 and the memory controllers 1505a and 1505b. The bus switch 1502a switches the memory controller 1505b connected to R0 to R3 and inputs a control signal to the SIMD type processor.

また、バススイッチ1502bは、R4,R5に接続されたメモリーコントローラー1505を切り替えてSIMD型プロセッサー1506に制御信号を入力する。また、バススイッチ1502cは、R6〜R9に接続されたメモリーコントローラー1505を切り替えてSIMD型プロセッサー1506に制御信号を入力する。そして、バススイッチ1502cは、R6〜R9に接続されたメモリーコントローラー1505bを切り替えてSIMD型プロセッサー1506に制御信号を入力する。   The bus switch 1502b switches the memory controller 1505 connected to R4 and R5 and inputs a control signal to the SIMD type processor 1506. The bus switch 1502c switches the memory controller 1505 connected to R6 to R9 and inputs a control signal to the SIMD type processor 1506. The bus switch 1502c switches the memory controller 1505b connected to R6 to R9 and inputs a control signal to the SIMD type processor 1506.

メモリースイッチ1504aは、R0〜R5に接続されたメモリーコントローラー1505bを使用してSIMD型プロセッサー1506内部のPEとRAM1503との間で画像データを授受している。また、メモリースイッチ1504bは、R6,R7に接続されたメモリーコントローラー1505bを使用してSIMD型プロセッサー1506内部のPEとRAM1503との間で画像データを授受している。また、メモリースイッチ1504cは、R8〜R13に接続されたメモリーコントローラー1505aまたはメモリーコントローラー1505bを使用してSIMD型プロセッサー1506内部のPEとRAM1503との間で画像データを授受している。   The memory switch 1504a exchanges image data between the PE in the SIMD type processor 1506 and the RAM 1503 using a memory controller 1505b connected to R0 to R5. The memory switch 1504b exchanges image data between the PE in the SIMD type processor 1506 and the RAM 1503 using the memory controller 1505b connected to R6 and R7. The memory switch 1504c exchanges image data between the PE in the SIMD type processor 1506 and the RAM 1503 using the memory controller 1505a or the memory controller 1505b connected to R8 to R13.

そして、メモリースイッチ1504dは、R14〜R19に接続されたメモリーコントローラー1505aを使用してSIMD型プロセッサー1506内部のPEとRAM1503との間で画像データを授受している。   The memory switch 1504d exchanges image data between the PE in the SIMD type processor 1506 and the RAM 1503 using the memory controller 1505a connected to R14 to R19.

画像データ制御部203は、画像データとともに画像データを処理するための制御信号をデータ入出力用バス1501a〜1501eを介してバススイッチ1502a〜1502cに入力する。バススイッチ1502a〜1502cは、制御信号に基づいて接続されているバスのバス幅を切り替える。また、間接的に、あるいは直接接続されたメモリーコントローラー1505bを制御し、画像データの処理に必要なデータをRAM1503から取り出すようにメモリースイッチ1504a〜1504cをスイッチングさせる。   The image data control unit 203 inputs a control signal for processing the image data together with the image data to the bus switches 1502a to 1502c via the data input / output buses 1501a to 1501e. The bus switches 1502a to 1502c switch the bus width of the connected bus based on the control signal. Further, the memory switches 1504a to 1504c are switched so that the memory controller 1505b connected indirectly or directly is controlled to take out data necessary for processing image data from the RAM 1503.

SIMD型画像データ処理部1500は、誤差拡散処理をおこなう場合、画像データ制御部1203(図11参照)を介して画像データを入力する。そして、注目画素が含まれる画素ライン(現画素ライン)よりも前に処理された画素ライン(前画素ライン)に含まれる画素の画素データと所定の閾値との差である誤差データと注目画素の画素データとを加算する。   When performing error diffusion processing, the SIMD type image data processing unit 1500 inputs image data via the image data control unit 1203 (see FIG. 11). Then, error data that is a difference between pixel data included in a pixel line (previous pixel line) processed before the pixel line (current pixel line) including the target pixel (previous pixel line) and a predetermined threshold value and the target pixel Add pixel data.

SIMD型画像データ処理部1500では、SIMD型プロセッサー1506を用い、誤差データとの加算を複数の注目画素について並列的に実行する。このため、SIMD型プロセッサー1506に接続されているRAM1503のいずれかには、SIMD型プロセッサー1506で一括して処理される画素の数に対応する複数の誤差データが保存されている。本実施の形態では、SIMD型プロセッサー1506において1画素ライン分の加算処理を一括しておこなうものとし、RAM1503に1画素ライン分の誤差データを保存するものとした。   The SIMD type image data processing unit 1500 uses the SIMD type processor 1506 to execute addition with error data in parallel for a plurality of target pixels. For this reason, a plurality of error data corresponding to the number of pixels processed in batch by the SIMD processor 1506 is stored in any of the RAMs 1503 connected to the SIMD processor 1506. In this embodiment, the SIMD processor 1506 collectively performs addition processing for one pixel line, and error data for one pixel line is stored in the RAM 1503.

SIMD型プロセッサー1506で一括して処理された1画素ライン分の画像データと誤差データとの加算値は、R20,R21,R23,R22の少なくとも2つから逐次型画像データ処理部1507に一つずつ出力される。また、以上の処理に使用される誤差データは、後述する逐次型画像データ処理部1507によって算出され、SIMD型プロセッサー1506に入力されるものである。   The addition value of the image data and error data for one pixel line collectively processed by the SIMD type processor 1506 is sent to the sequential image data processing unit 1507 from at least two of R20, R21, R23, and R22 one by one. Is output. The error data used in the above processing is calculated by a sequential image data processing unit 1507, which will be described later, and is input to the SIMD type processor 1506.

一方、逐次型画像データ処理部1507a,1507bは、コンピュータプログラムの制御によらず稼動するハードウェアである。なお、図4では、逐次型画像データ処理部1507をSIMD型プロセッサー1506に2個接続するものとしているが、本実施の形態の画像処理部では、このうちの1507bを逐次行なう誤差拡散処理専用に使用するものとし、もう一つの逐次型画像データ処理部1507は、γ変換などのテーブル変換用として用いるように機能特化している。   On the other hand, the sequential image data processing units 1507a and 1507b are hardware that operates regardless of the control of the computer program. In FIG. 4, two sequential image data processing units 1507 are connected to the SIMD type processor 1506. However, the image processing unit of the present embodiment is dedicated to error diffusion processing in which 1507b is sequentially performed. The other sequential image data processing unit 1507 is specially designed to be used for table conversion such as γ conversion.

図3の画像処理部を構成する画像処理プロセッサー1204のハードウェア構成について説明する。図11は、本画像処理プロセッサー1204の内部構成を示すブロック図である。図11のブロック図において、画像処理プロセッサー1204は、外部とのデータ入出力に関し、複数個の入出力ポート1401を備え、それぞれデータの入力および出力を任意に設定することができる。   A hardware configuration of the image processor 1204 constituting the image processing unit in FIG. 3 will be described. FIG. 11 is a block diagram illustrating an internal configuration of the image processor 1204. In the block diagram of FIG. 11, the image processor 1204 has a plurality of input / output ports 1401 for data input / output with the outside, and can arbitrarily set data input and output.

また、入出力ポート1401と接続するように内部にバススイッチ/ローカル・メモリー群1402を備え、使用するメモリ領域、データバスの経路をメモリ制御部1403において制御する。入力されたデータおよび出力のためのデータは、バススイッチ/ローカル・メモリー群1402をバッファー・メモリーとして割り当て、それぞれに格納し、外部とのI/Fを制御される。   Further, a bus switch / local memory group 1402 is provided inside so as to be connected to the input / output port 1401, and the memory control unit 1403 controls the memory area to be used and the path of the data bus. The input data and the data for output are assigned to the bus switch / local memory group 1402 as a buffer memory, stored in each, and the external I / F is controlled.

バススイッチ/ローカル・メモリー群1402に格納された画像データに対してプロセッサー・アレー部1404において各種処理をおこない、出力結果(処理された画像データ)を再度バススイッチ/ローカル・メモリー群1402に格納する。プロセッサー・アレー部1404における処理手順、処理のためのパラメーター等は、プログラムRAM1405およびデータRAM1406との間でやりとりがおこなわれる。   Various processing is performed in the processor array unit 1404 on the image data stored in the bus switch / local memory group 1402, and the output result (processed image data) is stored again in the bus switch / local memory group 1402. . The processing procedure in the processor array unit 1404, parameters for processing, and the like are exchanged between the program RAM 1405 and the data RAM 1406.

プログラムRAM1405、データRAM1406の記録データは、シリアルI/F1408を通じて、プロセス・コントローラー211からホスト・バッファー1407にダウンロードされる。また、プロセス・コントローラー211がデータRAM1406の内容を読み出して、処理の経過を監視する。   The recording data in the program RAM 1405 and the data RAM 1406 is downloaded from the process controller 211 to the host buffer 1407 via the serial I / F 1408. Further, the process controller 211 reads the contents of the data RAM 1406 and monitors the progress of processing.

処理の内容を変えたり、システムで要求される処理形態が変更になる場合は、プロセッサー・アレー部1404が参照するプログラムRAM1405およびデータRAM1406の内容を更新して対応する。以上述べた構成のうち、プロセッサー・アレー部1404が、前述のSIMD型画像データ処理部1500と逐次型画像データ処理部1507とに相当する。   If the processing contents are changed or the processing mode required by the system is changed, the contents of the program RAM 1405 and data RAM 1406 referred to by the processor array unit 1404 are updated. In the configuration described above, the processor array unit 1404 corresponds to the SIMD type image data processing unit 1500 and the sequential type image data processing unit 1507 described above.

図12は、逐次型画像データ処理部1507を説明するためのブロック図である。図示の逐次型画像データ処理部1507bは、誤差データ算出部1801と、誤差データ算出部1801が算出した誤差データから一つを選択するマルチプレクサ1807と、マルチプレクサ1807によって選択された誤差データを加工してSIMD型画像データ処理部1500から入力したデータに加算する誤差データ加算部1808とを備えている。   FIG. 12 is a block diagram for explaining the sequential image data processing unit 1507. The sequential image data processing unit 1507b shown in the figure processes an error data calculation unit 1801, a multiplexer 1807 for selecting one from the error data calculated by the error data calculation unit 1801, and the error data selected by the multiplexer 1807. And an error data adding unit 1808 for adding to the data input from the SIMD type image data processing unit 1500.

また、逐次型画像データ処理部1507bは、誤差データの選択に必要な信号をマルチプレクサ1807に入力するデコーダ1806と、逐次型画像データ処理部1500に対し、あらかじめ設定されている誤差拡散のモード(2値誤差拡散、3値誤差拡散、4値誤差拡散)のうちのいずれによって誤差拡散を実行するか、あるいは誤差拡散処理に使用される演算係数を設定できる誤差拡散処理ハードウェアレジスター群1805を備えている。さらに、逐次型画像データ処理部1507bは、ブルーノイズ信号発生部1809を備え、誤差拡散処理にブルーノイズを使用するか否かをも誤差拡散処理ハードウェアレジスター群1805の設定によって選択可能に構成されている。   Further, the sequential image data processing unit 1507b inputs a signal required for selecting error data to the multiplexer 1807 and an error diffusion mode (2) set in advance for the sequential image data processing unit 1500. An error diffusion processing hardware register group 1805 that can set an operation coefficient used for error diffusion processing, or whether error diffusion is executed by any one of value error diffusion, three-value error diffusion, and four-value error diffusion). Yes. Further, the sequential image data processing unit 1507b includes a blue noise signal generation unit 1809, and is configured to be able to select whether or not to use blue noise for error diffusion processing by setting the error diffusion processing hardware register group 1805. ing.

誤差データ算出部1801は、現画素ラインに含まれる画素の画素データと所定の閾値との差である誤差データを算出する構成である。誤差データ算出手段1801は、3つの量子化基準値保存部1803a〜1803cと、3つのコンパレータ1804a〜1804cと、3つのマルチプレクサ1802a〜1802cのそれぞれに接続したしきい値テーブル群1810a〜1810cを備えている。   The error data calculation unit 1801 is configured to calculate error data that is a difference between pixel data of a pixel included in the current pixel line and a predetermined threshold value. The error data calculation means 1801 includes threshold value table groups 1810a to 1810c connected to three quantization reference value storage units 1803a to 1803c, three comparators 1804a to 1804c, and three multiplexers 1802a to 1802c, respectively. Yes.

しきい値テーブル群1810a〜1810cは、一例としてそれぞれ6つのしきい値テーブルTHxA〜THxF(x=0,1,2)が接続している。これは、誤差拡散処理ハードウェアレジスター群1805の設定によって選択可能であり、本実施例における階調処理では、MagentaおよびCyanの画像データの階調処理に用いる画像プロセッサーと、YellowおよびBlackの画像データを階調処理する画像プロセッサーの2つの画像プロセッサーを使用する。   For example, six threshold value tables THxA to THxF (x = 0, 1, 2) are connected to the threshold value table groups 1810a to 1810c, respectively. This can be selected by setting the error diffusion processing hardware register group 1805. In the gradation processing in this embodiment, an image processor used for gradation processing of Magenta and Cyan image data, and Yellow and Black image data are used. Two image processors are used.

以下は、例としてMagentaおよびCyanの画像データ処理用の画像プロセッサーについて説明する。Magenta用にTHxA〜THxC(x=0,1,2)を、Cyan用にTHxD〜THxF(x=0,1,2)を使用する。Magenta用として用いるTHxA〜THxC(x=0,1,2)は、文字、写真、中間などの画像の特徴量による抽出結果に応じて、それぞれどのしきい値テーブルが選択されるように選択可能としておくことができる。文字部分では主走査もしくは副走査の位置によらない固定しきい値を設定した単純な誤差拡散、写真部分では線数が低いディザしきい値を設定した誤差拡散、中間部分では写真部より高線数のしきい値を設定した誤差拡散を行うことができ、より好ましい画像を形成することができる。TH0A〜TH2Aは、同じ特徴量に判定された画素に対するしきい値である。Cyan用についても同様である。また、YellowおよびBlackの画像データを処理するプロセッサーについては、上の説明のMagentaをYellowに、CyanをBlackに読み替えたものと同様である。   In the following, an image processor for processing image data of Magenta and Cyan will be described as an example. THxA to THxC (x = 0, 1, 2) are used for Magenta, and THxD to THxF (x = 0, 1, 2) are used for Cyan. THxA to THxC (x = 0, 1, 2) used for Magenta can be selected so that each threshold value table can be selected according to the extraction results based on the feature values of images such as text, photos, and intermediates. Can be left as Simple error diffusion with a fixed threshold that does not depend on the main scanning or sub-scanning position in the character part, error diffusion with a dither threshold with a low number of lines in the photograph part, and a higher line than the photograph part in the intermediate part Error diffusion with a set threshold value can be performed, and a more preferable image can be formed. TH0A to TH2A are threshold values for pixels determined to have the same feature amount. The same applies to Cyan. The processor that processes the image data of Yellow and Black is the same as that described above with Magenta replaced with Yellow and Cyan replaced with Black.

本実施の形態では、量子化基準値保存部1803a、コンパレータ1804a、閾値テーブル群1810aが接続したマルチプレクサ1802aが1組となって動作する。また、量子化基準値保存部1803b、コンパレータ1804b、閾値テーブル群1810bが接続したマルチプレクサ1802bが1組となって動作し、量子化基準値保存部1803c、コンパレータ1804c、閾値テーブル群1810cに接続したマルチプレクサ1802cが1組となって動作する。   In this embodiment, the multiplexer 1802a connected to the quantization reference value storage unit 1803a, the comparator 1804a, and the threshold table group 1810a operates as a set. The multiplexer 1802b connected to the quantization reference value storage unit 1803b, the comparator 1804b, and the threshold table group 1810b operates as a set, and the multiplexer connected to the quantization reference value storage unit 1803c, the comparator 1804c, and the threshold table group 1810c. 1802c operates as a set.

逐次型画像データ処理部1507は、画像データと誤差データとの加算値(加算値データ)をSIMD型プロセッサー1506から入力する。この画像データは、今回処理される注目画素の画像データであり、誤差データは、注目画素以前に処理された画素の誤差データである。   The sequential image data processing unit 1507 inputs an addition value (addition value data) between the image data and the error data from the SIMD type processor 1506. This image data is the image data of the target pixel processed this time, and the error data is the error data of the pixel processed before the target pixel.

入力した加算値データは、以前に処理された画素の誤差データに基づいて誤差データ加算部1808が算出した値を加算され、演算誤差低減のために16または32で除算される。さらに、除算された加算値データは、誤差データ算出部1801の3つのコンパレータ1804a〜1804cのすべてに入力する。なお、誤差データ加算部1808が以前に処理された画素の誤差データに基づいて算出した値については、後述する。   The input added value data is added with the value calculated by the error data adding unit 1808 based on the previously processed pixel error data, and is divided by 16 or 32 to reduce the calculation error. Further, the divided addition value data is input to all of the three comparators 1804a to 1804c of the error data calculation unit 1801. Note that the value calculated by the error data adding unit 1808 based on the error data of the pixel previously processed will be described later.

コンパレータ1804a〜1804cは、それぞれ接続された閾値テーブル群に接続したマルチプレクサ1802a〜1802cから閾値を入力する。そして、入力した加算値データから閾値を差し引き、画像データを作成する。また、加算値データからそれぞれの量子化基準値保存部1803a〜1803cに保存されている量子化基準値を差し引いた値を誤差データとしてマルチプレクサ1807に出力する。この結果、マルチプレクサ1807には、合計3つの誤差データが同時に入力することになる。なお、誤差拡散処理にブルーノイズを使用する場合には、ブルーノイズ信号発生部709がブルーノイズデータを比較的高周期でオン、オフしてブルーノイズを発生する。閾値は、コンパレータ1804a〜1804cに入力する以前にブルーノイズから差し引かれる。ブルーノイズを用いた処理により、閾値に適当なばらつきを持たせて画像に独特のテクスチャーが発生することを防ぐことができる。   The comparators 1804a to 1804c input threshold values from the multiplexers 1802a to 1802c connected to the connected threshold value table groups. Then, the threshold value is subtracted from the input addition value data to create image data. Further, a value obtained by subtracting the quantization reference value stored in each of the quantization reference value storage units 1803a to 1803c from the added value data is output to the multiplexer 1807 as error data. As a result, a total of three error data are simultaneously input to the multiplexer 1807. When blue noise is used for error diffusion processing, the blue noise signal generation unit 709 generates blue noise by turning on / off the blue noise data at a relatively high cycle. The threshold is subtracted from the blue noise before entering the comparators 1804a-1804c. By the process using blue noise, it is possible to prevent the occurrence of a unique texture in the image by giving an appropriate variation in the threshold value.

閾値テーブル1802a〜1802cには、それぞれ異なる値の閾値が保存されている。本実施の形態では、閾値テーブル1802a〜1802cのうち、閾値テーブル1802aが最も大きい閾値を保存し、次いで閾値テーブル1802b、閾値テーブル1802cの順序で保存される閾値が小さくなるものとした。また、量子化標準値保存部1804a〜1804cは、接続された閾値テーブル1802a〜1802cに応じて保存する量子化基準値が設定されている。たとえば、画像データが0〜255の256値で表される場合、量子化基準値保存部1803aには255が、また、量子化基準値保存部1803bには170が、量子化基準値保存部1803cには85が保存される。   Different threshold values are stored in the threshold value tables 1802a to 1802c. In this embodiment, the threshold value table 1802a stores the largest threshold value among the threshold value tables 1802a to 1802c, and then the threshold value stored in the order of the threshold value table 1802b and the threshold value table 1802c decreases. In addition, quantization reference values to be stored in the quantization standard value storage units 1804a to 1804c are set according to the connected threshold value tables 1802a to 1802c. For example, when the image data is represented by 256 values from 0 to 255, 255 is stored in the quantization reference value storage unit 1803a, 170 is stored in the quantization reference value storage unit 1803b, and quantization reference value storage unit 1803c. Is stored with 85.

コンパレータ1804a〜1804cは、作成した画像データを論理回路1806に出力する。論理回路1806は、このうちから注目画素の画像データを選択してマルチプレクサ1807に入力する。マルチプレクサ1807は、入力した画像データに応じて3つの誤差データのうちのいずれかを注目画素の誤差データとして選択する。選択された誤差データは、SIMD型プロセッサー1506のPEを介してRAM1503のいずれかに入力する。   The comparators 1804a to 1804c output the created image data to the logic circuit 1806. The logic circuit 1806 selects the image data of the target pixel from these and inputs it to the multiplexer 1807. The multiplexer 1807 selects one of the three error data as the error data of the target pixel according to the input image data. The selected error data is input to one of the RAMs 1503 via the PE of the SIMD type processor 1506.

さらに、論理回路1806が出力した画像データは、マルチプレクサ1807に入力する以前に分岐され、SIMD型プロセッサー1506のPEのいずれかに入力する。本実施の形態では、画像データを上位ビット、下位ビットの2ビットで表されるデータとした。このため、この処理では、コンパレータ1804aは使用されていない。なお、本実施の形態では、以降、注目画素の画像データを画素データと称する。   Further, the image data output from the logic circuit 1806 is branched before being input to the multiplexer 1807 and input to one of the PEs of the SIMD type processor 1506. In the present embodiment, the image data is data represented by 2 bits of upper and lower bits. For this reason, the comparator 1804a is not used in this process. In the present embodiment, the image data of the target pixel is hereinafter referred to as pixel data.

選択された誤差データは、誤差データ加算部1808に入力する。誤差データ加算部1808は、図10に丸付き数字の1,2,3を付して示した画素、つまり注目画素に対して3つ前に処理された画素の誤差データ(図12中に誤差データ3と記す)、2つ前に処理された画素の誤差データ(図12中に誤差データ2と記す)、一つ前に処理された画素の誤差データ(図12中に誤差データ1と記す)を保存している。   The selected error data is input to the error data adding unit 1808. The error data adding unit 1808 is the error data of the pixel indicated by the circled numbers 1, 2, and 3 in FIG. 10, that is, the pixel processed three times before the target pixel (the error data in FIG. Error data of the pixel processed two times before (denoted as error data 2 in FIG. 12), error data of the pixel processed immediately before (denoted as error data 1 in FIG. 12) ).

誤差データ加算部1808は、誤差データ3に演算係数である0または1を乗じる。また、誤差データ2に演算係数である1または2を乗じ、誤差データ1に演算係数である2または4を乗じる。そして、3つの乗算値を足し合わせ、この値(重み付け誤差データ)をSIMD型プロセッサー1506から次に入力した加算値データと足し合わせる。この結果、注目画素に近い位置にある画素ほど注目画素の誤差拡散処理に大きい影響を及ぼすことになり、画素の誤差を適切に拡散し、元画像のイメージに近い画像を形成することができる。   The error data adding unit 1808 multiplies the error data 3 by 0 or 1 that is a calculation coefficient. Further, the error data 2 is multiplied by a calculation coefficient 1 or 2, and the error data 1 is multiplied by a calculation coefficient 2 or 4. Then, the three multiplied values are added together, and this value (weighting error data) is added to the added value data inputted next from the SIMD type processor 1506. As a result, a pixel closer to the target pixel has a larger influence on the error diffusion process of the target pixel, and the error of the pixel can be appropriately diffused to form an image closer to the original image.

以上述べた逐次型画像データ処理部1507における画像データの作成は、一般的にIIR型フィルターシステムと呼ばれる構成を用いておこなわれている。IIR型フィルターシステムで用いられる演算式は、図13に示すように、
ODn=(1−K)×ODn-1+K・IDn …… (1)
(但し、ODn:演算後の画素濃度、ODn-1:一つ前の画素データを用いての演算結果、IDn:現画素データ、K:重み係数)
と表すことができる。
The creation of the image data in the sequential image data processing unit 1507 described above is generally performed using a configuration called an IIR filter system. The arithmetic expression used in the IIR type filter system is as shown in FIG.
ODn = (1-K) * ODn-1 + K.IDn (1)
(However, ODn: pixel density after calculation, ODn-1: calculation result using previous pixel data, IDn: current pixel data, K: weighting factor)
It can be expressed as.

式(1)および図21から明らかなように、演算後の濃度ODnは、一つ前の画素データを用いての演算結果ODn-1と現画素データIDnの値から求められる。一般的にIIR型フィルターシステムは、現画素より以前に処理された画素を用いた演算結果を使用して現画素についての演算をおこなう、いわゆる逐次変換をおこなうための専用の回路である。本実施の形態にかかる画像処理装置の逐次型画像データ処理部507は、図14に図示するような処理(後述)によらず、図13に示したような逐次変換の全般に使用することができる。   As apparent from the equation (1) and FIG. 21, the density ODn after the calculation is obtained from the calculation result ODn-1 using the previous pixel data and the value of the current pixel data IDn. In general, an IIR filter system is a dedicated circuit for performing so-called sequential conversion, which performs an operation on a current pixel using an operation result using a pixel processed before the current pixel. The sequential image data processing unit 507 of the image processing apparatus according to the present embodiment can be used for the entire sequential conversion as shown in FIG. 13 regardless of the processing (described later) as shown in FIG. it can.

次に、図3に示す階調処理部410について図14に基づいて説明する。階調処理部410は、特徴量検出部1701、閾値選択部1702、誤差積算マトリックス1704、誤差バッファ1705からなる。   Next, the gradation processing unit 410 shown in FIG. 3 will be described with reference to FIG. The gradation processing unit 410 includes a feature amount detection unit 1701, a threshold selection unit 1702, an error integration matrix 1704, and an error buffer 1705.

入力した画像データは、特徴量検出部1701で文字寄りの画像信号であるか、文字中であるか、写真寄りの画像信号であるかを判定する。閾値選択部1702では、特徴量検出部1701の抽出結果に基づいて、閾値を選択する。閾値処理部1703では、閾値選択部1702で選択された閾値、閾値に対応した量子化値、画像データと量子化値の差、選択画像データとの誤差を計算し、誤差積算出力マトリクス1704の出力結果から出力値を求める。誤差積算出力マトリクス1704は、誤差バッファ1705から注目画素(図15に示す誤差拡散マトリックスの*の画素)、周囲の画素の誤差を読み出し、所定の係数(図15のa〜lの画素)に基づいて積算する。   The input image data is determined by the feature amount detection unit 1701 as to whether it is an image signal closer to a character, a character, or an image signal closer to a photograph. The threshold selection unit 1702 selects a threshold based on the extraction result of the feature amount detection unit 1701. The threshold value processing unit 1703 calculates the threshold value selected by the threshold value selection unit 1702, the quantized value corresponding to the threshold value, the difference between the image data and the quantized value, and the error between the selected image data, and outputs the error integration output matrix 1704. The output value is obtained from the result. The error integration output matrix 1704 reads out the error of the pixel of interest (* pixel in the error diffusion matrix shown in FIG. 15) and surrounding pixels from the error buffer 1705, and based on a predetermined coefficient (pixels a to l in FIG. 15). To accumulate.

特徴量抽出部1701の構成について図16に基づいて説明する。図16の特徴量抽出部1701は、一次微分フィルター1711、絶対値算出部1712、一次微分結果の最大値選択部1713、一次エッジ判定部1714、高度判定部1715、二次微分フィルター部1716、二次微分フィルターの最大値選択部1717、二次エッジ判定部1718からなる。一次微分フィルター1711は、一次微分フィルター係数(図5(a)〜(d)の4種類)にフィルター処理を行う。   The configuration of the feature quantity extraction unit 1701 will be described with reference to FIG. 16 includes a primary differential filter 1711, an absolute value calculation unit 1712, a primary differential result maximum value selection unit 1713, a primary edge determination unit 1714, an altitude determination unit 1715, a secondary differential filter unit 1716, and a second differential filter unit 1716. A maximum value selection unit 1717 and a secondary edge determination unit 1718 for the secondary differential filter are included. The primary differential filter 1711 performs a filtering process on the primary differential filter coefficients (four types of FIGS. 5A to 5D).

絶対値算出部1712は、一次微分フィルター1711の処理結果の絶対値を得る。一次微分結果の最大値選択部1713は、絶対値算出部1712で絶対値算出された4種類の一次微分フィルター処理結果の最大値を得る。一次エッジ判定部1714では、絶対値算出部1712の結果に1/8倍した値を、3つの量子化閾値により4段階(2ビット)エッジ度に量子化する。高度判定部1715は、入力画像データを高濃度判定閾値により判定する。二次微分フィルター部1716は、4種類の二次微分フィルター係数図10〜図13によりフィルター処理を行う。二次微分フィルターの最大値選択部1717では、二次微分フィルター部1716のフィルター処理結果の最大値の選択を行う。二次エッジ判定部1718は、二次微分フィルターの最大値選択部1717の結果に1/8倍した値を二次エッジ判定閾値に基づいて判定する。   The absolute value calculation unit 1712 obtains the absolute value of the processing result of the primary differential filter 1711. The maximum value selection unit 1713 of the primary differential result obtains the maximum value of the four types of primary differential filter processing results calculated by the absolute value calculation unit 1712. The primary edge determination unit 1714 quantizes the value obtained by multiplying the result of the absolute value calculation unit 1712 by 1/8 into four levels (two bits) of edge degree using three quantization thresholds. The altitude determination unit 1715 determines input image data based on a high density determination threshold. The second-order differential filter unit 1716 performs filter processing according to the four types of second-order differential filter coefficients shown in FIGS. The secondary differential filter maximum value selection unit 1717 selects the maximum value of the filter processing result of the secondary differential filter unit 1716. The secondary edge determination unit 1718 determines a value obtained by multiplying the result of the maximum value selection unit 1717 of the secondary differential filter by 1/8 based on the secondary edge determination threshold.

特徴量抽出部1701の機能を図17に基づいて説明する。ここでは、上記の特徴量抽出の機能を説明する。図17は、(a)〜(e)のグラフからなり、横軸は一次元の画素の位置を表し、縦軸はそれぞれのユニットの出力値の相対値を表す。   The function of the feature quantity extraction unit 1701 will be described with reference to FIG. Here, the function of feature amount extraction will be described. FIG. 17 includes graphs (a) to (e), in which the horizontal axis represents the position of a one-dimensional pixel, and the vertical axis represents the relative value of the output value of each unit.

図17(a)は,特徴量抽出部1701への入力画像データで、ハッチングは高度判定部1715による高濃度閾値による判定領域が真となる領域を表す。   FIG. 17A shows input image data to the feature amount extraction unit 1701, and hatching represents a region where a determination region based on a high density threshold by the altitude determination unit 1715 is true.

図17(b)において、実線は一次微分フィルター1711の出力結果で、波線は一次微分フィルター1711の出力結果のうち負の値の部分を絶対値算出部1712により絶対値化した結果を示す。   In FIG. 17B, the solid line indicates the output result of the primary differential filter 1711, and the wavy line indicates the result of converting the negative value portion of the output result of the primary differential filter 1711 into an absolute value by the absolute value calculation unit 1712.

図17(c)は、一次微分結果の最大値選択部1713の選択結果で一次エッジ判定部1714により量子化する閾値との関係を図示した。ハッチングは一次微分判定閾値1が真となる領域であって、かつ高濃度判定閾値が真となる領域を図示した。なお、図17(b)の結果はすでに最大値を得るフィルターの処理結果としたので、図17(c)の絶対値を取った結果のグラフの形状と変わらない。   FIG. 17C illustrates the relationship with the threshold value quantized by the primary edge determination unit 1714 based on the selection result of the maximum value selection unit 1713 of the primary differentiation result. Hatching is a region where the primary differential determination threshold value 1 is true and the high density determination threshold value is true. Note that the result of FIG. 17B is already the processing result of the filter that obtains the maximum value, and thus the shape of the graph of the result of taking the absolute value of FIG.

図17(d)は、二次微分フィルター部1716による二次微分算出結果をその最大値選択部1717で選択した結果を表す。ハッチングは、二次エッジ判定部1718で行われる二次微分判定閾値による判定が真となる領域を表している。   FIG. 17D shows the result of selecting the second derivative calculation result by the second derivative filter unit 1716 using the maximum value selecting unit 1717. Hatching represents a region in which determination by the secondary differentiation determination threshold performed by the secondary edge determination unit 1718 is true.

図17(e)は、入力画像データで、ハッチングは一次微分判定閾値、高濃度判定領域+二次微分判定閾値による判定領域を表す。   FIG. 17E shows input image data, and hatching represents a determination region based on a primary differential determination threshold value, a high density determination region + secondary differential determination threshold value.

特徴量抽出結果と、誤差拡散の量子化閾値との関係を表4に示す。   Table 4 shows the relationship between the feature amount extraction result and the error diffusion quantization threshold.

Figure 2005260399
Figure 2005260399

すなわち、前述したように、画像データは、プリンターγ変換テーブル(階調変換テーブル)に基づいて画像処理用プリンターγ部409において階調変換され、その変換後の多階調の画像データは、階調処理部410で量子化閾値を用いて量子化される。また、階調処理部410の特徴量算出部1701では、画像が文字寄りであるか、文字中であるか、写真寄りであるか、その特徴量を判定する。閾値選択部1702では、特徴量検出部1701の抽出結果に基づいて量子化閾値を選択する。   That is, as described above, the image data is subjected to gradation conversion in the image processing printer γ unit 409 based on the printer γ conversion table (tone conversion table), and the converted multi-gradation image data is The key processing unit 410 performs quantization using the quantization threshold. Also, the feature amount calculation unit 1701 of the gradation processing unit 410 determines whether the image is close to a character, in a character, or close to a photograph. The threshold selection unit 1702 selects a quantization threshold based on the extraction result of the feature amount detection unit 1701.

表4は、この閾値選択部1702による量子化閾値の選択を説明するものである。すなわち、表4において、縦の項目は画像の種類、横の項目は特徴量の判定結果および選択される量子化閾値の振幅である。閾値選択部1702は、特徴量の判定結果に応じて、周期的に振動する量子化閾値か、画素の位置によらず固定の量子化閾値のいずれかを選択し、周期的に振動する量子化閾値については、その振幅の大きさも選択する。表4では、例1として、振幅が大、小、無しのいずれかを選択する場合、例2として、振幅が大、中、小のいずれかを選択する場合について示している。すなわち、写真画像や地肌などでは、振幅が大きな誤差拡散量子化閾値を選択する。地図原稿などに出現頻度が高い網点上文字では、振幅が小さいか、もしくは振幅が中程度の量子化閾値を選択する。文字画像に対しては、量子化閾値の振幅が無い固定閾値の誤差拡散か、もしくは振幅が小さい誤差拡散を行う。   Table 4 explains the selection of the quantization threshold by the threshold selection unit 1702. That is, in Table 4, the vertical item is the image type, and the horizontal item is the feature amount determination result and the amplitude of the selected quantization threshold. The threshold selection unit 1702 selects either a periodically oscillating quantization threshold or a fixed quantization threshold regardless of the pixel position according to the feature amount determination result, and periodically oscillating quantization. For the threshold value, the magnitude of the amplitude is also selected. Table 4 shows a case where amplitude is selected as large, small, or none as example 1, and a case where amplitude is selected as large, medium, or small as example 2. That is, an error diffusion quantization threshold having a large amplitude is selected for a photographic image or background. For a character on a halftone dot having a high appearance frequency in a map manuscript or the like, a quantization threshold having a small amplitude or a medium amplitude is selected. For character images, error diffusion with a fixed threshold value with no quantization threshold amplitude or error diffusion with a small amplitude value is performed.

すなわち、プリンターγテーブルによる階調変換後の画像データから画像の特徴量を抽出し、この特徴量抽出結果に基づいて誤差拡散処理で使用する量子化閾値を切り替える誤差拡散処理技術においては、ハードウェア構成上の制約から、特徴量の抽出に用いる特徴量抽出閾値が固定であっても、プリンターγテーブルのパラメーターによって、特徴量が抽出される領域が異なり、最終的に階調処理で得られる画像が異なる場合がある。   That is, in the error diffusion processing technology that extracts the image feature amount from the image data after gradation conversion by the printer γ table and switches the quantization threshold used in the error diffusion processing based on the feature amount extraction result, Due to structural limitations, even if the feature value extraction threshold used for feature value extraction is fixed, the area from which the feature value is extracted differs depending on the parameters of the printer γ table, and the image finally obtained by gradation processing May be different.

そこで、プリンターγテーブルのパラメーターにより、特徴量抽出閾値のパラメーターも変更するようにすれば、特徴量抽出の結果が階調変換テーブルの影響を受けにくくすることができる。   Therefore, if the parameter of the feature quantity extraction threshold is also changed by the parameter of the printer γ table, the result of feature quantity extraction can be made less susceptible to the influence of the gradation conversion table.

ここで、振幅が大きな量子化閾値とは、図18〜図23に記載した量子化閾値である。この閾値の例は、600dpiでそれぞれ168線、144線(図22、図23)相当である。   Here, the quantization threshold having a large amplitude is the quantization threshold described in FIGS. Examples of this threshold are 600 dpi and correspond to 168 lines and 144 lines (FIGS. 22 and 23), respectively.

一方、振幅が無い量子化閾値の例は、図24のth2,th3(それぞれ閾値2,3)に示したように、画素の位置に依らず固定した閾値としたものである。振幅(小)とは、図24のth1ように線数も600dpiで300線相当と図18〜図22の168線相当から線数を上げた場合や、図25のth1示すように閾値の振幅幅を小さくした場合を含む。   On the other hand, an example of the quantization threshold value without amplitude is a fixed threshold value regardless of the position of the pixel, as shown in th2 and th3 (threshold values 2 and 3 respectively) in FIG. The amplitude (small) is the threshold amplitude when the number of lines is increased from 300 lines corresponding to 600 dpi as shown by th1 in FIG. 24 and from 168 lines corresponding to FIGS. 18 to 22, or as indicated by th1 in FIG. Includes cases where the width is reduced.

前掲した特徴量抽出に用いる特徴量抽出閾値のパラメーターは、高濃度閾値、一次微分判定閾値1〜3、二次微分判定閾値であり、それぞれを画像処理用プリンターγ409に設定したプリンターγテーブルにより階調変換し、この変換後の値をそれぞれ高濃度判定部1715,一次エッジ判定部1714,二次エッジ判定部1718に設定する。   The parameters of the feature amount extraction threshold used for the feature amount extraction described above are the high density threshold value, the first derivative determination threshold values 1 to 3 and the second derivative determination threshold value, which are set according to the printer γ table set in the image processing printer γ 409. Tone conversion is performed, and the converted values are set in the high density determination unit 1715, the primary edge determination unit 1714, and the secondary edge determination unit 1718, respectively.

すなわち、特徴量抽出閾値のパラメーターをプリンターγテーブルにより階調変換することにより、特徴量の抽出処理においてプリンターγテーブルによりの変更の影響を受けにくくすることができる。   That is, by converting the gradation of the parameter of the feature amount extraction threshold value using the printer γ table, it is possible to make the feature amount extraction process less susceptible to changes due to the printer γ table.

また、特徴量抽出のパラメーターは、1次微分フィルターの抽出閾値、2次微分フィルターの抽出閾値、高濃度閾値のいずれかに、プリンターγテーブルのパラメーターを用いた処理を行うことにより、特徴量の抽出結果から階調変換のパラメーターの影響を低減することが可能となる。   In addition, the feature amount extraction parameter is obtained by performing processing using the parameters of the printer γ table on either the extraction threshold value of the primary differential filter, the extraction threshold value of the secondary differential filter, or the high density threshold value. It is possible to reduce the influence of gradation conversion parameters from the extraction result.

表5は、特徴量抽出閾値のBlackの例で、Black,Cyan,Magenta,Yellowの色毎に最適な値を設定する。基準値に対する設定値を記載した。   Table 5 is an example of Black as the feature amount extraction threshold, and an optimal value is set for each color of Black, Cyan, Magenta, and Yellow. The set value with respect to the reference value is described.

Figure 2005260399
Figure 2005260399

表5中の高濃度閾値については、表3のプリンターγテーブルへの入力値40hに対する出力値は50hであるので、表5の高濃度閾値のプリンターγテーブルによる変換後の設定値50hを設定した。   Regarding the high density threshold value in Table 5, since the output value for the input value 40h to the printer γ table in Table 3 is 50h, the set value 50h after conversion by the printer γ table for the high density threshold value in Table 5 is set. .

Figure 2005260399
Figure 2005260399

一次微分判定閾値1〜3については、一次微分の値であるために、変換前の閾値をプリンターγテーブルの入力値に当てはめて出力値を得ることは必ずしも適切ではない。しかしながら、一次微分判定閾値1,2については、白地上の文字のように、原稿の下地が白(YMCK=(0,0,0,0))で文字が黒(YMCK=(0,0,0,k))などの場合では、一次微分結果が、(k−0)に比例するので、プリンターγテーブルへの入力値E0hに対する出力値D0hを変換後の設定値とした。一方、一次微分判定閾値3については、網点中の文字などのように文字周囲の画素が白地でない場合も含むので、プリンターγテーブルでは変換しない基準値を設定する。プリンターγテーブルによる数値の変換の概念図を図26に示した。グラフの横軸は入力値、縦軸は出力値で、横軸に入力した値をグラフで変換して出力値を決定する。   Since the primary differentiation determination thresholds 1 to 3 are values of the primary differentiation, it is not always appropriate to obtain the output value by applying the threshold before conversion to the input value of the printer γ table. However, with regard to the primary differential determination thresholds 1 and 2, the background of the original is white (YMCK = (0,0,0,0)) and the characters are black (YMCK = (0,0, In the case of 0, k)) or the like, the first-order differential result is proportional to (k-0), so the output value D0h for the input value E0h to the printer γ table is set as the set value after conversion. On the other hand, the primary differentiation determination threshold 3 includes a case where pixels around a character are not white, such as a character in a halftone dot, so a reference value that is not converted in the printer γ table is set. A conceptual diagram of numerical value conversion by the printer γ table is shown in FIG. The horizontal axis of the graph is the input value, the vertical axis is the output value, and the output value is determined by converting the value input on the horizontal axis into a graph.

二次微分判定閾値については、プリンターγテーブルの二次の変化量に関係し、プリンターγテーブルの値の大小から一意には影響を受けないので、プリンターγテーブルによる変換を行わずに設定値とする。   The second-order differential determination threshold is related to the secondary change amount of the printer γ table and is not uniquely affected by the magnitude of the printer γ table value. To do.

上記の処理を、図27のフローチャートに基づいて説明する。まず、閾値を設定する色(表7)ならびに画質モード(表8)に応じてメモリから読み出す(ステップS301)。そして、プリンターγテーブルで変換する閾値かどうかを判定し(ステップS302)、一次微分判定閾値1,2、高濃度閾値の場合には、プリンターγテーブルで変換する閾値なので(ステップS302のY)、プリンターγテーブルで変換し(ステップS303)、一次微分判定閾値1,2、高濃度閾値の変換後の値を閾値判定部に設定する(ステップS304)。一次微分判定閾値3、二次微分判定閾値の場合には、プリンターγテーブルで変換する必要がないので(ステップS302のN)、プリンターγテーブルで変換せずに設定する(ステップS304)。これらの設定をY,M,C,Kの各色について実行し(ステップS305のN)、この各色について終了したときは(ステップS305のY)、エリア処理などで画像の領域毎に複数の画質モードの設定を行う場合では(ステップS306のY)、ステップS301に戻り、使用される画質モードに応じて繰り返す。   The above processing will be described based on the flowchart of FIG. First, it reads out from the memory in accordance with the color (Table 7) for setting the threshold and the image quality mode (Table 8) (step S301). Then, it is determined whether or not the threshold is to be converted by the printer γ table (step S302). In the case of the primary differentiation determination thresholds 1 and 2 and the high density threshold, the threshold is to be converted by the printer γ table (Y in step S302). Conversion is performed using the printer γ table (step S303), and the converted values of the primary differentiation determination thresholds 1 and 2 and the high density threshold are set in the threshold determination unit (step S304). In the case of the primary differential determination threshold value 3 and the secondary differential determination threshold value, since it is not necessary to convert with the printer γ table (N in step S302), it is set without conversion with the printer γ table (step S304). These settings are executed for each of the colors Y, M, C, and K (N in step S305), and when each color is completed (Y in step S305), a plurality of image quality modes are provided for each image area by area processing or the like. Is set (Y in step S306), the process returns to step S301 and is repeated according to the image quality mode to be used.

ステップS304の設定をY,M,C,Kの各色について実行するのは(ステップS305のN)、次の理由による。すなわち、階調処理の前段のプリンターγテーブルや色補正処理により、原稿濃度と階調処理への入力値の関係が異なったり、また、トナーの色味によって出力濃度と階調処理への入力値の関係が異なるので、YMCKに共通のパラメーターでは、画質が必ずしも最適であるとはいえない場合がある。そこで、特徴量抽出のパラメーターを、色毎に設定可能とすれば、使用者にとって好適な画像を得ることができる。   The setting in step S304 is executed for each of the colors Y, M, C, and K (N in step S305) for the following reason. In other words, the relationship between the original density and the input value to the gradation process differs depending on the printer γ table and the color correction process before the gradation process, and the output density and the input value to the gradation process depend on the color of the toner. Therefore, the parameters common to YMCK may not be optimal for the image quality. Therefore, if the parameter for feature amount extraction can be set for each color, an image suitable for the user can be obtained.

また、印刷原稿、銀塩写真原稿、地図原稿、インクジェット原稿など、原稿種に応じた出力画像を得たり、文字モードや写真モードなど使用者にとって好ましい出力画像に得ることを可能としたい。そこで、特徴量抽出のパラメーターを、印刷原稿、銀塩写真原稿、地図原稿、インクジェット原稿など、原稿種に応じた出力画像を得たり、文字モードや写真モードなど使用者にとって好ましい出力画像を得るために、エリア処理などで画像の領域毎に複数の画質モードの設定を行う場合では(ステップS306のY)、ステップS301に戻り、使用される画質モードに応じて繰り返すようにする。   Further, it is desired to obtain an output image corresponding to the type of original such as a printed original, a silver halide photograph original, a map original, and an ink jet original, or to obtain an output image preferable for the user such as a character mode or a photo mode. Therefore, in order to obtain the output image according to the document type, such as a print document, a silver salt photograph document, a map document, and an inkjet document, and to obtain an output image preferable for the user such as a character mode and a photograph mode. In addition, when a plurality of image quality modes are set for each image area by area processing or the like (Y in step S306), the process returns to step S301 and is repeated according to the image quality mode to be used.

Figure 2005260399
Figure 2005260399

Figure 2005260399
Figure 2005260399

図28は、誤差拡散処理ハードウェアレジスター群1805に設定するレジスターを説明するための説明図である。本実施の形態にかかる画像処理装置は、図示したレジスターの設定によって2値誤差拡散で誤差拡散処理をおこなうモード(2値誤差拡散モード)、3値誤差拡散で誤差拡散処理をおこなうモード(3値誤差拡散モード)、4値誤差拡散で誤差拡散処理をおこなうモード(4値誤差拡散モード)のいずれで誤差拡散処理をおこなうか選択することができる。また、誤差データ加算部1808で使用される演算係数を設定することができる。さらに、誤差拡散処理にブルーノイズを使用するか否かを選択することもできる。   FIG. 28 is an explanatory diagram for explaining the registers set in the error diffusion processing hardware register group 1805. The image processing apparatus according to the present embodiment is a mode for performing error diffusion processing by binary error diffusion (binary error diffusion mode) and a mode for performing error diffusion processing by ternary error diffusion (ternary) by setting the illustrated register. It is possible to select which of error diffusion processing and error diffusion processing is performed by quaternary error diffusion (quaternary error diffusion mode). In addition, a calculation coefficient used in the error data adding unit 1808 can be set. Furthermore, it is possible to select whether or not to use blue noise for error diffusion processing.

図28に示した誤差拡散処理ハードウェアレジスター群1805は、量子化基準値保存部1803aの量子化基準値0を設定するレジスター2001、量子化基準値保存部1803bの量子化基準値1を設定するレジスター2002、量子化基準値保存部1803cの量子化基準値2を設定するレジスター2003を備えている。   The error diffusion processing hardware register group 1805 illustrated in FIG. 28 sets a register 2001 that sets a quantization reference value 0 of the quantization reference value storage unit 1803a and a quantization reference value 1 of the quantization reference value storage unit 1803b. A register 2002 and a register 2003 for setting the quantization reference value 2 of the quantization reference value storage unit 1803c are provided.

また、誤差拡散処理ハードウェアレジスター群1805は、閾値テーブル1802cに設定される閾値0を設定するレジスター2004、閾値テーブル1802bに設定される閾値10〜17を設定するレジスター2005、閾値テーブル802aに設定される閾値20〜27を設定するレジスター2006、ブルーノイズ値を設定するレジスター2007、誤差拡散処理ハードウェアコントロールレジスター2008を有している。各レジスターには、それぞれ8ビットが割り当てられていて、レジスター全体は、64ビットのデータ量を持っている。   Further, the error diffusion processing hardware register group 1805 is set in the register 2004 for setting the threshold 0 set in the threshold table 1802c, the register 2005 for setting the thresholds 10-17 set in the threshold table 1802b, and the threshold table 802a. A register 2006 for setting thresholds 20 to 27, a register 2007 for setting a blue noise value, and an error diffusion processing hardware control register 2008. Each register is assigned 8 bits, and the entire register has a data amount of 64 bits.

2値誤差拡散モードは、レジスター2001、レジスター2002、レジスター2003のすべてに同一の値を設定する。そして、レジスター2004、レジスター2005にFFHを設定することによって実現できる。また、3値誤差拡散モードは、レジスター2001、レジスター2002に同一の値を設定し、レジスター2004にFFHを設定する。さらに、2値誤差拡散モード、3値誤差拡散モードでは、レジスター2005、レジスター2006に同一の値を設定するか、異なる値を設定するかによって固定閾値誤差拡散処理と変動閾値誤差拡散処理とを切り替えることができる。   In the binary error diffusion mode, the same value is set in all of the register 2001, the register 2002, and the register 2003. This can be realized by setting FFH in the registers 2004 and 2005. In the ternary error diffusion mode, the same value is set in the registers 2001 and 2002, and FFH is set in the register 2004. Further, in the binary error diffusion mode and the ternary error diffusion mode, the fixed threshold error diffusion process and the variable threshold error diffusion process are switched depending on whether the register 2005 and the register 2006 are set to the same value or different values. be able to.

誤差拡散処理にブルーノイズを用いる場合は、レジスター2007にブルーノイズを使用することを示す値を設定する。そして、レジスター2005にブルーノイズデータのオンオフを示すスイッチングデータを設定する。スイッチングデータが1の場合にはブルーノイズ値を各閾値に加算し、スイッチングデータが0の場合には閾値をそのまま使用する。さらに、誤差データ加算部1808で使用される演算係数は、誤差拡散処理ハードウェアコントロールレジスターの設定値を変更することによって選択できる。   When blue noise is used for error diffusion processing, a value indicating that blue noise is used is set in the register 2007. Then, switching data indicating on / off of the blue noise data is set in the register 2005. When the switching data is 1, the blue noise value is added to each threshold value. When the switching data is 0, the threshold value is used as it is. Further, the calculation coefficient used in the error data adding unit 1808 can be selected by changing the set value of the error diffusion processing hardware control register.

次に、図29のフローチャートを参照して、SIMD型プロセッサー1506で実行される誤差拡散処理について説明する。SIMD型プロセッサー1506は、まず、現画像データが1ライン目かどうかを判断し(ステップS2101)、1ライン目である場合には(ステップS2101のY)、前2ライン分の誤差加算値を初期化する(ステップS2101)。そして、今回の誤差拡散演算する画像データが1SIMD目であるかどうかを判断し(ステップS2103)、1SIMD目(現ラインの先頭部分の画像データ)である場合には(ステップS2103のY)、誤差加算値を初期化する(ステップS2105)。1SIMD目でない場合には(ステップS2103のN)、前のSIMDで誤差拡散演算後の誤差データが、現在演算している画像データと同じ色かどうかを判断し(ステップS2106)、異なる色の場合には(ステップS2106のN)、前SIMDの演算結果を前ラインの違う色として保存し(ステップS2107、図30の処理A2)、ブルーノイズテーブルの参照位置も保存する(ステップS2109)、同じ色の前回誤差拡散演算時のブルーノイズ参照位置を呼び出す(ステップS2110)。同じ色である場合には(ステップS2106のY)、同じ色の前ラインの1SIMDの演算結果として保存する(ステップS2108、図30の処理A1)。同じ色かどうかの判断は、例として、これから誤差拡散演算に使用しようとするのが、Magenta色の版の画像データである場合には、違う色の画像データとは、Cyan版の画像データである場合には、違う色として判断し、Magenta版である場合には、同じ色として判断する。   Next, error diffusion processing executed by the SIMD type processor 1506 will be described with reference to the flowchart of FIG. The SIMD processor 1506 first determines whether or not the current image data is the first line (step S2101). If it is the first line (Y in step S2101), the error addition value for the previous two lines is initialized. (Step S2101). Then, it is determined whether or not the image data to be subjected to the current error diffusion calculation is the first SIMD (step S2103). If it is the first SIMD (image data at the beginning of the current line) (Y in step S2103), an error is determined. The added value is initialized (step S2105). If it is not the first SIMD (N in step S2103), it is determined whether the error data after the error diffusion calculation in the previous SIMD is the same color as the currently calculated image data (step S2106). (N in step S2106), the previous SIMD calculation result is stored as a different color for the previous line (step S2107, process A2 in FIG. 30), and the reference position of the blue noise table is also stored (step S2109), the same color The blue noise reference position in the previous error diffusion calculation is called (step S2110). If they are the same color (Y in step S2106), they are stored as the 1 SIMD calculation result of the previous line of the same color (step S2108, process A1 in FIG. 30). For example, if it is Magenta color image data that is going to be used for error diffusion calculation, the image data of a different color is the Cyan image data. In some cases, it is judged as a different color, and in the case of the Magenta version, it is judged as the same color.

2ライン前の誤差加算値データを前SIMDの1ライン前のデータとして保存し(ステップS2111、図30の処理B)、現SIMDの2ライン前分のデータをメモリから呼び出す(ステップS2112、図30の処理D,E)。現SIMDのデータを現ラインから呼び出した(図30の処理C)後、誤差加算値を演算する(ステップS2113)。その後、逐次処理演算部1507bにより誤差拡散処理の演算を行う(ステップS2114)。   The error added value data two lines before is stored as data one line before the previous SIMD (step S2111, processing B in FIG. 30), and the data for two lines before the current SIMD is called from the memory (step S2112, FIG. 30). Process D, E). After calling the current SIMD data from the current line (process C in FIG. 30), an error addition value is calculated (step S2113). Thereafter, the error diffusion process is calculated by the sequential processing calculation unit 1507b (step S2114).

一方、逐次型画像データ処理部1507は、図31のフローチャートに示すように、ステップS2102においてSIMD型プロセッサー1506が出力した加算値データを入力する(ステップS2201)。そして、入力した加算値データに誤差データ加算部1808で生成された重み付け誤差データを加算する(ステップS2202)。重み付け誤差データが加算された加算値データは、16または32で除算され(ステップS2203)、誤差データ算出部1801に入力する。誤差データ算出部1801は、入力したデータに基づいて誤差データおよび画素データを生成し(ステップS2204)、誤差データをマルチプレクサ1807に入力する。また、画素データを、論理回路1806およびSIMD型プロセッサー1506に入力する。   On the other hand, as shown in the flowchart of FIG. 31, the sequential image data processing unit 1507 inputs the added value data output from the SIMD type processor 1506 in step S2102 (step S2201). Then, the weighted error data generated by the error data adding unit 1808 is added to the input added value data (step S2202). The added value data to which the weighting error data is added is divided by 16 or 32 (step S2203) and input to the error data calculation unit 1801. The error data calculation unit 1801 generates error data and pixel data based on the input data (step S2204), and inputs the error data to the multiplexer 1807. Further, the pixel data is input to the logic circuit 1806 and the SIMD type processor 1506.

マルチプレクサ1807は、論理回路1806から入力した画像データに応じて誤差データを一つ選択する(ステップS2205)。そして、選択した誤差データをSIMD型プロセッサー1506および誤差データ加算部1808に出力する(ステップS2206)。誤差データを入力した誤差データ加算部1808は、誤差データに基づいて重み付け誤差データを算出する(ステップS2207)。逐次型画像データ処理部1507は、入力してくる加算値データに対して逐次的に以上の処理を繰り返し実行する。   The multiplexer 1807 selects one error data according to the image data input from the logic circuit 1806 (step S2205). The selected error data is output to the SIMD type processor 1506 and the error data adding unit 1808 (step S2206). The error data adding unit 1808 that has input the error data calculates weighted error data based on the error data (step S2207). The sequential image data processing unit 1507 repeatedly executes the above processing sequentially for the input addition value data.

本例においては、図12に示す逐次型画像データ処理部507bを有するSIMDプロセッサー1506を2つ使用し、YMCKの画像データに対して、Y(Yellow)の画像データとK(Black)の画像データで1つの逐次型画像データ処理部507bを有するプロセッサー1506を使用し、C画像信号Mの画像データの2組の画像データをもう1つの逐次型画像データ処理部507aを有するSIMDプロセッサー1506を用いて階調処理を行う。そのため、SIMDプロセッサー1506に入力する階調処理前の2つの画像データ(YKもしくはCM)と、SIMDプロセッサー1506から2つの画像データ(YKもしくはCM)を出力する、2入力2出力の画像データを処理する。   In this example, two SIMD processors 1506 having the sequential image data processing unit 507b shown in FIG. 12 are used, and Y (Yellow) image data and K (Black) image data are compared with YMCK image data. The processor 1506 having one sequential image data processing unit 507b is used, and two sets of image data of the image data of the C image signal M are used by using the SIMD processor 1506 having another sequential image data processing unit 507a. Perform gradation processing. Therefore, two image data (YK or CM) before gradation processing input to the SIMD processor 1506 and two image data (YK or CM) output from the SIMD processor 1506 are processed. To do.

誤差拡散処理を行う場合には、入力した2つの画像データに対して、SIMD処理可能な画像データ数毎に、1つ逐次処理演算部を有するSIMDプロセッサー1506を切り替えて処理を行う。   When performing the error diffusion process, the SIMD processor 1506 having one sequential processing operation unit is switched for each of the two pieces of input image data that can be subjected to SIMD processing.

次に、図32に示す画像プロセッサーの状態遷移図に基づいて説明する。図32に示すように、画像プロセッサーは、コマンド→メイン1(Magenta/Yellow画像データの処理)→メイン2(Cyan/Blackの画像データの処理)→コマンド→メイン1…と、処理状態がループしている。   Next, a description will be given based on the state transition diagram of the image processor shown in FIG. As shown in FIG. 32, the processing state of the image processor loops as follows: command → main 1 (processing Magenta / Yellow image data) → main 2 (processing Cyan / Black image data) → command → main 1. ing.

図33のフローチャートに基づいて、2入力2出力時の画像処理プロセッサーの動作を説明する。メイン処理1では、MagentaもしくはYellowの画像データの処理を行い、メイン処理2では、Cyanもしくは、Blackの画像データの処理を行う。   The operation of the image processor at the time of two inputs and two outputs will be described based on the flowchart of FIG. In the main process 1, Magenta or Yellow image data is processed, and in the main process 2, Cyan or Black image data is processed.

SIMDプロセッサー1506に対して、Magenta(Yellow)の入力をデータ入出力用バス1501aを用いて入力し、データ入出力用バス1501cを用いて出力する。同様に、Cyan(Black)の画像データの入力を、データ入出力用バス1501bを用いて入力し、データ入出力用バス1501dを用いて出力する。データ入出力用バス1501cはデバッグ用の出力などに用いる。   An Magenta (Yellow) input is input to the SIMD processor 1506 using the data input / output bus 1501a and output using the data input / output bus 1501c. Similarly, input of Cyan (Black) image data is input using the data input / output bus 1501b and output using the data input / output bus 1501d. The data input / output bus 1501c is used for debugging output.

メイン処理1にて、SIMDプロセッサー1506へのデータ入力が有る場合には(ステップS2301のY)、画像データをメモリ1503への取り込み処理を開始する(ステップS2302)。1ライン取り込みが終了した場合には(ステップS2303のY)、SIMD処理プロセッサー1506が処理できる画像データの単位で階調処理(ここでは誤差拡散処理)を開始する(ステップS2305)。1ライン処理が終了したら(ステップS2305のY)、1ライン出力を開始する(ステップS2306)。ステップS2302,S2306などの画像データのメモリ取り込み、出力開始処理は、各メモリーコントローラー1505a〜1505bへの処理開始コマンドをレジスターに設定し、SIMDプロセッサー1506は次の制御へ移行(状態遷移)する。階調処理(誤差拡散処理)の開始(ステップS2305)は、逐次処理演算部1507bへの開始処理コマンドを誤差拡散処理ハードウェアコントロールレジスター2008の開始コマンドに相当する所定の設定値を書き込むことにより行う。   If there is data input to the SIMD processor 1506 in the main process 1 (Y in step S2301), the process of taking image data into the memory 1503 is started (step S2302). When the capture of one line is completed (Y in step S2303), gradation processing (in this case, error diffusion processing) is started in units of image data that can be processed by the SIMD processing processor 1506 (step S2305). When the one-line processing is completed (Y in step S2305), one-line output is started (step S2306). In the memory data capture and output start processing such as steps S2302 and S2306, processing start commands to the respective memory controllers 1505a to 1505b are set in the registers, and the SIMD processor 1506 shifts to the next control (state transition). The start of gradation processing (error diffusion processing) (step S2305) is performed by writing a predetermined setting value corresponding to the start command of the error diffusion processing hardware control register 2008 as a start processing command to the sequential processing calculation unit 1507b. .

メイン処理2についても同様である(よって、詳細な説明を省略する)。   The same applies to the main processing 2 (thus, detailed description is omitted).

コマンド処理は、SIMDプロセッサー1506に対する、制御用のCPUからのコマンドの受付処理を行う。   In the command processing, command reception processing from the control CPU is performed for the SIMD processor 1506.

図3に示す画像形成用プリンターγ(プロセス・コントロールγ)補正部412は、インターフェース411からの画像信号をプリンターγテーブルで変換し、後述するレーザ変調回路に出力する。   An image forming printer γ (process control γ) correction unit 412 shown in FIG. 3 converts an image signal from the interface 411 with a printer γ table and outputs the converted signal to a laser modulation circuit described later.

図3において、インターフェース411、画像形成用プリンターγ412、プリンター413及びコントローラ417などによりプリンター部452は構成され、スキャナー・IPU部451とは独立しても使用可能である。ホストコンピューター418からの画像信号はプリンターコントローラ419を通してインターフェース411に入力され、画像形成用プリンターγ補正部412により階調変換され、プリンター413により画像形成が行われることにより、プリンターとして使用できる。   In FIG. 3, a printer unit 452 is configured by an interface 411, an image forming printer γ 412, a printer 413, a controller 417, and the like, and can be used independently of the scanner / IPU unit 451. An image signal from the host computer 418 is input to the interface 411 through the printer controller 419, is subjected to gradation conversion by the image forming printer γ correction unit 412, and image formation is performed by the printer 413, so that it can be used as a printer.

以上説明した画像処理装置は、CPU415により制御される。CPU415は、ROM414とRAM416とBUS418で接続されている。また、CPU415はシリアルI/Fを通じて、システムコントローラー417と接続されており、図示しない操作部などからのコマンドが、システムコントローラー417を通じて送信される。送信された画質モード、濃度情報及び領域情報等に基づいて上述したそれぞれの画像処理装置に各種パラメーターが設定される。パターン発生回路421,422は、それぞれスキャナー・IPU部451、プリンター部452で使用する階調パターンを発生させる。   The image processing apparatus described above is controlled by the CPU 415. The CPU 415 is connected to the ROM 414, the RAM 416, and the BUS 418. The CPU 415 is connected to the system controller 417 through a serial I / F, and commands from an operation unit (not shown) are transmitted through the system controller 417. Various parameters are set in each of the image processing apparatuses described above based on the transmitted image quality mode, density information, region information, and the like. The pattern generation circuits 421 and 422 generate gradation patterns used in the scanner / IPU unit 451 and the printer unit 452, respectively.

本発明の一実施の形態である複写機全体の構成図である。1 is a configuration diagram of an entire copying machine according to an embodiment of the present invention. FIG. 複写機の制御系のブロック図である。2 is a block diagram of a control system of a copying machine. FIG. 複写機の画像処理装置の全体構成を示すブロック図である。1 is a block diagram illustrating an overall configuration of an image processing apparatus of a copying machine. 適応型エッジ強調回路の一例を示すブロック図である。It is a block diagram which shows an example of an adaptive type edge emphasis circuit. 一次微分エッジ検出フィルターの説明図である。It is explanatory drawing of a primary differential edge detection filter. 適応型エッジ強調フィルターテーブルの説明図である。It is explanatory drawing of an adaptive type edge emphasis filter table. 色相について説明する説明図である。It is explanatory drawing explaining a hue. SIMD型プロセッサーの構成について説明する説明図である。It is explanatory drawing explaining the structure of a SIMD type | mold processor. SIMD型画像データ処理部と逐次型画像データ処理部の構成を示すブロック図である。It is a block diagram which shows the structure of a SIMD type image data processing part and a sequential type image data processing part. 画素の位置関係について説明する説明図である。It is explanatory drawing explaining the positional relationship of a pixel. 画像処理プロセッサーの内部構成の説明図である。It is explanatory drawing of the internal structure of an image processor. 逐次型画像データ処理部を説明するブロック図である。It is a block diagram explaining a sequential image data processing part. IIRフィルターシステムの構成図である。It is a block diagram of an IIR filter system. 階調処理部の説明図である。It is explanatory drawing of a gradation process part. 誤差拡散マトリックスの説明図である。It is explanatory drawing of an error diffusion matrix. 特徴量抽出部の説明図である。It is explanatory drawing of a feature-value extraction part. 特徴量抽出部の説明図である。It is explanatory drawing of a feature-value extraction part. 量子化閾値の説明図である。It is explanatory drawing of a quantization threshold value. 低画像濃度の例の説明図である。It is explanatory drawing of the example of a low image density. 中画像濃度の例の説明図である。It is explanatory drawing of the example of medium image density. 高画像濃度の例の説明図である。It is explanatory drawing of the example of high image density. 量子化閾値の説明図である。It is explanatory drawing of a quantization threshold value. 量子化閾値の説明図である。It is explanatory drawing of a quantization threshold value. 量子化閾値の説明図である。It is explanatory drawing of a quantization threshold value. 量子化閾値の説明図である。It is explanatory drawing of a quantization threshold value. 特徴量抽出閾値をプリンターγテーブルで変換する処理の概念図である。It is a conceptual diagram of the process which converts a feature-value extraction threshold value with a printer gamma table. 特徴量抽出閾値を変換する処理のフローチャートである。It is a flowchart of the process which converts a feature-value extraction threshold value. 誤差拡散ハードウェアレジスターの説明図である。It is explanatory drawing of an error diffusion hardware register. SIMD型プロセッサーで実行される誤差拡散処理を説明するフローチャートである。It is a flowchart explaining the error diffusion process performed with a SIMD type | mold processor. ラインシフトを説明する説明図である。It is explanatory drawing explaining a line shift. 逐次型画像データ処理部で実行される誤差拡散処理の手順を説明するフローチャートである。It is a flowchart explaining the procedure of the error diffusion process performed by a sequential type image data processing part. 画像プロセッサーの状態遷移図である。It is a state transition diagram of an image processor. 画像プロセッサーのフローチャートである。It is a flowchart of an image processor.

符号の説明Explanation of symbols

409、410 画像処理装置
413 プリンタエンジン
409, 410 Image processing device 413 Printer engine

Claims (6)

所定の階調変換テーブルに基づいて画像データの階調変換を行う手段と、
前記階調変換が行われた多階調の画像データを、所定の量子化閾値を用いた誤差拡散法により量子化する手段と、
前記階調変換後の画像データから特徴量閾値に基づいて画像の特徴量を抽出する手段と、
前記抽出後の特徴量に基づいて、周期的な振動の有無及び振動が有る場合の振幅の大きさのうち少なくとも前者が異なる複数の前記量子化閾値の中から前記誤差拡散法の実行に用いるものを選択する手段と、
前記特徴量の抽出に用いる特徴量抽出閾値を前記階調変換テーブルで処理する手段と、
を備え、
前記処理後の特徴量抽出閾値を前記特徴量の抽出に用いる、
画像処理装置。
Means for performing gradation conversion of image data based on a predetermined gradation conversion table;
Means for quantizing the gradation-converted multi-gradation image data by an error diffusion method using a predetermined quantization threshold;
Means for extracting a feature amount of an image based on a feature amount threshold value from the image data after the gradation conversion;
Based on the feature value after extraction, the use of the error diffusion method from among a plurality of the quantization thresholds of which at least the former is different among the presence or absence of periodic vibration and the magnitude of amplitude when there is vibration Means for selecting
Means for processing a feature amount extraction threshold used for extracting the feature amount in the gradation conversion table;
With
The feature amount extraction threshold after the processing is used for the extraction of the feature amount.
Image processing device.
前記特徴量の抽出と誤差拡散の処理は、逐次処理が可能であるプログラマブルな画像処理プロセッサーで実行する、請求項1に記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the feature amount extraction and error diffusion processing are executed by a programmable image processing processor capable of sequential processing. 前記特徴量抽出閾値のパラメーターは、1次微分フィルターの抽出閾値、高濃度閾値のいずれかを含む、請求項1又は2に記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the feature amount extraction threshold parameter includes one of an extraction threshold value of a first-order differential filter and a high density threshold value. 前記特徴量抽出閾値のパラメーターは、画像を構成する複数の色成分にそれぞれ設定可能である、請求項1〜3のいずれかの一に記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the feature amount extraction threshold parameter can be set for each of a plurality of color components constituting the image. 前記特徴量抽出閾値のパラメーターは、画質モード毎に設定可能である、請求項1〜4のいずれかの一に記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the feature amount extraction threshold parameter can be set for each image quality mode. 媒体上に画像形成を行うプリンタエンジンと、
請求項1〜5のいずれかの一に記載の画像処理装置と、
を備えている画像形成装置。
A printer engine for forming an image on a medium;
An image processing device according to any one of claims 1 to 5,
An image forming apparatus.
JP2004066747A 2004-03-10 2004-03-10 Image processing apparatus and image forming apparatus Pending JP2005260399A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004066747A JP2005260399A (en) 2004-03-10 2004-03-10 Image processing apparatus and image forming apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004066747A JP2005260399A (en) 2004-03-10 2004-03-10 Image processing apparatus and image forming apparatus

Publications (1)

Publication Number Publication Date
JP2005260399A true JP2005260399A (en) 2005-09-22

Family

ID=35085730

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004066747A Pending JP2005260399A (en) 2004-03-10 2004-03-10 Image processing apparatus and image forming apparatus

Country Status (1)

Country Link
JP (1) JP2005260399A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007158844A (en) * 2005-12-06 2007-06-21 Ricoh Co Ltd Image processing device
JP2007318525A (en) * 2006-05-26 2007-12-06 Ricoh Co Ltd Image forming apparatus
JP2008048189A (en) * 2006-08-17 2008-02-28 Sharp Corp Image processing apparatus, image processing method, image forming apparatus, image processing program, and recording medium
US8259357B2 (en) 2007-03-09 2012-09-04 Sharp Kabushiki Kaisha Image processing apparatus, image forming apparatus, image processing method, and computer readable recording medium
US8699792B2 (en) 2010-12-27 2014-04-15 Ricoh Company, Ltd. Error diffusion processing circuit

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007158844A (en) * 2005-12-06 2007-06-21 Ricoh Co Ltd Image processing device
JP2007318525A (en) * 2006-05-26 2007-12-06 Ricoh Co Ltd Image forming apparatus
JP2008048189A (en) * 2006-08-17 2008-02-28 Sharp Corp Image processing apparatus, image processing method, image forming apparatus, image processing program, and recording medium
US8259357B2 (en) 2007-03-09 2012-09-04 Sharp Kabushiki Kaisha Image processing apparatus, image forming apparatus, image processing method, and computer readable recording medium
US8699792B2 (en) 2010-12-27 2014-04-15 Ricoh Company, Ltd. Error diffusion processing circuit

Similar Documents

Publication Publication Date Title
JP4167100B2 (en) Image processing apparatus, image forming apparatus, image processing method, computer program, and recording medium
US7679796B2 (en) Image processing apparatus and image processing method
JP2006050568A (en) Image processing apparatus, program, and image processing method
US7616360B2 (en) Image processing apparatus and method therefor
JP2004287685A (en) Image processing apparatus, image forming apparatus, computer program, and recording medium
JP4115098B2 (en) Image forming apparatus, masking coefficient calculation method, and recording medium recording masking coefficient calculation program
JPH1169157A (en) Image forming device
US8045809B2 (en) Image forming apparatus
JP6179234B2 (en) Image forming apparatus, image forming method, and program
JP2006003816A (en) Image forming apparatus and density correction data generation method used therefor
JP2014085379A (en) Image forming apparatus, image forming method, program, and recording medium
JP2005260399A (en) Image processing apparatus and image forming apparatus
JP3728383B2 (en) Image output system
JP6201281B2 (en) Image forming apparatus, image forming method, program, and recording medium
JP3963260B2 (en) Image processing apparatus and image forming apparatus
JP2007158844A (en) Image processing device
JP2007043306A (en) Image processing apparatus and image processing method
JP4379873B2 (en) Image processing apparatus, storage medium, image reading apparatus, and image forming apparatus
JP2008154131A (en) Image forming apparatus
JP3861109B2 (en) Image forming apparatus
JP3958923B2 (en) Image data processing apparatus, image reading apparatus, and image forming apparatus
JP3550456B2 (en) Image data processing device
JP2006018180A (en) Image forming apparatus and density correction data generation method used therefor
JP2004120021A (en) Image processing device, image reading device, and image forming device
JP2004221915A (en) Image processing method and image processor

Legal Events

Date Code Title Description
RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20051021