JP2006033225A - Image processing apparatus - Google Patents
Image processing apparatus Download PDFInfo
- Publication number
- JP2006033225A JP2006033225A JP2004206922A JP2004206922A JP2006033225A JP 2006033225 A JP2006033225 A JP 2006033225A JP 2004206922 A JP2004206922 A JP 2004206922A JP 2004206922 A JP2004206922 A JP 2004206922A JP 2006033225 A JP2006033225 A JP 2006033225A
- Authority
- JP
- Japan
- Prior art keywords
- value
- image
- fluctuation amount
- threshold
- pixel
- 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.)
- Granted
Links
Images
Landscapes
- Image Processing (AREA)
- Facsimile Image Signal Circuits (AREA)
- Color Image Communication Systems (AREA)
Abstract
Description
本発明は、電子写真原理を用いた画像形成処理を実行するカラープリンタなどの画像形成装置に用いられる画像処理装置に関するものである。 The present invention relates to an image processing apparatus used in an image forming apparatus such as a color printer that executes an image forming process using an electrophotographic principle.
近年、コンピュータやカラープリンタの普及により、オフィスや各家庭で、カラープリンタによって、より多くのカラー画像が印刷される機会が増えてきた。 In recent years, with the spread of computers and color printers, there have been increased opportunities for printing more color images by color printers in offices and homes.
図12はカラープリンタの利用形態を示す図である。カラープリンタ1は、IEEE1284などのインターフェース53、あるいはLAN(ローカルエリアネットワーク)51やインターネット52などのネットワークを介して複数のホストコンピュータ50と接続されている。カラープリンタ1は、ホストコンピュータ50との間で印刷データやプリンタのステータス情報などのデータの送受信を行っている。
FIG. 12 is a diagram showing a usage form of a color printer. The
図13は、カラープリンタ1の構成を示す構成図である。図13において、カラープリンタ1は、ホストコンピュータ50から送れた画像データを解釈し印刷イメージを生成するコントローラ部2と、印字データを電子写真原理を用いて記録媒体上に形成するプリンタエンジン3とを有している。
FIG. 13 is a configuration diagram showing the configuration of the
コントローラ部2は、ホストコンピュータ50との間でデータ送受信を司るインターフェース部4、印刷データの解釈を行うインタプリタ部5、印刷画像イメージをメモリ上に形成するラスタライザ部6、印刷画像イメージを圧縮する圧縮器7、圧縮印刷画像イメージを伸長する伸長器8を有している。
The
一方、プリンタエンジン3は、レーザ照射を制御するレーザ駆動装置9、多角形に鏡面加工されたポリゴンミラー10、レーザによって電子潜像を形成する感光体11、シアン、マゼンタ、イエロー、ブラックの複数の現像器12、各現像器12で形成されたトナー像を転写してシアン(C)、マゼンタ(M)、イエロー(Y)、ブラック(K)の各色のトナー画像を保持する中間転写体16、記録用紙を収めたペーパーカセット17、用紙に転写されたトナー像を用紙に加熱定着させる定着器19を有している。
On the other hand, the
このような構成のカラープリンタ1の処理動作について説明する。
The processing operation of the
印刷要求を行ったホストコンピュータ50から送信された画像データは、コントローラ部2によって処理される。すなわち、その画像データは、インターフェース部4を介してインタプリタ部5に入力される。インタプリタ部5は画像データを解釈して描画データを作成する。ラスタライザ部6は、前記作成された描画データに基づいて、印刷画像イメージを、1ページを複数ライン単位に分割したバンドメモリ(図示せず)上に展開する。
The image data transmitted from the
展開された印刷画像イメージは膨大なサイズとなるため、一旦、圧縮器7によって圧縮され圧縮メモリ(図示せず)に保存される。圧縮メモリに1ページ分の印刷画像イメージの蓄積が完了すると、コントローラ部2は、プリンタエンジン3に対して処理動作を開始させる。そして、伸長器8は、一旦保存された圧縮印刷画像イメージを伸長しながら、プリンタエンジン3へ送る。
Since the developed print image has a huge size, it is temporarily compressed by the
プリンタエンジン3では、レーザ駆動装置9が、コントローラ2から送られてきたデータに基づいてレーザの点滅制御を行いながら、高速回転しているポリゴンミラー10へ向
けてレーザ照射を行う。このポリゴンミラー10からのレーザ反射光は感光体11上へ照射され、これにより感光体11上に潜像が形成される。このときポリゴンミラー10の回転により画像の主走査ラインが形成される。
In the
各感光体11上に形成された潜像は各現像器12によってシアン、マゼンタ、イエロー、ブラックのトナー像として現像される。各感光体11上のトナー像は一旦中間転写体16に転写される。
The latent image formed on each
ところで、各感光体11、各現像器12は、中間転写体16の駆動方向に対し直列的に配置されているため、中間転写体16は1回の回転で1ページのシアン、マゼンタ、イエロー、ブラックのトナーが重なった画像を保持することが出来る。
By the way, since each
記録用紙13は中間転写体16の動きに同期して用紙カセット17から搬送される。中間転写体16に保持されているトナー像は、転写器18によって中間転写体16から記録用紙13上に転写され、その後、定着器19によって加熱されて記録用紙13上に定着される。これにより最終的な出力画像が得られる。
The
図14は、従来の画像処理装置の構成を示す構成図である。なお、図14に示す画像処理装置6Aは、図13に示したカラープリンタ1に設けられたコントローラ部2内のラスタライザ部6に含まれる。
FIG. 14 is a configuration diagram illustrating a configuration of a conventional image processing apparatus. The
画像処理装置6Aは、ホストコンピュータ50から送られてくるRGBカラーからデバイスカラーへの色変換と2値化を行うものであり、C信号処理部101C、M信号処理部101M、Y信号処理部101Y、及びK信号処理部101Kを有している。
The
C信号処理部101CはRGBカラーからシアン(C)への色変換と2値化を行うものであり、また、M信号処理部101M、Y信号処理部101Y、及びK信号処理部101Kも、それぞれマゼンタ(M)、イエロー(Y)及びブラック(K)についてC信号処理部101Cと同様の処理を行う。
The C
C信号処理部101Cは、RGBの色信号(以下、RGB信号という)をシアン(C)の色信号(以下、C信号という)に変換する色変換部20、エンジン出力特性を補正するためのガンマ補正テーブルを記憶したガンマテーブル記憶部21、ガンマ補正テーブルに基づいてガンマ補正を実行するガンマ補正部22、多値画像をハーフトーン化するためのディザ閾値マトリクスをCMYKの色毎に記憶するディザ閾値記憶部23、ディザ閾値マトリクスとの比較を行って画像を2値化するディザ処理部24を有している。
The C
M信号処理部101M、Y信号処理部101Y、及びK信号処理部101Kも、それぞれマゼンタ(M)、イエロー(Y)及びブラック(K)について、C信号処理部101Cと同様の処理を行うものであり、C信号処理部101Cと同様の構成になっている。
The M
次に、このような画像処理装置6Aの動作について説明する。ホストコンピュータ50から送られてくるRGB画像データは、プリンタのデバイスカラーであるCMYKのデータに変換する必要があるので、色変換部20によってCMYKのデータに変換される。ここで、RGB信号、CMYK信号ともに0〜255のレベルを持った256階調データである。
Next, the operation of such an
なお、図14において、256階調データのCMYK信号については、後述する2値のCMYK信号と区別するために、また例えばシアン(C)の色信号であるC信号をC(256)と図示する。一方、2値のCMYK信号については、例えばC信号をC(2)と図
示する。さらには、256階調データのRGB信号については、例えば赤(R)の色信号であるR信号をR(256)と図示する。
In FIG. 14, the CMYK signal of 256 gradation data is shown as C (256), for example, to distinguish it from a binary CMYK signal to be described later, and for example, a C signal which is a cyan (C) color signal. . On the other hand, for a binary CMYK signal, for example, the C signal is illustrated as C (2). Furthermore, for an RGB signal of 256 gradation data, for example, an R signal that is a red (R) color signal is illustrated as R (256).
ところで、RGB信号とCMYK信号との対応関係は非線型性が強いため、代表的な色の対応関係はルックアップテーブルで表される。色変換部20では、このルックアップテーブルを備えており、代表点以外については代表点を内挿して求めることでRGB信号からCMYK信号への変換を行っている。
By the way, since the correspondence between the RGB signal and the CMYK signal is highly non-linear, the typical color correspondence is represented by a lookup table. The
なお、ここではルックアップテーブルを用いてCMYKの4色の値を求めているが、ルックアップテーブルでCMYの3色の値を求めた後、下色除去処理によってCMYKの4色の値を求めることもある。また、ルックアップテーブルを用いず、マスキングマトリクスを用いてCMY値を求める方法もある。 Here, the CMYK four-color values are obtained using a lookup table. However, after the CMY three-color values are obtained using the lookup table, the CMYK four-color values are obtained by undercolor removal processing. Sometimes. There is also a method for obtaining CMY values using a masking matrix without using a lookup table.
色変換部20の出力であるCMYK信号は、さらにガンマ補正部22によってガンマ補正が行われる。
The CMYK signal that is the output of the
図15は従来の画像処理装置に設けられたガンマ補正部によって参照される特性情報を示す図である。 FIG. 15 is a diagram showing characteristic information referred to by a gamma correction unit provided in a conventional image processing apparatus.
入力信号(色変換部20からの出力信号であるCMYK信号)と出力画像の濃度とは、図15(a)のように非線型な関係(出力濃度特性)であり、更に、この非線形な関係はトナーや印刷プロセスに用いられる部材の材質により異なる。 The input signal (CMYK signal that is an output signal from the color converter 20) and the density of the output image have a non-linear relationship (output density characteristics) as shown in FIG. Varies depending on the toner and the material of the member used in the printing process.
このように入力信号と出力画像の濃度とは非線型な関係にあるため、電子写真の原理を用いたプリンタエンジンでは、色変換とは独立してCMYKの出力レベルの調整を行う必要がある。このため、ガンマテーブル記憶部21には、図15(a)に示す出力濃度特性の逆関数になる特性すなわち、図15(b)に示す入力信号とガンマ補正レベルとの関係を示すガンマ補正カーブが、CMYKの各々に対応してガンマ補正テーブルとして予め保存されている。
As described above, since the input signal and the density of the output image are in a non-linear relationship, it is necessary to adjust the output level of CMYK independently of color conversion in a printer engine using the principle of electrophotography. For this reason, the gamma
色変換部20からのCMYK信号を受け取ったガンマ補正部22は、このCMYK信号を、ガンマテーブル記憶部21に記憶されている各ガンマ補正テーブルを参照してガンマ補正することにより、CMYKの出力の直線性を得るようにしている。このようにしてガンマ補正されたCYK信号はディザ処理部24に入力される。
The
次に、ディザ処理部24は、ガンマ補正部22からのYMCK信号と、ディザマトリクス記憶部21に記憶されているディザ閾値マトリクスとに基づいて、CMYKの各プレーン毎に2値化を行う。
Next, the
図16はディザ閾値マトリクスの一例を示す図である。ディザマトリクスは画像の各画素レベルに対する各ディザ閾値をマトリクス状に並べたものである。 FIG. 16 is a diagram illustrating an example of a dither threshold matrix. The dither matrix is an array of dither threshold values for each pixel level of the image.
ディザ処理部24は、CMYKそれぞれ別々にディザ閾値の並びを変えたものを用い、ディザ閾値マトリクスの閾値を超える画素を1、一方、その閾値を下回る画素を0とすることで、CMYKそれぞれの2値データを得る。そして、プリンタエンジン3のレーザ駆動はこの2値データに基づいて行われる。
The
ところで、電子写真では小ドットになるほど安定性が良くないため、ディザ閾値マトリクスは、なるべく複数の画素が隣接して纏まるように考慮されて、ディザ閾値の配置が行われている。このようなディザ閾値マトリクスによる2値化は、ある程度の領域の面積を
用いて階調を表すものであり、その階調再現性は優れている一方、解像性が良くないといった欠点がある。
By the way, since the stability is not so good as the dot becomes smaller in electrophotography, the dither threshold matrix is arranged so that a plurality of pixels are arranged adjacent to each other as much as possible. Such binarization using the dither threshold matrix represents a gradation using a certain area of the area, and has a disadvantage that the gradation reproducibility is excellent but the resolution is not good.
このような欠点を補うために、入力画素が線分エッジ領域かどうかを判定し、エッジ画像領域であると判定した場合には固定閾値によって画像を2値化するという装置が知られている(例えば特許文献1参照)。 In order to compensate for such a defect, an apparatus is known in which it is determined whether or not an input pixel is a line segment edge region, and when it is determined that the input pixel is an edge image region, the image is binarized by a fixed threshold value ( For example, see Patent Document 1).
また、入力画像信号にエッジ強調を施した後に画像を2値化するという装置も知られている(例えば特許文献2参照)。
しかしながら、上記(特許文献1)に開示された装置では、細線検出の精度が高くなければならず、このため、高精度に細線検出を行うためには処理量が多くなるとともに、高精度に細線検出を行うためのシステムが複雑になってしまうという問題点があった。また、固定閾値による2値化であるため、カラーでは色の組合せが限られてしまうなどの欠点があった。 However, in the apparatus disclosed in the above (Patent Document 1), the precision of the fine line detection must be high. For this reason, in order to detect the fine line with high accuracy, the processing amount is increased and the fine line is highly accurate. There was a problem that the system for performing the detection would be complicated. Further, since binarization is performed with a fixed threshold value, there is a drawback that color combinations are limited in color.
また、上記(特許文献2)に開示された装置では、エッジ強調による2値化の処理を行うには比較的簡単な構成により実現可能であるが、画像中のノイズなどを強調してしまうことがあるため、写真画像などにおいては画質劣化となる場合がある。そのため、画像が文字、線画若しくは写真画像であるかを判断する回路を別途に設けて、領域ごとにエッジ強調のレベルを変化させる必要がある。 In addition, the apparatus disclosed in the above (Patent Document 2) can be realized with a relatively simple configuration to perform binarization processing by edge enhancement, but it emphasizes noise in an image. Therefore, image quality may be deteriorated in photographic images. Therefore, it is necessary to separately provide a circuit for determining whether the image is a character, a line drawing, or a photographic image, and to change the edge enhancement level for each region.
そこで、本発明は、中間調の画像のエッジの欠損や細線の破線化を改善することのできる画像処理装置を提供することを目的とする。 SUMMARY An advantage of some aspects of the invention is that it provides an image processing apparatus that can improve edge loss of a halftone image and thin broken lines.
この課題を解決するため、本発明の画像処理装置は、入力されたM値画像信号(Mは整数)に対応するM値画像に対してn×n(nは整数)のウィンドウを設定するウィンドウ設定手段と、前記ウィンドウ設定手段が設定したウィンドウ内でエッジ強度を検出するエッジ強度検出手段と、前記エッジ強度検出手段が検出したエッジ強度に応じてディザ閾値変動量を求めるディザ閾値変動量決定手段と、前記M値画像をN値画像(NはM>Nの関係が成立する整数)に変換するための閾値を予め保持する閾値保持手段と、前記閾値と前記ディザ閾値変動量決定手段が求めたディザ閾値変動量とに基づいて新しい閾値を求め、この新しい閾値と前記M値画像信号とに基づいて前記M値画像をN値化するN値化手段とを有する構成としたものである。 In order to solve this problem, an image processing apparatus according to the present invention sets a window of n × n (n is an integer) for an M value image corresponding to an input M value image signal (M is an integer). Setting means; edge strength detection means for detecting edge strength within the window set by the window setting means; and dither threshold fluctuation amount determining means for obtaining a dither threshold fluctuation amount in accordance with the edge strength detected by the edge strength detection means. And a threshold value holding means for preliminarily holding a threshold value for converting the M-value image into an N-value image (N is an integer satisfying a relationship of M> N), and the threshold value and the dither threshold value variation determining means are obtained. A new threshold value is obtained based on the dither threshold fluctuation amount, and N-value conversion means for converting the M-value image into N-values based on the new threshold value and the M-value image signal is provided.
また、本発明の画像処理装置は、入力されたM値画像信号(Mは整数)に対応するM値画像に対してn×n(nは整数)のウィンドウを設定するウィンドウ設定手段と、前記ウィンドウ設定手段が設定したウィンドウ内でエッジ強度を検出するエッジ強度検出手段と、前記エッジ強度検出手段が検出したエッジ強度に応じて画素値変動量を求める画素値変動量決定手段と、前記M値画像をN値画像(NはM>Nの関係が成立する整数)に変換するための閾値を予め保持する閾値保持手段と、前記M値画像信号と前記画素値変動量決定手段が求めた画素値変動量とに基づいて新しい画素値を求め、この新しい画素値と前記閾値とに基づいて前記M値画像をN値化するN値化手段とを有する構成としたものである。 The image processing apparatus of the present invention includes a window setting unit that sets n × n (n is an integer) window for an M-value image corresponding to an input M-value image signal (M is an integer); Edge intensity detecting means for detecting edge intensity within the window set by the window setting means, pixel value fluctuation amount determining means for obtaining a pixel value fluctuation amount according to the edge intensity detected by the edge intensity detecting means, and the M value Threshold value holding means for preliminarily holding a threshold value for converting an image into an N-value image (N is an integer satisfying the relationship of M> N), and the pixel obtained by the M-value image signal and the pixel value variation determining means A new pixel value is obtained based on the value fluctuation amount, and an N-value conversion unit that converts the M-value image into an N-value based on the new pixel value and the threshold value is provided.
さらに、本発明の画像処理装置は、入力されたM値画像信号(Mは整数)に対応するM
値画像に対してn×n(nは整数)のウィンドウを設定するウィンドウ設定手段と、前記ウィンドウ設定手段が設定したウィンドウ内でエッジ強度及びエッジ方向を検出する検出手段と、前記検出手段が検出したエッジ強度に応じてディザ閾値変動量を求める第1の変動量決定手段と、前記検出手段が検出したエッジ方向の画素に対応するディザ閾値変動量を求める第2の変動量決定手段と、前記M値画像をN値画像(NはM>Nの関係が成立する整数)に変換するための閾値を予め保持する閾値保持手段と、前記閾値と前記第1の変動量決定手段が求めたディザ閾値変動量及び前記第2の変動量決定手段が求めたディザ閾値変動量とに基づいて新しい閾値を求め、この新しい閾値と前記M値画像信号とに基づいて前記M値画像をN値化するN値化手段とを有する構成としたものである。
Furthermore, the image processing apparatus according to the present invention is capable of M corresponding to the input M-value image signal (M is an integer).
Window setting means for setting n × n (n is an integer) window for the value image, detection means for detecting edge strength and edge direction within the window set by the window setting means, and detection means detecting First variation amount determining means for determining a dither threshold variation amount according to the edge strength, second variation amount determining means for determining a dither threshold variation amount corresponding to a pixel in the edge direction detected by the detection means, Threshold holding means for holding in advance a threshold for converting an M-value image into an N-value image (N is an integer that satisfies the relationship M> N), and the dither obtained by the threshold and the first variation determining means A new threshold value is obtained based on the threshold fluctuation amount and the dither threshold fluctuation amount obtained by the second fluctuation amount determining means, and the M-value image is converted into N values based on the new threshold value and the M-value image signal. It is obtained by a structure and a binarizing means.
さらに、本発明の画像処理装置は、入力されたM値画像信号(Mは整数)に対応するM値画像に対してn×n(nは整数)のウィンドウを設定するウィンドウ設定手段と、前記ウィンドウ設定手段が設定したウィンドウ内でエッジ強度及びエッジ方向を検出する検出手段と、前記検出手段が検出したエッジ強度に応じて画素値変動量を求める第1の変動量決定手段と、前記検出手段が検出したエッジ方向の画素に対応する画素値変動量を求める第2の変動量決定手段と、前記M値画像をN値画像(NはM>Nの関係が成立する整数)にするための閾値を予め保持する閾値保持手段と、前記M値画像信号と前記第1の変動量決定手段が求めた画素値変動量及び前記第2の変動量決定手段が求めた画素値変動量とに基づいて新しい画素値を求め、この新しい画素値と前記閾値とに基づいて前記M値画像をN値化するN値化手段とを有する構成としたものである。 Furthermore, the image processing apparatus of the present invention includes a window setting unit that sets n × n (n is an integer) window for an M value image corresponding to an input M value image signal (M is an integer), Detection means for detecting edge strength and edge direction in the window set by the window setting means, first fluctuation amount determination means for obtaining a pixel value fluctuation amount according to the edge strength detected by the detection means, and the detection means Second variation amount determining means for obtaining a pixel value variation amount corresponding to the pixel in the edge direction detected by, and for making the M-value image an N-value image (N is an integer satisfying a relationship of M> N) Based on a threshold value holding means for holding a threshold value in advance, the M value image signal, the pixel value fluctuation amount obtained by the first fluctuation amount determination means, and the pixel value fluctuation amount obtained by the second fluctuation amount determination means. To find a new pixel value Of the M value image based on the new pixel value and the threshold value is obtained by a structure having an N-value conversion means for N-value.
本発明によれば、所定の閾値とディザ閾値変動量とに基づいて新しい閾値を求め、この新しい閾値とM値画像信号とに基づいてM値画像をN値化するようにすれば、中間調の画像のエッジの欠損や細線の破線化を改善することができるという有効な効果が得られる。 According to the present invention, if a new threshold value is obtained based on the predetermined threshold value and the dither threshold fluctuation amount, and the M-value image is converted to N-values based on the new threshold value and the M-value image signal, halftone An effective effect is obtained that it is possible to improve the loss of the edge of the image and the broken line of the thin line.
また、本発明によれば、M値画像信号とエッジ強度に応じた画素値変動量とに基づいて新しい画素値を求め、この新しい画素値と所定の閾値とに基づいてM値画像をN値化するようにすれば、中間調の画像のエッジの欠損や細線の破線化を改善することができるという有効な効果が得られる。 Further, according to the present invention, a new pixel value is obtained based on the M-value image signal and the pixel value fluctuation amount corresponding to the edge strength, and the M-value image is converted into an N value based on the new pixel value and a predetermined threshold value. If this is achieved, an effective effect is obtained that it is possible to improve the loss of the edge of the halftone image and the broken line.
さらに、本発明によれば、所定の閾値とエッジ強度に応じたディザ閾値変動量及びエッジ方向に対応するディザ閾値変動量とに基づいて新しい閾値を求め、この新しい閾値とM値画像信号とに基づいてM値画像をN値化するようにすれば、中間調の画像のエッジの欠損や細線の破線化を改善することができるという有効な効果が得られる。 Further, according to the present invention, a new threshold value is obtained based on the predetermined threshold value, the dither threshold value fluctuation amount corresponding to the edge strength and the dither threshold value fluctuation amount corresponding to the edge direction, and the new threshold value and the M-value image signal are obtained. If an M-value image is converted to an N-value based on this, an effective effect is obtained in that it is possible to improve the loss of the edge of a halftone image and the generation of a broken line.
さらに、本発明によれば、M値画像信号とエッジ強度に応じた画素値変動量及びエッジ方向に対応する画素値変動量とに基づいて新しい画素値を求め、この新しい画素値と所定の閾値とに基づいてM値画像をN値化するようにすれば、中間調の画像のエッジの欠損や細線の破線化を改善することができるという有効な効果が得られる。 Further, according to the present invention, a new pixel value is obtained based on the M-value image signal, the pixel value fluctuation amount corresponding to the edge intensity and the pixel value fluctuation amount corresponding to the edge direction, and the new pixel value and a predetermined threshold value are obtained. If the M-value image is converted into an N-value based on the above, an effective effect that an edge loss of a halftone image and a broken line of a thin line can be improved can be obtained.
本発明の請求項1に記載の発明は、入力されたM値画像信号(Mは整数)に対応するM値画像に対してn×n(nは整数)のウィンドウを設定するウィンドウ設定手段と、ウィンドウ設定手段が設定したウィンドウ内でエッジ強度を検出するエッジ強度検出手段と、エッジ強度検出手段が検出したエッジ強度に応じてディザ閾値変動量を求めるディザ閾値変動量決定手段と、M値画像をN値画像(NはM>Nの関係が成立する整数)に変換するための閾値を予め保持する閾値保持手段と、閾値とディザ閾値変動量決定手段が求めたディザ閾値変動量とに基づいて新しい閾値を求め、この新しい閾値とM値画像信号とに基づいてM値画像をN値化するN値化手段とを有する画像処理装置であり、所定の閾値とディ
ザ閾値変動量とに基づいて新しい閾値を求め、この新しい閾値とM値画像信号とに基づいてM値画像をN値化するようにしているので、中間調の画像のエッジの欠損や細線の破線化を改善することができるという作用を有する。
According to the first aspect of the present invention, there is provided a window setting means for setting an n × n (n is an integer) window for an M value image corresponding to an inputted M value image signal (M is an integer). Edge strength detecting means for detecting edge strength within the window set by the window setting means, dither threshold fluctuation amount determining means for obtaining a dither threshold fluctuation amount according to the edge strength detected by the edge strength detecting means, and an M-value image Based on threshold value holding means for preliminarily holding a threshold value for converting N into an N-value image (N is an integer that satisfies the relationship M> N), and the dither threshold value fluctuation amount obtained by the dither threshold value fluctuation amount determination means A new threshold value, and an N-value converting means for converting the M-value image into an N-value based on the new threshold value and the M-value image signal, and based on a predetermined threshold value and a dither threshold fluctuation amount New Since the threshold value is obtained and the M-value image is converted into an N-value based on the new threshold value and the M-value image signal, it is possible to improve the edge loss of the halftone image and the thin line broken line. Has an effect.
本発明の請求項2に記載の発明は、入力されたM値画像信号(Mは整数)に対応するM値画像に対してn×n(nは整数)のウィンドウを設定するウィンドウ設定手段と、ウィンドウ設定手段が設定したウィンドウ内でエッジ強度を検出するエッジ強度検出手段と、エッジ強度検出手段が検出したエッジ強度に応じて画素値変動量を求める画素値変動量決定手段と、M値画像をN値画像(NはM>Nの関係が成立する整数)に変換するための閾値を予め保持する閾値保持手段と、M値画像信号と画素値変動量決定手段が求めた画素値変動量とに基づいて新しい画素値を求め、この新しい画素値と閾値とに基づいてM値画像をN値化するN値化手段とを有する画像処理装置であり、M値画像信号とエッジ強度に応じた画素値変動量とに基づいて新しい画素値を求め、この新しい画素値と所定の閾値とに基づいてM値画像をN値化するようにしているので、中間調の画像のエッジの欠損や細線の破線化を改善することができるという作用を有する。 According to a second aspect of the present invention, there is provided window setting means for setting an n × n (n is an integer) window for an M value image corresponding to an input M value image signal (M is an integer). Edge strength detection means for detecting edge strength within the window set by the window setting means, pixel value fluctuation amount determination means for obtaining a pixel value fluctuation amount according to the edge strength detected by the edge strength detection means, and an M-value image Threshold value holding means for holding in advance a threshold value for converting an image into an N-value image (N is an integer satisfying the relationship of M> N), and a pixel value fluctuation amount obtained by an M-value image signal and a pixel value fluctuation amount determination means The image processing apparatus includes an N-value converting unit that obtains a new pixel value based on the N-value and converts the M-value image into an N-value based on the new pixel value and the threshold value. Based on the pixel value fluctuation amount Since a new pixel value is obtained and the M-value image is converted into an N-value based on the new pixel value and a predetermined threshold value, it is possible to improve the loss of the edge of the halftone image and the thin line broken line. Has the effect of being able to.
本発明の請求項3に記載の発明は、入力されたM値画像信号(Mは整数)に対応するM値画像に対してn×n(nは整数)のウィンドウを設定するウィンドウ設定手段と、ウィンドウ設定手段が設定したウィンドウ内でエッジ強度及びエッジ方向を検出する検出手段と、検出手段が検出したエッジ強度に応じてディザ閾値変動量を求める第1の変動量決定手段と、検出手段が検出したエッジ方向の画素に対応するディザ閾値変動量を求める第2の変動量決定手段と、M値画像をN値画像(NはM>Nの関係が成立する整数)に変換するための閾値を予め保持する閾値保持手段と、閾値と第1の変動量決定手段が求めたディザ閾値変動量及び第2の変動量決定手段が求めたディザ閾値変動量とに基づいて新しい閾値を求め、この新しい閾値とM値画像信号とに基づいてM値画像をN値化するN値化手段とを有する画像処理装置であり、所定の閾値とエッジ強度に応じたディザ閾値変動量及びエッジ方向に対応するディザ閾値変動量とに基づいて新しい閾値を求め、この新しい閾値とM値画像信号とに基づいてM値画像をN値化するようにしているので、中間調の画像のエッジの欠損や細線の破線化を改善することができるという作用を有する。 According to a third aspect of the present invention, there is provided window setting means for setting an n × n (n is an integer) window for an M value image corresponding to an input M value image signal (M is an integer). Detecting means for detecting edge strength and edge direction in the window set by the window setting means, first fluctuation amount determining means for obtaining a dither threshold fluctuation amount according to the edge intensity detected by the detecting means, and detecting means; A second variation determining means for obtaining a dither threshold variation corresponding to the detected pixel in the edge direction, and a threshold for converting the M-value image into an N-value image (N is an integer satisfying a relationship of M> N). Is obtained in advance based on the threshold value holding means for holding the threshold value, the dither threshold value fluctuation amount obtained by the first fluctuation amount determining means and the dither threshold value fluctuation amount obtained by the second fluctuation amount determining means. New threshold and M An image processing apparatus having an N-value conversion unit that converts an M-value image into an N-value based on an image signal, and a dither threshold fluctuation amount corresponding to a predetermined threshold value and edge strength and a dither threshold fluctuation amount corresponding to an edge direction Based on the above, a new threshold value is obtained, and the M-value image is converted to N-values based on the new threshold value and the M-value image signal. It has the effect of being able to.
本発明の請求項4に記載の発明は、入力されたM値画像信号(Mは整数)に対応するM値画像に対してn×n(nは整数)のウィンドウを設定するウィンドウ設定手段と、ウィンドウ設定手段が設定したウィンドウ内でエッジ強度及びエッジ方向を検出する検出手段と、検出手段が検出したエッジ強度に応じて画素値変動量を求める第1の変動量決定手段と、検出手段が検出したエッジ方向の画素に対応する画素値変動量を求める第2の変動量決定手段と、M値画像をN値画像(NはM>Nの関係が成立する整数)にするための閾値を予め保持する閾値保持手段と、M値画像信号と第1の変動量決定手段が求めた画素値変動量及び第2の変動量決定手段が求めた画素値変動量とに基づいて新しい画素値を求め、この新しい画素値と閾値とに基づいてM値画像をN値化するN値化手段とを有する画像処理装置であり、M値画像信号とエッジ強度に応じた画素値変動量及びエッジ方向に対応する画素値変動量とに基づいて新しい画素値を求め、この新しい画素値と所定の閾値とに基づいてM値画像をN値化するようにしているので、中間調の画像のエッジの欠損や細線の破線化を改善することができるという作用を有する。 According to a fourth aspect of the present invention, there is provided window setting means for setting an n × n (n is an integer) window for an M value image corresponding to an input M value image signal (M is an integer). Detecting means for detecting edge strength and edge direction in the window set by the window setting means, first fluctuation amount determining means for obtaining a pixel value fluctuation amount according to the edge strength detected by the detecting means, and detecting means; A second fluctuation amount determining means for obtaining a pixel value fluctuation amount corresponding to the detected pixel in the edge direction, and a threshold value for making the M-value image an N-value image (N is an integer satisfying a relationship of M> N). A new pixel value is obtained based on the threshold value holding means held in advance, the M-value image signal, the pixel value fluctuation amount obtained by the first fluctuation amount determination means, and the pixel value fluctuation amount obtained by the second fluctuation amount determination means. Based on this new pixel value and threshold. And an N-value converting means for converting the M-value image into an N-value, based on the M-value image signal, the pixel value fluctuation amount corresponding to the edge intensity, and the pixel value fluctuation amount corresponding to the edge direction. Since a new pixel value is obtained and the M-value image is converted into an N-value based on the new pixel value and a predetermined threshold value, it is possible to improve the loss of the edge of the halftone image and the broken line of the thin line. Has the effect of being able to.
以下、本発明を実施するための最良の形態を、図面を参照しつつさらに具体的に説明する。ここで、添付図面において同一の部材には同一の符号を付しており、また、重複した説明は省略されている。なお、ここでの説明は本発明が実施される最良の形態であることから、本発明は当該形態に限定されるものではない。 Hereinafter, the best mode for carrying out the present invention will be described more specifically with reference to the drawings. Here, in the accompanying drawings, the same reference numerals are given to the same members, and duplicate descriptions are omitted. In addition, since description here is the best form by which this invention is implemented, this invention is not limited to the said form.
(実施の形態1)
図1は本発明の実施の形態1である画像処理装置の構成を示す構成図、図2はウィンドウが設定された画像の一例を示す図、図3はエッジ強度とディザ閾値変動量との関係を示す図、図4はシアンプレーンに対するディザ閾値の配列、及びライン画素レベルが2ドット幅の斜線の一例を示す図、図5は図4に示した内容に基づいて再現された線画の様子を示す図、図6は図4に示した内容に対してディザ閾値変動処理を施した後のディザ閾値の配列の一例を示す図、図7は図6に示した内容に基づいて再現された線画の様子を示す図である。
(Embodiment 1)
FIG. 1 is a block diagram showing a configuration of an image processing apparatus according to
図1に示す画像処理装置60は、図13に示した従来のカラープリンタ1に設けられたラスタライザ部6に含まれるものであり、C信号処理部102Cと、M信号処理部102Mと、Y信号処理部102Yと、K信号処理部102Kとを有する信号処理部102を備えている。
An
C信号処理部102C、M信号処理部102M、Y信号処理部102Y、及びK信号処理部102Kは、それぞれシアン(C)、マゼンタ(M)、イエロー(Y)及びブラック(K)の各プレーンのエンジン出力イメージを作成するものである。これら各信号処理部は同様の構成及び動作を有しているため、これ以降の説明においては、シアンプレーンを出力するC信号処理部102Cについて説明する。
The C
C信号処理部102Cは、色変換部20、ガンマテーブル記憶部21、ガンマ補正部22、ディザ閾値記憶部23、2値化処理部25、ウィンドウ設定部26、エッジ強度検出部27、及びディザ閾値変動量決定部28を有している。
The C
色変換部20は、RGB色信号(RGB信号)をシアン(C)の色信号(C信号という)に変換する。RGB信号とCMYK信号との対応関係は非線型性が強いため、色変換部20は代表的な色の対応関係を表したルックアップテーブルを備えている。
The
ガンマテーブル記憶部21は、エンジン出力特性を補正するためのガンマ補正テーブルを記憶している。ガンマ補正部22は、ガンマ補正テーブルに基づいてガンマ補正を実行する。
The gamma
ディザ閾値記憶部(閾値保持手段)23は、入力されるM値画に対応するM値画像例えば256階調の画像信号に対応する256階調画像をN値画像(NはM>Nの関係が成立する整数)例えば2値画像に変換するための閾値(ディザ閾値)を予め保持している。 The dither threshold storage unit (threshold holding means) 23 converts an M-value image corresponding to an input M-value image, for example, a 256-gradation image corresponding to an image signal of 256 gradations into an N-value image (N is a relationship of M> N). For example, a threshold value (dither threshold value) for conversion into a binary image is held in advance.
ウィンドウ設定部(ウィンドウ設定手段)26は、M値画像(Mは整数)例えば256階調画像に対してn×n(nは整数)例えば3×3のウィンドウを設定する。 The window setting unit (window setting means) 26 sets an n × n (n is an integer), for example, 3 × 3 window for an M-value image (M is an integer), for example, a 256 gradation image.
エッジ強度検出部(エッジ強度検出手段)27は、ウィンドウ設定部26によって設定されたウィンドウ内でエッジ強度を検出する。
The edge strength detection unit (edge strength detection means) 27 detects the edge strength within the window set by the
ディザ閾値変動量決定部(ディザ閾値変動量決定手段)28は、エッジ強度検出部27によって検出されたエッジ強度に応じてディザ閾値変動量を決定するものであり、エッジ強度とディザ閾値変動量との関係を表した情報を記憶する記憶部(図示せず)を備えており、この記憶部の記憶内容を参照して、前記検出されたエッジ強度に対応するディザ閾値変動量を求める。
The dither threshold fluctuation determining unit (dither threshold fluctuation determining unit) 28 determines the dither threshold fluctuation according to the edge strength detected by the edge
2値化処理部(N値化手段)25は、ディザ閾値記憶部23に記憶されている閾値(ディザ閾値)と、ディザ閾値変動量決定部28によって決定されたディザ閾値変動量とに基づいて新しい閾値(新しいディザ閾値)求め、この新しいディザ閾値と、ガンマ補正部2
2によってガンマ補正された256階調画像信号とに基づいて256階調画像をN値化(2値化)する。
The binarization processing unit (N-value conversion unit) 25 is based on the threshold value (dither threshold value) stored in the dither threshold
The 256 gradation image is converted to N-value (binarization) based on the 256 gradation image signal that has been gamma-corrected by 2.
次に、画像処理装置60の処理動作について説明する。
Next, the processing operation of the
ホストコンピュータ50から送られてくるRGB画像データ(256階調の画像データ)は、色変換部20によってシアンの色信号(C信号)つまり256階調のC信号に変換される。このとき色変換部20は、代表的な色についてはルックアップテーブルを参照してRGB信号からC信号への変換を行うとともに、代表点以外については代表点を内挿して求めることでRGB信号からC信号への変換を行う。
The RGB image data (256 gradation image data) sent from the
これ以降の説明においては、256階調のC信号と2値のC信号とを区別するために、256階調のC信号はC(256)信号と表記し、一方、2値のC信号はC(2)信号と表記する。また、後述するガンマ補正された256階調のC信号をC’(256)信号と表記する。 In the following description, in order to distinguish between a 256-level C signal and a binary C signal, the 256-level C signal is referred to as a C (256) signal, while the binary C signal is C (2) signal. In addition, a 256-tone C signal subjected to gamma correction, which will be described later, is referred to as a C ′ (256) signal.
なお、図1において、256階調のRGB信号(画像データ)については、それぞれR(256)、G(256)、B(256)と図示し、また256階調のCMYK信号については、例えば256階調のC信号はC(256)と図示し、また後述するガンマ補正された256階調のC信号はC’(256)と図示し、さらに2値のC信号はC(2)と図示する。 In FIG. 1, the RGB signal (image data) with 256 gradations is shown as R (256), G (256), and B (256), respectively. The CMYK signal with 256 gradations is 256, for example. The C signal of gradation is shown as C (256), the C signal of 256 gradation after gamma correction described later is shown as C ′ (256), and the binary C signal is shown as C (2). To do.
さて、色変換部20の出力であるC(256)信号は、ガンマ補正部22及びウィンドウ設定部26に入力される。
The C (256) signal that is the output of the
ガンマ補正部22は、入力されたC(256)信号に対して、ガンマテーブル記憶部21に記憶されているガンマ補正テーブルに基づいてガンマ補正を実行する。すなわち、ガンマ補正部22は、C(256)信号に対する補正値をガンマテーブル記憶部21のガンマ補正テーブルから取得することにより出力の直線性を得る。この結果として、ガンマ補正されたC’(256)信号が得られる。
The
一方、色変換されたC(256)信号が入力されたウィンドウ設定部26では、このC(256)信号(入力画像信号)に対して、着目画素を中心とするn×nのウィンドウを設定する。ここでは、n=3として3×3のウィンドウ設定を行うものとする。
On the other hand, the
図2は3×3のウィンドウが設定された画像の一例を示している。このウィンドウ内の画像は、斜線ハッチで示す現在の着目画素を中心に3×3の画素で構成されている。例えば、着目画素g11を中心に、g00、g01、g02、g10、g12、g20、g21、g22の各画素で構成されている。 FIG. 2 shows an example of an image in which a 3 × 3 window is set. The image in this window is composed of 3 × 3 pixels centering on the current pixel of interest indicated by hatched hatching. For example, the pixel of interest g11 is composed of pixels g00, g01, g02, g10, g12, g20, g21, and g22.
続いて、エッジ強度検出部27は、ウィンドウ設定部26によって設定された3×3のウィンドウのエッジ強度Esを求める。このエッジ強度Esは、周辺画素から着目画素への差の最小値によって示されるものであり、(数1)及び(数2)の式を演算することにより求めることができる。
Subsequently, the edge
但し、min(*)は最小値を求める関数である。 However, min (*) is a function for obtaining the minimum value.
このようにして求められたエッジ強度Esは、ディザ閾値変動量決定手段28に入力される。
The edge strength Es obtained in this way is input to the dither threshold value
ディザ閾値変動量決定手段28では、このエッジ強度Esに対応するディザ閾値変動量Dsを、記憶部(図示せず)に記憶されているエッジ強度Esとディザ閾値変動量Dsとの関係を表す情報から取得することにより、入力されたエッジ強度Esをディザ閾値変動量Dsに変換する。このようにして変換されたディザ閾値変動量Dsは2値化処理部25に渡される。
The dither threshold fluctuation amount determining means 28 uses the dither threshold fluctuation amount Ds corresponding to the edge strength Es as information indicating the relationship between the edge strength Es and the dither threshold fluctuation amount Ds stored in the storage unit (not shown). To convert the input edge strength Es into a dither threshold fluctuation amount Ds. The dither threshold fluctuation amount Ds thus converted is passed to the
ここで、エッジ強度Esとディザ閾値変動量Dsとの関係は、図3に示すようなテーブルとして表すことが出来る。図3に示すテーブルは、エッジ強度Esが小さいときにはディザ閾値変動量Dsはより小さく又はディザ閾値変動量Dsが0となるように、また、エッジ強度Esが強くなるに従ってディザ閾値変動量Dsはより大きくなるように設定されている。 Here, the relationship between the edge strength Es and the dither threshold fluctuation amount Ds can be expressed as a table as shown in FIG. The table shown in FIG. 3 shows that when the edge strength Es is small, the dither threshold fluctuation amount Ds is smaller or the dither threshold fluctuation amount Ds becomes 0, and the dither threshold fluctuation amount Ds becomes larger as the edge strength Es becomes stronger. It is set to be large.
このようなテーブルは、0〜255の範囲にあるエッジ強度Esを0.0〜1.0の値のディザ閾値変動量Dsに変換するために用いられるものであり、ディザ閾値変動量決定部28の記憶部(図示せず)に記憶されている。 Such a table is used for converting the edge strength Es in the range of 0 to 255 into the dither threshold fluctuation amount Ds having a value of 0.0 to 1.0. Is stored in a storage unit (not shown).
ディザ閾値変動量Dsを渡された2値化処理部25は、まずディザ閾値記憶部23の記憶内容からディザ閾値Tを取得する。このディザ閾値Tは着目画素の位置に対応する位置に配列されている値を取得する。このディザ閾値Tに対して、前記ディザ閾値変動量Dsを用いてディザ閾値を変動させる。
The
具体的には、変動後のディザ閾値をT’とした場合、このディザ閾値T’は(数3)の式を演算することにより求めることができる。 Specifically, when the dither threshold value after the change is T ′, the dither threshold value T ′ can be obtained by calculating the equation (Equation 3).
この(数3)の式からも分かるように、ディザ閾値変動量Dsの値に応じて変動するディザ閾値T’は、通常のディザ閾値Tよりも小さくなる。 As can be seen from the equation (Equation 3), the dither threshold T ′ that varies according to the value of the dither threshold variation Ds is smaller than the normal dither threshold T.
ところで、2値化処理部25は、ガンマ補正後のC’(256)信号に基づく画素レベルと変動後のディザ閾値T’とを比較し、この比較した結果、C’(256)信号に基づく画素レベル≧ディザ閾値T’の関係が成立する場合にはONとし、一方、C’(256)信号に基づく画素レベル<ディザ閾値T’の関係が成立する場合はOFFとする2値化出力を得る。
By the way, the
このようにして2値化が行われた場合、エッジ強度Esがより強い部分は、ディザ閾値変動量Dsの値が0.0〜1.0の範囲内で大きくなるので(図3参照)、これに伴いディザ閾値T’が小さくなるため(数3参照)、画像が現れ易くなる。 When binarization is performed in this way, the portion where the edge strength Es is stronger becomes larger within the range of the dither threshold fluctuation amount Ds between 0.0 and 1.0 (see FIG. 3). Along with this, the dither threshold T ′ becomes smaller (see Equation 3), so that the image is likely to appear.
図4はシアンプレーンに対するディザ閾値の配列、及びライン画素レベル(シアン単色
のレベル)が60である2ドット幅の斜線の一例を示している。図4において、各画素に対応する各セルの数字はディザ閾値を示し、また太線で囲った画素が2ドット幅ラインを構成する画素を示している。
FIG. 4 shows an example of an array of dither thresholds for a cyan plane and a two-dot wide diagonal line with a line pixel level (cyan monochromatic level) of 60. In FIG. 4, the number of each cell corresponding to each pixel indicates a dither threshold, and the pixels surrounded by a thick line indicate the pixels constituting the 2-dot width line.
ディザ閾値Tをそのまま適応して2値化した場合には、図5に示すような線画が再現されるため、線が離散したドットで表現されてしまい、破線となって見える。 When the dither threshold T is applied as it is and binarized, a line image as shown in FIG. 5 is reproduced, so that the line is represented by discrete dots and appears as a broken line.
ディザ閾値変動処理を行った後のディザ閾値T’を並べた様子を図6に示す。この図6から分かるように、線の存在する部分(太線で囲った画素の部分)は、エッジ強度Esが強く現われるため、上述したようにディザ閾値変動量Dsの値が大きくなり、その結果として、その部分のみのディザ閾値のレベルが下がっている。 FIG. 6 shows a state in which the dither threshold values T ′ after the dither threshold value variation processing are arranged. As can be seen from FIG. 6, since the edge strength Es appears strongly in the portion where the line exists (the pixel portion surrounded by the thick line), the value of the dither threshold fluctuation amount Ds increases as described above, and as a result, The dither threshold level of only that portion is lowered.
なお、この実施の形態では、新しいディザ閾値T’とガンマ補正後のC’(256)信号に基づく画素レベル(256階調画像の画素値)とを比較し、この比較した結果を基に2値化するようにしているが、本発明はこれに限定されることなく、次のようにしても良い。 In this embodiment, the new dither threshold T ′ is compared with the pixel level (pixel value of the 256 gradation image) based on the C ′ (256) signal after gamma correction, and 2 based on the comparison result. However, the present invention is not limited to this, and may be as follows.
すなわち、着目画素についての、検出されたエッジ強度に応じて画素値変動量を求めるとともに、この画素値変動量と着目画素の画素値とに基づいて新たな画素値を求め、さらに、この新たな画素値と所定のディザ閾値とを比較し、この比較した結果を基に2値化するようにしても良い。 That is, the pixel value fluctuation amount is obtained according to the detected edge intensity for the target pixel, and a new pixel value is obtained based on the pixel value fluctuation amount and the pixel value of the target pixel. The pixel value may be compared with a predetermined dither threshold value and binarized based on the comparison result.
この場合、図1において、ディザ閾値変動量決定部28は、エッジ強度検出部(エッジ強度検出手段)27が検出したエッジ強度Esに応じて画素値変動量Dsを求める画素値変動量決定手段の機能を有するものとする。
In this case, in FIG. 1, the dither threshold value fluctuation
また、2値化処理部25は、ガンマ補正された後の256階調画像信号(M値画像信号)と画素値変動量決定手段(ディザ閾値変動量決定部28)が決定した画素値変動量Dsとに基づいて新しい画素値を求め、この新しい画素値とディザ閾値記憶部23の記憶内容から取得したディザ閾値Tとに基づいて256階調画像を2値化(N値化)する。これにより、中間調の画像のエッジの欠損や細線の破線化を改善することができる。
In addition, the
また、この実施の形態では、1画素に対して1つのディザ閾値を変動させて2値化するようにしたが、本発明はこれに限定されることなく、1つの画素に対して複数のディザ閾値を持たせ、各ディザ閾値をそれぞれ変動させてn個の階調値を持たせるn値化とするようにしても良い。 Further, in this embodiment, one dither threshold is changed for one pixel and binarized, but the present invention is not limited to this, and a plurality of dithers for one pixel. A threshold value may be provided, and each dither threshold value may be varied to obtain an n-value value having n gradation values.
また、この実施の形態において、画像処理装置は専用のハードウェアを用いて実現することが出来るが、一般的なCPU(中央演算処理装置)とROMやRAMなどの記憶媒体とにより構成して、上記画像処理装置と同じ処理を実現することも可能である。 In this embodiment, the image processing apparatus can be realized by using dedicated hardware. However, the image processing apparatus is configured by a general CPU (central processing unit) and a storage medium such as a ROM or a RAM. It is also possible to realize the same processing as that of the image processing apparatus.
この場合、色信号処理部の機能を実現し、当該処理の処理手順を示すプログラムを例えばROMに格納しておき、CPUが、このプログラムをこのROMから主記憶装置(RAM)へローディングして実行するようにする。 In this case, the function of the color signal processing unit is realized, a program indicating the processing procedure of the processing is stored in, for example, a ROM, and the CPU loads the program from the ROM to the main storage device (RAM) and executes it. To do.
さらに、この実施の形態では、プリンタエンジンは電子写真を用いたカラープリンタについて説明しているが、プリンタエンジンは必ずしも電子写真を用いたものでなくても構わない。 Furthermore, in this embodiment, the printer engine is described as a color printer using electrophotography, but the printer engine does not necessarily have to use electrophotography.
以上説明したように、本実施の形態の画像処理装置によれば、ディザ閾値(所定の閾値
)Tとディザ閾値変動量Dsとに基づいて新しいディザ閾値(新しい閾値)T’を求め、この新しいディザ閾値T’とガンマ補正された256階調(256値)画像信号(256階調YMCK信号)とに基づいて、当該256階調画像を2値(N値)化するようにしたので、中間調の画像のエッジの欠損や細線の破線化を改善することができる。
As described above, according to the image processing apparatus of the present embodiment, a new dither threshold (new threshold) T ′ is obtained based on the dither threshold (predetermined threshold) T and the dither threshold fluctuation amount Ds, and this new Based on the dither threshold T ′ and the gamma-corrected 256 gradation (256 values) image signal (256 gradation YMCK signal), the 256 gradation image is binarized (N value). It is possible to improve the loss of the edge of the tone image and the broken line.
(実施の形態2)
図8は本発明の実施の形態2である画像処理装置の構成を示す構成図、図9はエッジ強度と変動調整量との関係を示す図、図10は変動調整量を説明する図、図11はエッジ強度とカレント変動量との関係を示す図である。
(Embodiment 2)
8 is a block diagram showing the configuration of the image processing apparatus according to the second embodiment of the present invention, FIG. 9 is a diagram showing the relationship between the edge strength and the fluctuation adjustment amount, and FIG. 10 is a diagram for explaining the fluctuation adjustment amount. 11 is a diagram showing the relationship between the edge strength and the current fluctuation amount.
この実施の形態の画像処理装置は、実施の形態1の画像処理装置とは、基本的には同様の機能を有するものの、ディザ閾値変動量を用いてディザ閾値を変動させる処理が相違している。 The image processing apparatus according to this embodiment has basically the same function as the image processing apparatus according to the first embodiment, but the process for changing the dither threshold using the dither threshold fluctuation amount is different. .
この実施の形態においても、256階調のC信号と2値のC信号とを区別するために、256階調のC信号はC(256)信号と表記し、一方、2値のC信号はC(2)信号と表記する。また、後述するガンマ補正された256階調のC信号をC’(256)信号と表記する。 Also in this embodiment, in order to distinguish between the 256-level C signal and the binary C signal, the 256-level C signal is expressed as a C (256) signal, while the binary C signal is C (2) signal. In addition, a 256-tone C signal subjected to gamma correction, which will be described later, is referred to as a C ′ (256) signal.
また、図8において、256階調のRGB信号(画像データ)については、それぞれR(256)、G(256)、B(256)と図示し、また、CMYKの各信号について、例えば256階調のC信号はC(256)と図示し、また後述するガンマ補正された256階調のC信号をC’(256)と表記し、さらに2値のC信号はC(2)と図示する。 In FIG. 8, RGB signals (image data) with 256 gradations are respectively shown as R (256), G (256), and B (256), and for each CMYK signal, for example, 256 gradations. The C signal of C is shown as C (256), and a C signal of 256 gradations, which will be described later, is expressed as C ′ (256), and the binary C signal is shown as C (2).
図8に示す画像処理装置600は、図13に示した従来のカラープリンタ1に設けられたラスタライザ部6に含まれるものであり、色信号処理部103と閾値変動量決定部104とを有している。
An
閾値変動量決定部104は、明度変換部30、ウィンドウ設定部31、エッジ強度検出部32、エッジ方向検出部33、変動調整量決定部34、及びカレント変動量決定部35を有している。
The threshold fluctuation
明度変換部30は、RGB入力信号から明度を求める。
The
ウィンドウ設定部(ウィンドウ設定手段)31は、入力されたM値画像信号(Mは整数)に対応するM値画像に対してn×n(nは整数)例えば3×3のウィンドウを設定する。 The window setting unit (window setting means) 31 sets a window of n × n (n is an integer), for example, 3 × 3, for the M-value image corresponding to the input M-value image signal (M is an integer).
エッジ強度検出部(検出手段)32は、ウィンドウ設定部31によって設定されたウィンドウ内でエッジ強度を検出する。
The edge strength detection unit (detection means) 32 detects the edge strength in the window set by the
エッジ方向検出部(検出手段)33は、ウィンドウ設定部31によって設定されたウィンドウ内でエッジ方向を検出する。
The edge direction detection unit (detection means) 33 detects the edge direction in the window set by the
変動調整量決定部(第2の変動量決定手段)34は、エッジ強度検出部32によって求められたエッジ強度及びエッジ方向検出部33によって求められたエッジ方向に基づいて、当該エッジ方向の画素に対応するディザ閾値変動量(後述する変動調整量)を求める。また、変動調整量決定部34はエッジ強度と変動調整量との関係を表した情報(変動調整量変換テーブル)を記憶する記憶部(図示せず)を備えており、このテーブルを参照して、エッジ方向の画素に対する変動調整量を求めるようにしている。
The fluctuation adjustment amount determination unit (second variation amount determination unit) 34 applies the pixel in the edge direction based on the edge strength obtained by the edge
カレント変動量決定部(第1の変動量決定手段)35は、エッジ強度検出部32によって求められたエッジ強度に応じてディザ閾値変動量(後述するカレント変動量)を求める。また、カレント変動量決定部35は、エッジ強度とカレント変動量との関係を表した情報を記憶する記憶部(図示せず)を備えており、この記憶部の記憶内容を参照して、前記エッジ強度に対応するカレント変動量を求めるようにしている。
The current variation determining unit (first variation determining unit) 35 calculates a dither threshold variation (a current variation described later) according to the edge strength obtained by the
一方、色信号処理部103は、C信号処理部103Cと、M信号処理部103Mと、Y信号処理部103Yと、K信号処理部102Kとを有する信号処理部103を有しており、それぞれシアン(C)、マゼンタ(M)、イエロー(Y)及びブラック(K)の各プレーンのエンジン出力イメージを作成するものである。これら各信号処理部は同様の構成及び動作を有しているため、以下の説明においては、シアンプレーンを出力するC信号処理部102Cについて説明する。
On the other hand, the color
C信号処理部103Cは、色変換部20と、ガンマテーブル記憶部21と、ガンマ補正部22と、ディザ閾値記憶部23と、2値化処理部36とを有している。なお、これら各構成要素のうち、2値化処理部36を除く他の各構成要素は、それぞれ図1に示したC信号処理部102Cの各構成要素20,21,22,23と同様の機能を果たすものなので、ここでは、その説明を省略する。
The C
2値化処理部(N値化手段)36は、ディザ閾値記憶部23に記憶されている閾値(ディザ閾値)と、カレント変動量決定部35によって求められたディザ閾値変動量、及び変動調整量決定部34によって求められたディザ閾値変動量とに基づいて、新しい閾値(新しいディザ閾値)求めるとともに、この新しいディザ閾値と、ガンマ補正部22によってガンマ補正された256階調画像信号とに基づいて、当該256階調画像をN値化(2値化)する。
The binarization processing unit (N-value conversion unit) 36 includes a threshold value (dither threshold value) stored in the dither threshold
次に、画像処理装置600の処理動作について説明する。
Next, the processing operation of the
明度変換部30は、RGB入力信号を基に、Y=0.3R+0.6G+0.1Bの式を演算することにより明度信号Yを求め、この明度信号Yをウィンドウ設定部31に渡す。
The
次に、ウィンドウ設定部31は、明度信号Yに対して、着目画素を中心とするn×nのウィンドウを設定する。ここでは、n=3として3×3のウィンドウ設定を行うものとする(図2参照)。ウィンドウ設定部31によってウィンドウ設定されたウィンドウ(明度信号Yに対するウィンドウ)は、エッジ強調検出部32及びエッジ方向検出部33に入力される。
Next, the
続いて、エッジ強度検出部32は、明度信号Yに対してウィンドウ設定された3×3のウィンドウ(図2参照)のエッジ強度Esを求める。このエッジ強度Esは、周辺画素から着目画素への差の最大値によって求められる。この実施の形態では、明度に対するエッジ強度Esの検出となるため、このエッジ強度Esは、(数4)及び(数5)の式を演算することにより求めることができる。
Subsequently, the edge
ただし、Max(*)は最大値を求める関数である。 However, Max (*) is a function for obtaining the maximum value.
このようにして求められエッジ強度Esは、変動調整量決定部34及びカレント変動量決定部35に入力される。
The edge strength Es obtained in this way is input to the fluctuation adjustment
エッジ方向検出部33は、明度信号Yに対してウィンドウ設定された3×3のウィンドウ内の画素が構成するエッジの方向を検出する。
The edge
エッジ方向Edは、水平(Edh)、垂直(Edv)、右上がり斜め(Edr)、左上がり斜め(Edl)の4方向の抽出を行うことにより求められ、エッジ強度検出部32によってエッジ強度検出が行われた際(数4の式を演算して求められた結果)のgMaxを与える画素の位置に対し垂直な方向として求められる。
The edge direction Ed is obtained by performing extraction in four directions of horizontal (Edh), vertical (Edv), right-up diagonal (Edr), and left-up diagonal (Edl), and the edge
例えば、図2に示した例において、着目画素g11に対してgMaxを与える画素が右下の画素g22である場合には、エッジ方向Edはこの画素方向に対し直角となる右上がり斜め(Edr)となり、また着目画素g11に対してgMaxを与える画素が右横のg12である場合にはエッジ方向Edは垂直(Edv)となる。 For example, in the example shown in FIG. 2, when the pixel that gives gMax to the pixel of interest g11 is the lower right pixel g22, the edge direction Ed is a right-upward diagonal (Edr) that is perpendicular to the pixel direction. When the pixel giving gMax to the pixel of interest g11 is g12 on the right side, the edge direction Ed is vertical (Edv).
エッジ方向検出部33によって求められたエッジ方向Edは変動調整量決定部34に入力される。
The edge direction Ed obtained by the edge
変動調整量決定部34は、エッジ強度Esから変動調整量Dadjを求めるとともに、既にエッジ強調検出部32から受け取ったエッジ方向Edに対して一時保存していく。
The variation adjustment
エッジ強度Esと変動調整量(ディザ閾値変動量)Dadjとの関係を表す特性(変動調整量変換テーブルをグラフ化したもの)を図9に示す。この図9に示すような特性情報は変換調整量決定部34の記憶部(図示せず)に記憶されている。
FIG. 9 shows characteristics (a graph of the fluctuation adjustment amount conversion table) representing the relationship between the edge strength Es and the fluctuation adjustment amount (dither threshold fluctuation amount) Dadj. The characteristic information as shown in FIG. 9 is stored in a storage unit (not shown) of the conversion adjustment
この図9から分かるように、エッジ強度Esが小さいときには変動調整量Dadjはより小さく又は変動調整量Dadjが0となるように、また、エッジ強度Esが強くなるに従って変動調整量Dadjはより大きくなるように設定されている。このようなテーブルは、0〜255の範囲にあるエッジ強調Esを0.0〜1.0の変動調整量Dadjに変換するために用いられる。 As can be seen from FIG. 9, when the edge strength Es is small, the variation adjustment amount Dadj is smaller or the variation adjustment amount Dadj becomes 0, and the variation adjustment amount Dadj becomes larger as the edge strength Es becomes stronger. Is set to Such a table is used for converting the edge enhancement Es in the range of 0 to 255 into the fluctuation adjustment amount Dadj of 0.0 to 1.0.
変動調整量決定部34は、変動調整量Dadjとして、エッジ方向が水平(Edh)の場合には着目画素の右側の方向に対して、垂直(Edv)の場合には下側の方向に対して、右上がり斜め(Edr)の場合には左下方向に対して、さらに左上がり斜め(Edl)の場合には右下方向に対して、それぞれ加算保存を行うようにする。
The fluctuation adjustment
ここで、変動調整量決定部34による変動調整量Dadjの求め方について、図10を参照して具体的に説明する。
Here, a method of obtaining the fluctuation adjustment amount Dadj by the fluctuation adjustment
まず、上述したように、ウィンドウ設定部31によって、図10(a)に示すように、画素Aを着目画素として太線で囲む3×3のウィンドウを設定する。エッジ強度検出部32によって前記ウィンドウ内でエッジ強度を検出し、エッジ方向検出部33によって前記ウィンドウ内でエッジ方向を検出する。
First, as described above, the
変動調整量決定部34は、前記エッジ強度及び前記エッジ方向に基づいてエッジ方向の
画素に対応する変動調整量を求める。次に、変動調整量決定部34は、求めた変動調整量がDadj0でエッジ方向Edが垂直(Edv)である場合には、着目画素Aに対し下側に位置する画素Cの方向に対して変動調整量Dadj0を保存する。
The variation adjustment
続いて、着目画素が画素Aから画素Bに移動して、図10(b)に示すように、図10(a)に示すウィンドウの位置と比較して右方向に移動した位置にウィンドウが設定された場合においては、変動調整量決定部34は、変動調整量Dadj1でエッジ方向Edが右上がり斜め(Edr)である場合には、変動調整量Dadj1は、再び着目画素Bの左下である画素Cの位置に保存するが、先に保存した変動調整量Dadj0に加算して保存する。
Subsequently, the pixel of interest moves from the pixel A to the pixel B, and as shown in FIG. 10B, the window is set at a position moved to the right as compared with the position of the window shown in FIG. In such a case, the fluctuation adjustment
なお、このとき変動調整量は0.0〜1.0の間の値であるため、加算結果が1.0を超える場合は1.0にクリッピングして保存される。これ以降の説明においては、加算保存された後の変動調整量をDa(0.0≦Da≦1.0)とする。 At this time, since the fluctuation adjustment amount is a value between 0.0 and 1.0, if the addition result exceeds 1.0, it is clipped to 1.0 and stored. In the following description, it is assumed that the amount of fluctuation adjustment after the addition is stored is Da (0.0 ≦ Da ≦ 1.0).
ところで、エッジ強調検出部32からのエッジ強調Esを受け取っているカレント変動量決定部35は、そのエッジ強調Esをカレント変動量Dsに変換する。なお、エッジ強度Esとカレント変動量Dsとの関係は、図11に示すようなテーブルとして表すことが出来る。この図11に示すような関係を示す情報はカレント変動量決定部35の記憶部(図示せず)に記憶されている。
Meanwhile, the current fluctuation
このテーブルは、エッジ強度Esが小さいときにはカレント変動量Dsはより小さく又はカレント変動量Dsは0となるように、また、エッジ強度Esが強くなるに従ってカレント変動量Dsはより大きくなるように設定されている。このようなテーブルは、0〜255の範囲にあるエッジ強度Esを0.0〜1.0のカレント変動量Dsの値に変換するために用いられる。 This table is set so that the current fluctuation amount Ds is smaller or the current fluctuation amount Ds becomes 0 when the edge strength Es is small, and the current fluctuation amount Ds becomes larger as the edge strength Es becomes stronger. ing. Such a table is used for converting the edge strength Es in the range of 0 to 255 into the value of the current fluctuation amount Ds of 0.0 to 1.0.
このカレント変動量Ds及び先に求められた変動調整量Daは、色信号処理部103に渡される。例えば、着目画素が図10(c)に示すウィンドウ内の画素Cに移動したときには、画素Cの位置に対応して求められたカレント変動量Dsおよび画素Cの位置に対応して保存された変動調整量Daが渡されることになる。
The current variation amount Ds and the previously obtained variation adjustment amount Da are passed to the color
このようにしてカレント変動量Ds及び変動調整量Daが渡される色信号処理部103について説明する。ここでは、RGBの各画像データからジアン(C)の色信号に変換する場合の処理について説明する。
The color
ホストコンピュータ50から送られてくるRGB画像データ(256階調画像データ)は、色変換部20によってシアンの色信号つまりC(256)信号に変換される。このとき色変換部20は、代表的な色についてはルックアップテーブルを参照してRGB信号からC信号への変換を行うとともに、代表点以外については代表点を内挿して求めることでRGB信号からC(256)信号への変換を行う。このようにして色変換されたC(265)信号は、ガンマ補正部22に入力される。
The RGB image data (256 gradation image data) sent from the
ガンマ補正部22は、入力されたC(256)信号に対して、ガンマテーブル記憶部21に記憶されているガンマ補正テーブルに基づいてガンマ補正を実行する。すなわち、ガンマ補正部22は、C(256)信号に対する補正値をガンマテーブル記憶部21のガンマ補正テーブルから取得することにより出力の直線性を得る。この結果として、ガンマ補正されたC’(256)信号が得られる。このようにして求められたC’(256)信号は2値化処理部36に入力される。
The
2値化処理部36は、ガンマ補正部22からのガンマ補正後の色信号(C’(256)信号)、閾値変動量決定部104からのカレント変動量Dsおよび変動調整量Daの値を基に、2値化処理を実行する。
The
2値化処理部では、まずディザ閾値記憶部23に記憶されているディザ閾値Tを取得する。このディザ閾値Tは着目画素の位置情報に対応する位置に配列されている値を取得する。このディザ閾値に対して、ディザ閾値変動量(カレント変動量Dsおよび変動調整量Da)を用いて閾値を変動させる。
The binarization processing unit first acquires a dither threshold T stored in the dither
具体的には、変動後のディザ閾値をT’とした場合、このディザ閾値T’は(数6)の式を演算することにより求めることができる Specifically, when the dither threshold value after change is T ′, the dither threshold value T ′ can be obtained by calculating the equation (Equation 6).
この(数6)の式からも分かるように、カレント変動量Ds及び変動調整量Daの各値に応じて変動するディザ閾値T’は、通常のディザ閾値Tよりも小さくなる。変動調整量Daは、特に強度の高いエッジが同方向に連続する場合には1.0の値に近づくが、エッジ強度が弱い場合やエッジ方向が連続しない場合は0に近づく値である。そのため、変動調整量Daが0に近づく値であった場合には、ディザ閾値の変化量((1−Ds)^Da)は少なくなる。 As can be seen from the equation (Equation 6), the dither threshold value T ′ that varies according to each value of the current variation amount Ds and the variation adjustment amount Da is smaller than the normal dither threshold value T. The fluctuation adjustment amount Da approaches a value of 1.0 when particularly high-strength edges continue in the same direction, but approaches 0 when the edge strength is weak or the edge directions are not continuous. Therefore, when the fluctuation adjustment amount Da is a value that approaches 0, the change amount ((1-Ds) ^ Da) of the dither threshold decreases.
ところで、2値化処理部36は、ガンマ補正が行われたC’(256)信号に基づく画素レベルと変動後のディザ閾値T’とを比較し、この比較した結果、C’(256)信号≧ディザ閾値T’の関係が成立する場合にはONとし、一方、C’(256)信号<ディザ閾値T’の関係が成立する場合はOFFとする2値化出力を得る。
By the way, the
このようにして2値化が行われた場合には、エッジ強度Esがより強い部分は、ディザ閾値Tの低下が大きくなり、この結果としてディザ閾値T’が小さくなるため、画素が現れやすくなり、さらに同方向にエッジが連続するときにはディザ閾値Tの低下が大きくなり、この結果としてディザ閾値T’が小さくなるため、直線に対して特に画素が現われやすくなる。 When binarization is performed in this way, in the portion where the edge strength Es is stronger, the dither threshold value T is greatly decreased, and as a result, the dither threshold value T ′ becomes smaller, so that pixels are likely to appear. Further, when the edges continue in the same direction, the dither threshold value T is greatly decreased, and as a result, the dither threshold value T ′ is decreased, so that pixels are particularly likely to appear on a straight line.
なお、この実施の形態では、閾値変動量決定部104の出力であるカレント変動量Ds及び変動調整量Daを用いてディザ閾値を変動させることによりエッジの画素再現を良くなるようにしたが、本発明はこれに限定されることなく、カレント変動量Ds及び変動調整量Daを画素レベルに作用させた後、当該画素レベルとディザ閾値Tとを比較し、この比較した結果に基づいて2値化することにより画素再現を良くするようにすることができる。
In this embodiment, the pixel variation of the edge is improved by changing the dither threshold by using the current change amount Ds and the change adjustment amount Da that are the outputs of the threshold change
具体的には、図8において、カレント変動量決定部(第1の変動量決定手段)35は、エッジ強度検出部(検出手段)32が検出したエッジ強度に応じて画素値変動量(カレント変動量)Dsを求める機能を有し、変動調整量決定部(第2の変動量決定手段)34は、エッジ方向検出部(検出手段)33が検出したエッジ方向の画素に対応する画素値変動量(変動調整量)Daを求める機能を有するものとする。 Specifically, in FIG. 8, the current fluctuation amount determination unit (first fluctuation amount determination unit) 35 determines the pixel value fluctuation amount (current fluctuation amount) according to the edge strength detected by the edge strength detection unit (detection unit) 32. A variation adjustment amount determination unit (second variation amount determination unit) 34 has a function of obtaining an amount Ds, and a pixel value variation amount corresponding to the pixel in the edge direction detected by the edge direction detection unit (detection unit) 33 (Variation adjustment amount) It shall have a function which calculates | requires Da.
2値化処理部36は、ガンマ補正された後の256階調画像信号(M値画像信号)とカレント変動量決定部(第1の変動量決定手段)35が求めた画素変動量Ds及び変動調整量決定部(第2の変動量決定手段)34が求めた画素変動量Daとに基づいて新しい画素
値を求め、この新しい画素値とディザ閾値記憶部23の記憶内容から取得したディザ閾値Tとに基づいて256階調画像をN値化する。
The
ここで、画素値Gに対する変動後の新しい画素値G’は、(数7)の式を演算することにより求めることができる。 Here, the new pixel value G ′ after the change with respect to the pixel value G can be obtained by calculating the equation (Equation 7).
そして、2値化処理部36は、この(数7)の式を演算して求めた画素値G’とディザ閾値Tとを比較し、この比較した結果、画素値G’≧ディザ閾値Tの関係が成立する場合にはON、画素値G’<ディザ閾値T’の関係が成立する場合はOFFとする2値化出力を得る。
Then, the
また、この実施の形態では、1画素に対して1つのディザ閾値を変動させて2値化するようにしたが、本発明はこれに限定されることなく、1つの画素に対して複数のディザ閾値を持たせ、各ディザ閾値をそれぞれ変動させてn個の階調値を持たせるn値化とするようにしても良い。 Further, in this embodiment, one dither threshold is changed for one pixel and binarized, but the present invention is not limited to this, and a plurality of dithers for one pixel. A threshold value may be provided, and each dither threshold value may be varied to obtain an n-value value having n gradation values.
さらに、この実施の形態において、画像処理装置は、専用のハードウェアを用いて実現することが出来るが、一般的なCPU(中央演算処理装置)とROMやRAMなどの記憶装置とにより構成して同じ処理を実現することも可能である。 Furthermore, in this embodiment, the image processing apparatus can be realized using dedicated hardware, but is configured by a general CPU (central processing unit) and a storage device such as a ROM or RAM. It is also possible to realize the same processing.
この場合、色信号処理部及び閾値変動量決定部の機能を実現し、当該処理の処理手順を示すプログラムを例えばROMに格納しておき、CPUが、このプログラムをこのROMから主記憶装置(RAM)へローディングして実行するようにする。 In this case, the functions of the color signal processing unit and the threshold variation determining unit are realized, and a program indicating the processing procedure of the processing is stored in, for example, a ROM, and the CPU stores the program from the ROM in the main memory (RAM). ) To be executed.
さらに、この実施の形態では、プリンタエンジンは電子写真を用いたカラープリンタについて説明しているが、プリンタエンジンは必ずしも電子写真を用いたものでなくても構わない。 Furthermore, in this embodiment, the printer engine is described as a color printer using electrophotography, but the printer engine does not necessarily have to use electrophotography.
以上説明したように、本実施の形態の画像処理装置によれば、ディザ閾値(所定の閾値)Tとカレント変動量Dsおよび変動調整量Daとに基づいて新しいディザ閾値(新しい閾値)T’を求め、この新しいディザ閾値T’とガンマ補正された256階調(256値)画像信号(256階調YMCK信号)とに基づいて、当該256階調画像を2値(N値)化するようにしたので、中間調の画像のエッジの欠損や細線の破線化を改善することができる。 As described above, according to the image processing apparatus of the present embodiment, the new dither threshold (new threshold) T ′ is set based on the dither threshold (predetermined threshold) T, the current fluctuation amount Ds, and the fluctuation adjustment amount Da. Based on this new dither threshold T ′ and the gamma-corrected 256 gradation (256 values) image signal (256 gradation YMCK signal), the 256 gradation image is binarized (N value). Therefore, it is possible to improve the loss of the edge of the halftone image and the broken line.
また、本実施の形態の画像処理装置によれば、着目画素の画素値Gとカレント変動量Dsおよび変動調整量Daとに基づいて新しい画素G’を求め、この新しいディザ閾値G’とガンマ補正された256階調(256値)画像信号(256階調YMCK信号)とに基づいて、当該256階調画像を2値(N値)化するようにしたので、中間調の画像のエッジの欠損や細線の破線化を改善することができる。 Further, according to the image processing apparatus of the present embodiment, a new pixel G ′ is obtained based on the pixel value G of the pixel of interest, the current fluctuation amount Ds, and the fluctuation adjustment amount Da, and the new dither threshold G ′ and gamma correction. Based on the 256-gradation (256-value) image signal (256-gradation YMCK signal), the 256-gradation image is binarized (N-value), so that the edge of the halftone image is missing. And the thin line can be improved.
20 色変換部
21 ガンマテーブル記憶部
22 ガンマ補正部
23 ディザ閾値記憶部(閾値保持手段)
25,36 2値化処理部(N値化手段)
26,31 ウィンドウ設定部(ウィンドウ設定手段)
27 エッジ強度検出部(エッジ強度検出手段)
28 ディザ閾値変動量決定部(ディザ閾値変動量決定手段)
30 明度変換部
32 エッジ強度検出部(検出手段)
33 エッジ方向検出部(検出手段)
34 変動調整量決定部(第2の変動量決定手段)
35 カレント変動量決定部(第1の変動量決定手段)
60,600 画像処理装置
102,103 色信号処理部
102C,103C シアン(C)信号処理部
102M,103M マゼンタ(M)信号処理部
102Y,103Y イエロー(Y)信号処理部
102K,103K ブラック(K)信号処理部
104 閾値変動量決定部
20
25, 36 Binary processing unit (N-value conversion means)
26, 31 Window setting section (window setting means)
27 Edge strength detection unit (edge strength detection means)
28 Dither threshold variation determining unit (dither threshold variation determining means)
30
33 Edge direction detection unit (detection means)
34. Fluctuation adjustment amount determination unit (second variation amount determination means)
35 Current variation determining unit (first variation determining means)
60,600
Claims (4)
前記ウィンドウ設定手段が設定したウィンドウ内でエッジ強度を検出するエッジ強度検出手段と、
前記エッジ強度検出手段が検出したエッジ強度に応じてディザ閾値変動量を求めるディザ閾値変動量決定手段と、
前記M値画像をN値画像(NはM>Nの関係が成立する整数)に変換するための閾値を予め保持する閾値保持手段と、
前記閾値と前記ディザ閾値変動量決定手段が求めたディザ閾値変動量とに基づいて新しい閾値を求め、この新しい閾値と前記M値画像信号とに基づいて前記M値画像をN値化するN値化手段と、
を有することを特徴とする画像処理装置。 Window setting means for setting an n × n (n is an integer) window for an M value image corresponding to an input M value image signal (M is an integer);
Edge strength detection means for detecting edge strength within the window set by the window setting means;
Dither threshold fluctuation amount determining means for obtaining a dither threshold fluctuation amount according to the edge strength detected by the edge strength detection means;
Threshold holding means for holding in advance a threshold for converting the M-value image into an N-value image (N is an integer satisfying a relationship of M>N);
An N value that obtains a new threshold value based on the threshold value and the dither threshold value variation amount obtained by the dither threshold value variation determining means, and converts the M value image into N values based on the new threshold value and the M value image signal. And
An image processing apparatus comprising:
前記ウィンドウ設定手段が設定したウィンドウ内でエッジ強度を検出するエッジ強度検出手段と、
前記エッジ強度検出手段が検出したエッジ強度に応じて画素値変動量を求める画素値変動量決定手段と、
前記M値画像をN値画像(NはM>Nの関係が成立する整数)に変換するための閾値を予め保持する閾値保持手段と、
前記M値画像信号と前記画素値変動量決定手段が求めた画素値変動量とに基づいて新しい画素値を求め、この新しい画素値と前記閾値とに基づいて前記M値画像をN値化するN値化手段と、
を有することを特徴とする画像処理装置。 Window setting means for setting an n × n (n is an integer) window for an M value image corresponding to an input M value image signal (M is an integer);
Edge strength detection means for detecting edge strength within the window set by the window setting means;
A pixel value fluctuation amount determining means for obtaining a pixel value fluctuation amount according to the edge strength detected by the edge strength detection means;
Threshold holding means for holding in advance a threshold for converting the M-value image into an N-value image (N is an integer satisfying a relationship of M>N);
A new pixel value is obtained based on the M-value image signal and the pixel value fluctuation amount obtained by the pixel value fluctuation amount determining means, and the M-value image is converted into an N-value based on the new pixel value and the threshold value. N-value conversion means;
An image processing apparatus comprising:
前記ウィンドウ設定手段が設定したウィンドウ内でエッジ強度及びエッジ方向を検出する検出手段と、
前記検出手段が検出したエッジ強度に応じてディザ閾値変動量を求める第1の変動量決定手段と、
前記検出手段が検出したエッジ方向の画素に対応するディザ閾値変動量を求める第2の変動量決定手段と、
前記M値画像をN値画像(NはM>Nの関係が成立する整数)に変換するための閾値を予め保持する閾値保持手段と、
前記閾値と前記第1の変動量決定手段が求めたディザ閾値変動量及び前記第2の変動量決定手段が求めたディザ閾値変動量とに基づいて新しい閾値を求め、この新しい閾値と前記M値画像信号とに基づいて前記M値画像をN値化するN値化手段と、
を有することを特徴とする画像処理装置。 Window setting means for setting an n × n (n is an integer) window for an M value image corresponding to an input M value image signal (M is an integer);
Detecting means for detecting edge strength and edge direction in the window set by the window setting means;
First fluctuation amount determining means for obtaining a dither threshold fluctuation amount according to the edge intensity detected by the detection means;
Second variation amount determining means for obtaining a dither threshold variation amount corresponding to the pixel in the edge direction detected by the detection means;
Threshold holding means for holding in advance a threshold for converting the M-value image into an N-value image (N is an integer satisfying a relationship of M>N);
A new threshold value is obtained based on the threshold value, the dither threshold fluctuation amount obtained by the first fluctuation amount determining means and the dither threshold fluctuation amount obtained by the second fluctuation amount determining means, and the new threshold value and the M value are obtained. N-value conversion means for converting the M-value image into an N-value based on an image signal;
An image processing apparatus comprising:
前記ウィンドウ設定手段が設定したウィンドウ内でエッジ強度及びエッジ方向を検出する検出手段と、
前記検出手段が検出したエッジ強度に応じて画素値変動量を求める第1の変動量決定手段と、
前記検出手段が検出したエッジ方向の画素に対応する画素値変動量を求める第2の変動量
決定手段と、
前記M値画像をN値画像(NはM>Nの関係が成立する整数)にするための閾値を予め保持する閾値保持手段と、
前記M値画像信号と前記第1の変動量決定手段が求めた画素値変動量及び前記第2の変動量決定手段が求めた画素値変動量とに基づいて新しい画素値を求め、この新しい画素値と前記閾値とに基づいて前記M値画像をN値化するN値化手段と、
を有することを特徴とする画像処理装置。 Window setting means for setting an n × n (n is an integer) window for an M value image corresponding to an input M value image signal (M is an integer);
Detecting means for detecting edge strength and edge direction in the window set by the window setting means;
First fluctuation amount determining means for obtaining a pixel value fluctuation amount according to the edge intensity detected by the detection means;
Second fluctuation amount determining means for obtaining a pixel value fluctuation amount corresponding to the pixel in the edge direction detected by the detection means;
Threshold holding means for holding in advance a threshold for making the M-value image an N-value image (N is an integer satisfying a relationship of M>N);
A new pixel value is obtained based on the M-value image signal, the pixel value fluctuation amount obtained by the first fluctuation amount determination means and the pixel value fluctuation amount obtained by the second fluctuation amount determination means, and the new pixel N-value conversion means for converting the M-value image into an N-value based on a value and the threshold value;
An image processing apparatus comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004206922A JP4259410B2 (en) | 2004-07-14 | 2004-07-14 | Image processing device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004206922A JP4259410B2 (en) | 2004-07-14 | 2004-07-14 | Image processing device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2006033225A true JP2006033225A (en) | 2006-02-02 |
JP4259410B2 JP4259410B2 (en) | 2009-04-30 |
Family
ID=35899073
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2004206922A Expired - Fee Related JP4259410B2 (en) | 2004-07-14 | 2004-07-14 | Image processing device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4259410B2 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2010101292A1 (en) * | 2009-03-03 | 2010-09-10 | Sharp Kabushiki Kaisha | Method of and apparatus for processing a video image |
CN106791270A (en) * | 2015-11-19 | 2017-05-31 | 佳能株式会社 | Image processing apparatus and its control method |
EP3422692A1 (en) | 2017-06-28 | 2019-01-02 | Canon Kabushiki Kaisha | Image processing apparatus and image processing method |
-
2004
- 2004-07-14 JP JP2004206922A patent/JP4259410B2/en not_active Expired - Fee Related
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2010101292A1 (en) * | 2009-03-03 | 2010-09-10 | Sharp Kabushiki Kaisha | Method of and apparatus for processing a video image |
CN106791270A (en) * | 2015-11-19 | 2017-05-31 | 佳能株式会社 | Image processing apparatus and its control method |
US10070008B2 (en) | 2015-11-19 | 2018-09-04 | Canon Kabushiki Kaisha | Image processing apparatus, method of controlling the same, and storage medium |
EP3422692A1 (en) | 2017-06-28 | 2019-01-02 | Canon Kabushiki Kaisha | Image processing apparatus and image processing method |
US10523844B2 (en) | 2017-06-28 | 2019-12-31 | Canon Kabushiki Kaisha | Image processing apparatus and image processing method for image sharpness recovery |
Also Published As
Publication number | Publication date |
---|---|
JP4259410B2 (en) | 2009-04-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP1505821B1 (en) | Image processing apparatus, an image forming apparatus and an image processing method | |
JP4496239B2 (en) | Image processing method, image processing apparatus, image forming apparatus, image reading apparatus, computer program, and recording medium | |
US20100265549A1 (en) | Image processing apparatus and image processing method | |
JPH0380767A (en) | Gradation recorder for image | |
JP2009100228A (en) | Image processing apparatus and control method therefor | |
JP4158496B2 (en) | Image processing device | |
JP5300418B2 (en) | Image forming apparatus | |
EP2919452B1 (en) | Apparatus, image processing apparatus, and method | |
JP7447193B2 (en) | Image processing device and image processing method | |
JP4498233B2 (en) | Image processing apparatus and image processing method | |
US9147140B2 (en) | Image processing apparatus, method, and product for converting image data into fewer gradations based on total value of pixels in a group except for a detected pixel having a specific value | |
JP2005210731A (en) | Method for creating halftones from plural pixels, and method and system for processing halftones | |
JP4259410B2 (en) | Image processing device | |
JP6882083B2 (en) | Image processing device, image forming device, image processing method and program | |
JPH10304200A (en) | Image processor | |
JP2010273393A (en) | Image processor, and method of controlling the same | |
JP4549227B2 (en) | Image processing apparatus, image forming apparatus, image processing method, computer program, and recording medium | |
JP2003189103A (en) | Image forming apparatus | |
JP2007043394A (en) | Apparatus and method for image processing, and program making computer implement same method | |
JP7497212B2 (en) | Image forming device | |
JP5122507B2 (en) | Image processing apparatus, image forming apparatus, image processing method, program, and recording medium | |
JP2004242085A (en) | Device and method for processing image | |
US6870640B1 (en) | Method and apparatus for rendering a continuous tone image representation with multiple digital halftoning | |
JP2006155572A (en) | Image processor, image forming device, image processing method and computer program | |
JP2007272666A (en) | Image evaluation method and image evaluation device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20070629 |
|
RD01 | Notification of change of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7421 Effective date: 20070712 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20080715 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20080729 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20080929 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20090120 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20090202 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120220 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120220 Year of fee payment: 3 |
|
LAPS | Cancellation because of no payment of annual fees |