JP4883613B2 - Image processing apparatus, image processing method, program, and recording medium - Google Patents
Image processing apparatus, image processing method, program, and recording medium Download PDFInfo
- Publication number
- JP4883613B2 JP4883613B2 JP2006199013A JP2006199013A JP4883613B2 JP 4883613 B2 JP4883613 B2 JP 4883613B2 JP 2006199013 A JP2006199013 A JP 2006199013A JP 2006199013 A JP2006199013 A JP 2006199013A JP 4883613 B2 JP4883613 B2 JP 4883613B2
- Authority
- JP
- Japan
- Prior art keywords
- character
- mode
- determination
- negative
- image
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Image Processing (AREA)
- Editing Of Facsimile Originals (AREA)
- Facsimile Image Signal Circuits (AREA)
- Color Image Communication Systems (AREA)
Description
本発明は、色材消費量を通常よりも節約して出力する色材セーブモードを備えた画像処理装置、画像処理方法、プログラムおよび記録媒体に関し、例えばプリンタや複合機等に好適な技術に関する。 The present invention relates to an image processing apparatus, an image processing method, a program, and a recording medium having a color material save mode for outputting color material consumption more than usual, and relates to a technique suitable for, for example, a printer or a multifunction peripheral.
高画質な画像を生成して出力する通常出力モードの他に、色材消費量を通常よりも節約して出力する色材セーブモードを備える装置として、プリンタがある。色材セーブモードは、例えば出力画像のレイアウト確認等、画質が重視されない場合に使用される。 In addition to the normal output mode that generates and outputs a high-quality image, there is a printer as a device that includes a color material save mode that saves and outputs color material consumption more than usual. The color material save mode is used when the image quality is not important, for example, when checking the layout of the output image.
色材消費量を節約する従来の方法は、濃度変換を行う方法、ディザ画像と間引きパターンとの論理積をとる方法、パルス幅変調や書込み光量制御を行う方法等がある。これらの方法はいずれも画像濃度を低下させて出力するため、通常出力モードより画質が劣る。しかし、色材セーブモードでも、特に重要度の高い文字画像に関しては画質を落とさずに読みやすさを保ちたい、という要求がある。 Conventional methods for saving color material consumption include a method of density conversion, a method of taking a logical product of a dither image and a thinning pattern, a method of performing pulse width modulation and writing light amount control, and the like. Since all of these methods output with the image density lowered, the image quality is inferior to that in the normal output mode. However, even in the color material saving mode, there is a demand for maintaining the readability without degrading the image quality, particularly for a highly important character image.
特許文献1、2の装置は、いずれも画像属性毎に色材セーブを切り換えることで文字の可読性を維持するものである。文字オブジェクトの色材セーブは殆ど行わず(或いは全く行わず)、文字以外のオブジェクトに対しては色材セーブを確実に行うことで、文字の可読性を保ちつつ色材消費量を節約できる。
The devices of
しかし、文字領域とそれ以外の領域とで処理を切り換えるこれらの方式は、白抜き文字(白以外の濃度を持った背景上に白色で書かれた文字)に対しては文字の可読性が全く維持されない。すなわち、白文字以外の背景部分で色材セーブが確実に行われるため、白文字と背景画像とのコントラストが低下して読みにくくなってしまう。 However, these methods of switching processing between the character area and other areas maintain the readability of the character completely for white characters (characters written in white on a background with a density other than white). Not. In other words, since the color material is surely saved in the background portion other than the white characters, the contrast between the white characters and the background image is lowered, making it difficult to read.
図1(a)は、黒背景上白文字の白抜き文字を通常出力モードで出力した画像、(b)は白抜き文字を文字オブジェクトのみ濃度保存し(元々白色なので意味がない)、背景画像は色材セーブして出力したディザ処理後の画像である。このように、従来の色材セーブ方式では白抜き文字の可読性が低下してしまう。 FIG. 1A shows an image in which white characters on a black background are output in the normal output mode, and FIG. 1B shows a background image in which only the density of the white characters is stored (originally white, meaningless). Is a dithered image output after saving the color material. Thus, in the conventional color material saving method, the readability of white characters is degraded.
そこで、特許文献3の装置では、白抜き文字の場合は背景と文字の濃度を反転させて出力する。つまり、黒背景上白文字の画像を色材セーブモードで出力すると白背景上黒文字の画像に変換されて出力される。この処理により、白抜き文字のコントラストを低下させずに可読性を維持し、かつ、色材消費量を節約することができる。しかし、原画像と出力画像との変化が大きすぎて、レイアウト確認が十分にできない可能性がある。 Therefore, in the apparatus of Patent Document 3, in the case of a white character, the background and the character density are reversed and output. That is, when a white character image on a black background is output in the color material save mode, it is converted to a black character image on a white background and output. By this processing, it is possible to maintain readability without reducing the contrast of the outline characters and to save the color material consumption. However, the change between the original image and the output image is so large that the layout cannot be confirmed sufficiently.
本発明は上記した問題点に鑑みてなされたもので、
本発明の目的は、ネガ文字外周では色材を節約せずに、あるいはネガ文字内周を背景色で置き換えることにより画像を再生し、白抜き文字の可読性を維持し、かつ原画像の印象を大きく変えない色材セーブモードを実現した画像処理装置、画像処理方法、プログラムおよび記録媒体を提供することにある。
The present invention has been made in view of the above problems,
The object of the present invention is to reproduce the image without saving the color material on the outer periphery of the negative character or by replacing the inner periphery of the negative character with the background color, maintain the readability of the white character, and improve the impression of the original image. An object of the present invention is to provide an image processing apparatus, an image processing method, a program, and a recording medium that realize a color material saving mode that does not change significantly.
本発明は、画像を出力する際に、色材消費量を節約しないモード(以下、第1のモード)と、色材消費量を節約するモード(以下、第2のモード)を有する画像処理装置であって、前記画像を構成する注目画素の属性が文字か否かを判定する第1の判定手段と、前記注目画素を含む所定領域において文字画素と非文字画素が混在しているとき前記注目画素を文字エッジと判定する第2の判定手段と、前記第1、第2の判定手段の判定結果を基に前記注目画素が文字外周か文字内周かを判定する第3の判定手段と、前記注目画素の濃度を判定する第4の判定手段と、前記第3、第4の判定手段の判定結果を基に前記注目画素がネガ文字の外周か内周かを判定する第5の判定手段と、前記ネガ文字の内周を高濃度の背景色に変換する変換手段と、前記第2のモードが設定されているとき、前記高濃度の背景色に変換されたネガ文字の内周に対しては、前記設定されている第2のモードを無効にして前記第1のモードを実行し、前記ネガ文字の外周に対しては、前記設定されている第2のモードを実行する処理手段を備えたことを最も主要な特徴とする。
The present invention provides an image processing apparatus having a mode that does not save color material consumption (hereinafter referred to as a first mode) and a mode that saves color material consumption (hereinafter referred to as a second mode) when outputting an image. The first determination means for determining whether or not the attribute of the target pixel constituting the image is a character, and when the character pixel and the non-character pixel are mixed in a predetermined area including the target pixel, Second determination means for determining a pixel as a character edge; and third determination means for determining whether the pixel of interest is a character outer periphery or a character inner periphery based on the determination results of the first and second determination means; Fourth determination means for determining the density of the target pixel, and fifth determination means for determining whether the target pixel is the outer periphery or the inner periphery of the negative character based on the determination results of the third and fourth determination means. Conversion means for converting the inner periphery of the negative character into a high density background color; When the second mode is set, the first mode is set by disabling the set second mode for the inner periphery of the negative character converted to the high-density background color. And a processing means for executing the set second mode is provided on the outer periphery of the negative character .
本発明によると、色材セーブ設定時、ネガ文字外周において色材消費量を節約しないため、白抜き文字であっても可読性を維持しつつ、かつ、原稿の印象を大きく変えない、色材セーブモードを実現することができる。また、ポジ文字である色地上黒文字に対しては従来の色材セーブ処理を行うことができ、従来の画質を維持できる。 According to the present invention, when color material saving is set, the color material consumption is not saved on the outer periphery of the negative character, so that the color material save is maintained without changing the impression of the original while maintaining the readability even with the white character. A mode can be realized. In addition, the conventional color material saving process can be performed on the color ground black characters that are positive characters, and the conventional image quality can be maintained.
本発明によると、色材セーブ設定時、ネガ文字内周を背景画像の色に置き換えるため、白抜き文字であっても可読性を維持しつつ、かつ、原稿の印象を大きく変えない、色材セーブモードを実現することができる。また、ポジ文字である白地上黒文字や色地上黒文字に対しては従来の色材セーブ処理を行うことができ、従来の画質を維持できる。 According to the present invention, when the color material save is set, the inner periphery of the negative character is replaced with the color of the background image, so that the color material save is maintained without changing the impression of the document while maintaining the readability even with the white character. A mode can be realized. Further, the conventional color material saving process can be performed on the white ground black characters and the color ground black characters which are positive characters, and the conventional image quality can be maintained.
本発明によると、“背景画像の色への置き換え”を膨張処理により実現するため、比較的簡単な構成で実現することができる。 According to the present invention, the “replacement of the background image with the color” is realized by the expansion process, and thus can be realized with a relatively simple configuration.
本発明によると、文字濃度が予め設定した値よりも高い場合はポジ文字として判定するため、比較的文字濃度の高いネガ文字に対しても、原画像の印象を極力変えない色材セーブ画像を生成できる。 According to the present invention, when the character density is higher than a preset value, it is determined as a positive character. Therefore, even for a negative character having a relatively high character density, a color material saved image that does not change the impression of the original image as much as possible. Can be generated.
以下、発明の実施の形態について図面により詳細に説明する。 Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
実施例1:
図2は、本発明の実施例1のブロック図を示す。アプリケーション10から送られたプリンタ出力命令をプリンタドライバ11において描画コマンドに変換し、ラスタライザ13は描画コマンドからビットマップのRGB画像を作成する。アプリケーション10では、ユーザーが通常出力モードあるいは色材セーブモードの出力モードを選択指示することができる。指示された出力モードは、後で参照できるように、RGB画像のヘッダに記録しておく。
Example 1:
FIG. 2 shows a block diagram of Embodiment 1 of the present invention. The printer output command sent from the
コマンド変換部12は、描画コマンドからオブジェクト情報を読み出して属性画像を作成する。属性画像は、文字、細線、グラフィック、イメージの属性で構成される。ラインメモリ14は数ライン分のrgb信号を一時蓄積する。これは、色材セーブのための画像特徴を判定する参照領域確保のため、および、算出した画像特徴とrgb信号との同期をとるためである。
The command conversion unit 12 reads the object information from the drawing command and creates an attribute image. The attribute image is composed of characters, thin lines, graphics, and image attributes. The
参照領域切り出し部15からネガポジ判定部19までのブロックは、色材セーブのための画像特徴の判定を行っている処理部分である。画像特徴として、注目画素が「ポジ文字内周/ポジ文字外周/ネガ文字内周/ネガ文字外周/その他」のいずれの領域に属するかの判定結果がネガポジ判定部19から出力される。詳細は後述する。 色変換部20では、rgb信号からc’m’y’信号への変換を行い、墨生成/下色除去部21でcmykに変換する。γ補正部22は、プリンタのγ特性の補正のため1次元LUT変換を行う処理である。本発明では、色材セーブ時にγ補正部22が色材セーブ処理を行う。色材セーブのための画像特徴である「ポジ文字内周/ポジ文字外周/ネガ文字内周/ネガ文字外周/その他」に応じてγテーブル(1次元LUT)を切り換える。γ補正に関しても詳細は後述する。γ補正後は、擬似中間調処理部23でディザ処理を行い、プリンタ24で記録紙に出力する。
The blocks from the reference
図3は、ラインメモリ14、参照領域切り出し部15、濃度判定部16、エッジ判定部17のブロック図を示す。
《ラインメモリ14、参照領域切り出し15》
ラインメモリ14は、r,g,bの3信号用のラインメモリ、および、属性画像用のラインメモリからなる。r信号の例で説明する。1ライン前の画像信号を一時的に蓄積するラインメモリ1−1と、2ライン前の画像信号を一時的に蓄積するラインメモリ1−2を持つ。現在の入力ラインと合わせて3ライン分のr信号が参照可能である。参照領域切り出し15では、r11〜r33(注目画素はr22)の3×3画素を切り出す。
FIG. 3 is a block diagram of the
<<
The
《濃度判定部16》
濃度算出部160は、3×3画素のrgb信号を画素毎に濃度信号に変換する。注目画素を例に説明する。ここでは式(1)の変換式によって濃度信号d22へ変換する。
d22=255−(r22+2×g22+b22) 式(1)
r22,g22,b22は0が黒、255が白で、濃度d22は逆に0が白、255が黒である。濃度関係の判定部161は、以下の式(2)および式(3)がどちらも成立するときに、「高濃度側」の画素であると判定する。つまり、3×3画素内で濃度変化があり平坦でない(式(2))、かつ、3×3画素内において注目画素が最も濃度が高い画素である(式(3))場合に、「高濃度側」と判定し、それ以外の場合を「その他」と判定している。
<<
The
d22 = 255− (r22 + 2 × g22 + b22) Formula (1)
In r22, g22, and b22, 0 is black, 255 is white, and the density d22 is 0, white, and 255, black. The density-related determining
Max(d11,d12,d13,d21,d22,d23,d31,d32,d33)≠Min(d11,d12,d13,d21,d22,d23,d31,d32,d33) 式(2)
Max(d11,d12,d13,d21,d22,d23,d31,d32,d33)=d22 式(3)
Max (d11, d12, d13, d21, d22, d23, d31, d32, d33) ≠ Min (d11, d12, d13, d21, d22, d23, d31, d32, d33) Equation (2)
Max (d11, d12, d13, d21, d22, d23, d31, d32, d33) = d22 Formula (3)
《エッジ検出部17》
3×3画素の属性画像を参照して、「文字エッジ」を検出する。文字画素計数部170では属性が文字の画素数をカウントする。非文字画素計数部171では属性が文字以外の画素数をカウントする。文字/非文字混在判定部172では、文字画素計数部170の結果が0でなく(「結果が0でない」とは、カウントした結果、属性が文字の画素数が3×3画素内に1個以上存在するという意味)、かつ、非文字画素計数部171の結果が0でない(「結果が0でない」とは、カウントした結果、属性が文字以外の画素数が3×3画素内に1個以上存在するという意味)場合に、注目画素が「文字エッジ」であると判定する。いずれかが0の場合は「その他」と判定する。これにより、文字と非文字が混在する文字エッジ部分を検出することができる。
<<
A “character edge” is detected with reference to an attribute image of 3 × 3 pixels. In the character
《文字外周/内周判定部18》
図4は、文字外周/内周判定部18の動作フローチャートである。エッジ検出部17の出力結果である「文字エッジ/その他」、および、注目画素の属性(図3の“属22”)から、
・文字エッジ、かつ、属性が文字である場合は「文字内周」、
・文字エッジ、かつ、属性が文字でない場合は「文字外周」、
・文字エッジでない場合は「その他」、
と判定する。
<< Character Outer / Inner Perimeter Determination Unit 18 >>
FIG. 4 is an operation flowchart of the character outer / inner periphery determination unit 18. From the “character edge / other” that is the output result of the
-If the character edge and the attribute is a character,
・ If the character edge and the attribute is not a character,
・ If it is not a character edge,
Is determined.
文字エッジか否かはエッジ検出部17の出力結果である。文字エッジである場合は結果として「1」が出力され、文字エッジで無い場合は結果として「0」が出力されるものとする。属性が文字であるか否かはプリンタドライバから送られてくる描画コマンドにオブジェクト情報として記述されている。オブジェクト情報はコマンド変換部12、ラスタライザ13を経て属性画像として保持されている。例えば、属性画像が2値画像で表されていて、文字の場合は「1」、文字でない場合は「0」の信号が割り当てられているとする。上記で、「文字エッジ、かつ、属性が文字である場合」とは、注目画素におけるエッジ検出部17の結果と注目画素の属性がともに「1」の場合であり、両者の論理積演算で求められる。「文字エッジ、かつ、属性が文字でない場合」とは、注目画素におけるエッジ検出部17の結果が「1」で注目画素の属性が「0」の場合であり、属性を反転してから論理積演算をすれば求められる。上記の「かつ」が論理積演算、「〜でない」が信号の反転を意味する。
Whether or not it is a character edge is an output result of the
《ネガポジ判定部19》
図5は、ネガポジ判定部19の動作フローチャートである。文字外周/内周判定部18の出力結果である「文字内周/文字外周/その他」、および、濃度判定部16の出力結果である「高濃度側/その他」から、
・文字内周、かつ、高濃度側である場合は「ポジ文字内周」、
・文字内周、かつ、高濃度側でない場合は「ネガ文字内周」、
・文字外周、かつ、高濃度側である場合は「ネガ文字外周」、
・文字外周、かつ、高濃度側でない場合は「ポジ文字外周」、
・文字内周でも文字外周でもない場合は「その他」、
と判定する。
<< Negative /
FIG. 5 is an operation flowchart of the negative /
・ In the case of the inner circumference of the character and the high density side, the “positive character inner circumference”
・ If the inner circumference of the character is not on the high density side, the inner circumference of the negative character
・ If the outer periphery of the character is on the high density side, the outer periphery of the negative character
・ If the character is outside and not on the high density side, “Positive character”,
・ If the character is not inside or outside the character,
Is determined.
文字外周であるか文字内周であるかその他であるかは文字外周/内周判定部18の出力結果である。ここでは、文字外周である場合は結果として「11」が出力され、文字内周である場合は結果として「10」が出力され、文字外周でも文字内周でもない場合は結果として「00」が出力されるものとする。 Whether it is the character outer periphery, the character inner periphery or the other is the output result of the character outer periphery / inner periphery determination unit 18. Here, “11” is output as a result when the character is outside the character, “10” is output as a result when the character is inside the character, and “00” is output as a result when the character is neither the character outer periphery nor the character inner periphery. Shall be output.
高濃度側であるか否かは濃度判定部16の出力結果である。高濃度側である場合は結果として「1」が出力され、高濃度側でない場合は結果として「0」が出力されるものとする。上記で、「文字内周、かつ、高濃度側である場合」とは、注目画素における文字外周/内周判定結果が「10」であり、かつ、注目画素における濃度判定結果が「1」の場合であり、注目画素における文字外周/内周判定結果と「11」との論理積演算を行い、結果が「10」であるか否かと、注目画素における濃度判定結果と「1」との論理積演算を行い結果が「1」であるか否かを算出することにより求められる。上記で、「文字内周、かつ、高濃度側でない場合」とは、注目画素における文字外周/内周判定結果が「10」であり、かつ、注目画素における濃度判定結果が「0」である場合のことであり、注目画素における文字外周/内周判定結果と「11」との論理積演算を行い結果が「10」であるか否かと、注目画素における濃度判定結果と「1」との論理積演算を行い結果が「0」であるか否かを算出することにより求められる。上記で、「文字外周、かつ、高濃度側である場合」とは、注目画素における文字外周/内周判定結果が「11」であり、かつ、注目画素における濃度判定結果が「1」である場合のことであり、注目画素における文字外周/内周判定結果と「11」との論理積演算を行い結果が「11」であるか否かと、注目画素における濃度判定結果と「1」との論理積演算を行い結果が「1」であるか否かを算出することにより求められる。上記で、「文字外周、かつ、高濃度側でない場合」とは、注目画素における文字外周/内周判定結果が「11」であり、かつ、注目画素における濃度判定結果が「0」である場合のことであり、注目画素における文字外周/内周判定結果と「11」との論理積演算を行い結果が「11」であるか否かと、注目画素における濃度判定結果と「1」との論理積演算を行い結果が「0」であるか否かを算出することにより求められる。「文字内周でも文字外周でもない場合」とは、注目画素における文字外周/内周判定結果が「00」である場合のことであり、注目画素における文字外周/内周判定結果と「11」との論理積演算を行い結果が「00」であるか否かを算出することにより求められる。
Whether it is on the high concentration side is an output result of the
なお、ポジ文字は背景に対して高濃度である文字であり、ネガ文字は背景に対して低濃度である文字である。従って、「ポジ文字内周」と「ポジ文字外周」は、ポジ文字の文字側エッジとポジ文字の背景側エッジであり、「ネガ文字内周」と「ネガ文字外周」は、ネガ文字の文字側エッジとネガ文字の背景側エッジでもある。 A positive character is a character having a high density with respect to the background, and a negative character is a character having a low density with respect to the background. Therefore, "Positive character inner periphery" and "Positive character outer periphery" are the character side edge of the positive character and the positive character background side edge, and "Negative character inner periphery" and "Negative character outer periphery" are the characters of the negative character. It is also the side edge and the background edge of the negative character.
図6は、白地上黒文字画像の場合(a)のエッジ検出(b)、濃度判定(c)、ネガポジ判定(d)の結果を示した図である。図7は、黒地上白文字画像(a)の場合のエッジ検出(b)、濃度判定(c)、ネガポジ判定(d)の結果を示した図である。エッジ検出(b)では、いずれの場合も、文字内側と外側が1ドットずつ文字エッジとして検出される。 FIG. 6 is a diagram showing the results of edge detection (b), density determination (c), and negative / positive determination (d) in the case of a black character image on white. FIG. 7 is a diagram showing the results of edge detection (b), density determination (c), and negative / positive determination (d) in the case of a black ground white character image (a). In either case of edge detection (b), the inside and outside of the character are detected as character edges one dot at a time.
濃度判定(c)では、文字エッジ部のうち黒画素部が、高濃度側として判定される。図6の白地上黒文字(a)の場合は、文字内側の内周1ドット、図7の黒地上白文字(a)の場合は、文字外側の外周1ドットである。 In the density determination (c), the black pixel portion of the character edge portion is determined as the high density side. In the case of the black ground character (a) in FIG. 6, the inner circumference is one dot inside the character, and in the case of the black ground white character (a) in FIG.
ネガポジ判定(d)では、図6、7の通り、「ポジ文字内周」「ポジ文字外周」「ネガ文字内周」「ネガ文字外周」が識別される。 In negative / positive determination (d), as shown in FIGS. 6 and 7, “positive character inner periphery”, “positive character outer periphery”, “negative character inner periphery”, and “negative character outer periphery” are identified.
次に、色材セーブモード時のγ補正について説明する。
《γ補正部22》
図8は、γテーブルの例を示す。通常出力用のγテーブルに対して、濃度を50%前後に低下させて出力する図のような色材セーブ用γテーブルを用意しておく。
Next, γ correction in the color material save mode will be described.
<<
FIG. 8 shows an example of the γ table. For the normal output γ table, a color material saving γ table as shown in FIG.
図9は、γ補正部22における、画像特徴毎の処理切り換えを示す。画像のヘッダに記載された出力モードが通常出力モードである場合は、常に通常出力用γテーブルを使用する。
FIG. 9 shows processing switching for each image feature in the
出力モードが色材セーブモードである場合は、色材セーブ用に検出した画像特徴であるネガポジ判定の判定結果に応じて、「ポジ文字外周」または「ネガ文字内周」または「その他」の画素に対して色材セーブ用γテーブルを適用し、色材セーブ処理を有効にする。「ポジ文字内周」または「ネガ文字外周」の画素に対しては、通常出力用γテーブルを適用することで色材セーブ処理を無効にする。 When the output mode is the color material save mode, the “positive character outer”, “negative character inner” or “other” pixel is selected according to the negative / positive determination result, which is the image feature detected for color material saving. The color material saving γ table is applied to the color material saving process to enable the color material saving process. For the pixels of “positive character inner periphery” or “negative character outer periphery”, the color material saving process is invalidated by applying the normal output γ table.
図10は、白地上黒文字画像(a)に対して本実施例の色材セーブ処理(色材セーブモード時のγ補正)を行った画像(b)を示す。(b)に示すポジ文字内周は色材セーブ処理が無効になるため、ポジ文字内周の濃度が保存され、可読性が維持される。 FIG. 10 shows an image (b) obtained by performing the color material saving process (γ correction in the color material save mode) of the present embodiment on the white ground black character image (a). Since the color material saving process becomes invalid in the positive character inner periphery shown in (b), the density of the positive character inner periphery is preserved, and the readability is maintained.
図11は、黒地上白文字画像(a)に対して本実施例の色材セーブ処理を行った画像(b)を示す。(b)に示すネガ文字外周は色材セーブ処理が無効になるため、ネガ文字外周においても濃度が保存され、可読性が維持される。 FIG. 11 shows an image (b) obtained by performing the color material saving process of the present embodiment on the black ground white character image (a). Since the color material saving process becomes invalid at the outer periphery of the negative character shown in (b), the density is preserved even at the outer periphery of the negative character, and the readability is maintained.
以上、本実施例によれば、ネガ文字外周において色材セーブを無効にすることで、白抜き文字の可読性を維持し、かつ、原画像の印象を大きく変えない、色材セーブモードを実現することができ、図1(c)に示すような画像が再生される。 As described above, according to the present embodiment, by disabling the color material save at the outer periphery of the negative character, the color material save mode that maintains the readability of the outline character and does not greatly change the impression of the original image is realized. The image as shown in FIG. 1C is reproduced.
なお、本実施例では、ネガ文字外周において色材セーブを無効にするようなγ補正を行っているが、無効にしないまでも色材消費量の節約度合いを小さくするようなγテーブルを使用すればこれに近い効果が期待できる。 In this embodiment, the gamma correction is performed so as to invalidate the color material save at the outer periphery of the negative character, but a gamma table that reduces the degree of saving of the color material consumption even if it is not invalidated is used. An effect close to this can be expected.
実施例2:
実施例1によると、文字よりも背景の方が高濃度であるネガ文字は常に、文字外周の濃度が保存される。ところで、ネガ文字には白色の文字だけではない、ある程度の濃度を持った文字である場合もある。比較的文字濃度が高いネガ文字に対しては、文字外周を保存するのではなく、文字内周を保存した方が、原稿の印象(文字色や文字太さ)をより損なわないことがある。
Example 2:
According to the first embodiment, the density of the outer periphery of a character is always preserved for a negative character having a higher density in the background than in the character. By the way, the negative character is not only a white character but also a character having a certain density. For negative characters with relatively high character density, storing the character inner periphery rather than storing the character outer periphery may not impair the impression (character color and character thickness) of the document.
図12は、実施例2のブロック図を示す。実施例2では、補正部25が実施例1の構成に追加されている。濃度判定部16は、実施例1と同様に「高濃度側/その他」の判定結果を出力すると同時に、本実施例では、3×3画素内の濃度最小値Min(d11,d12,d13,d21,d22,d23,d31,d32,d33)も出力する。ネガポジ判定部19の結果に対して、補正部25は、濃度最小値に基づきネガポジ判定結果を覆す補正を行う。
FIG. 12 is a block diagram of the second embodiment. In the second embodiment, a correction unit 25 is added to the configuration of the first embodiment. The
図13は、補正部25の動作フローチャートである。ネガポジ判定の結果および濃度最小値(濃度最小値は、ネガ文字における文字濃度に相当する)を入力とし、
・ネガ文字内周、かつ、濃度最小値が所定値Thより大きい場合に、「ポジ文字内周」へ判定結果を変更、
・ネガ文字外周、かつ、濃度最小値が所定値Thより大きい場合に、「ポジ文字外周」へ判定結果を変更、
・上記以外の場合は判定結果の変更なし、
とする。所定値Thは、例えネガ文字の背景が白に置き換わったとしても、文字濃度がThであれば最低限の可読性が確保できる、というレベルを目安に設定すると良い。
FIG. 13 is an operation flowchart of the correction unit 25. Input the negative / positive determination result and the minimum density value (the minimum density value corresponds to the character density in negative characters).
-If the negative character inner circumference and the minimum density value is larger than the predetermined value Th, the judgment result is changed to "Positive character inner circumference".
-If the negative character outer periphery and the density minimum value is larger than the predetermined value Th, the determination result is changed to "positive character outer periphery".
・ In other cases, there is no change in the judgment result.
And The predetermined value Th is preferably set based on a level that the minimum readability can be secured if the character density is Th even if the background of the negative character is replaced with white.
図14は、黒地上グレー文字画像(a)に対して本実施例の色材セーブ処理を行った画像(b)を示す。グレー文字の濃度がThより大きい場合、ネガ文字内周がポジ文字内周へ判定が変更され、図9に示すように、ポジ文字内周で色材セーブ処理が無効になり、原画像の文字の色情報をより残すことができる。 FIG. 14 shows an image (b) obtained by performing the color material saving process of the present embodiment on the black ground gray character image (a). When the density of the gray character is larger than Th, the judgment is changed from the inner periphery of the negative character to the inner periphery of the positive character, and as shown in FIG. More color information can be left.
以上、本実施例によれば、白抜き文字に対しては実施例1と同様の効果を発揮しつつ、比較的文字濃度の高いネガ的文字に対しても、原画像の印象を極力変えない色材セーブ画像を生成できる。 As described above, according to the present exemplary embodiment, the same effect as that of the first exemplary embodiment is exhibited for white characters, and the impression of the original image is not changed as much as possible even for negative characters having a relatively high character density. Color material save image can be generated.
実施例3:
実施例1ではネガ文字に対して文字外周の濃度を保存することで文字輪郭の濃度を保存し可読性を維持した。本実施例では、ネガ文字の文字輪郭情報を保存して可読性を維持する別の達成手段として、文字内周を背景色で置き換える方法を提示する。
Example 3:
In Example 1, the density of the outer periphery of the character is stored for the negative character, so that the density of the character outline is stored and the readability is maintained. In this embodiment, a method for replacing the inner periphery of a character with a background color is presented as another means for maintaining the readability by storing the character outline information of the negative character.
図15は、実施例3のブロック図を示す。実施例3では、膨張部26とセレクタ27が実施例1に追加されている。膨張部26では、高濃度画素を膨張する。式(4)〜式(6)に従い、rgb夫々、注目画素を3×3画素内の最小値(3×3画素内で最も暗い画素の画素値)で置き換える。
R22=Min(r11,r12,r13,r21,r22,r23,r31,r32,r33) 式(4)
G22=Min(g11,g12,g13,g21,g22,g23,g31,g32,g33) 式(5)
B22=Min(g11,g12,g13,g21,g22,g23,g31,g32,g33) 式(6)
そして、ネガポジ判定部19の判定結果によって、セレクタ27は膨張していないrgb信号か、膨張済みのRGB信号か、どちらか一方の信号を選択して色変換以降の処理へ送信する。ネガポジ判定部19がネガを判定出力したとき、セレクタ27は膨張済みのRGB信号を選択する。
FIG. 15 is a block diagram of the third embodiment. In the third embodiment, an expansion unit 26 and a selector 27 are added to the first embodiment. The expansion unit 26 expands the high density pixel. In accordance with Equations (4) to (6), each pixel rgb is replaced with the minimum value in 3 × 3 pixels (the pixel value of the darkest pixel in 3 × 3 pixels).
R22 = Min (r11, r12, r13, r21, r22, r23, r31, r32, r33) Equation (4)
G22 = Min (g11, g12, g13, g21, g22, g23, g31, g32, g33) Equation (5)
B22 = Min (g11, g12, g13, g21, g22, g23, g31, g32, g33) Equation (6)
Then, depending on the determination result of the negative /
図16は、セレクタ27およびγ補正部22における、画像特徴に応じた処理切り換えを示す。色材セーブモード設定時、かつ、ネガ文字内周のみ膨張処理を有効にし(セレクタ27で膨張済みのRGB信号を選択し)、γ補正部22ではネガポジ関係なく「文字内周」の場合に色材セーブ処理を無効にする。「文字外周」および「その他」の場合は色材セーブ処理を有効にする。
FIG. 16 shows processing switching in accordance with image characteristics in the selector 27 and the
図17は、黒地上白文字画像(a)に対して本実施例の色材セーブ処理を行った画像(c)を示す。膨張処理によって黒画素部分が膨張されて文字内周1ドットが黒画素で置き換えられ(b)、更に、(c)に示すように、ネガ文字内周以外を色材セーブすることで、背景色で置き換えられたネガ文字内周の濃度が保存されて、可読性が維持される。 FIG. 17 shows an image (c) obtained by performing the color material saving process of the present embodiment on the black ground white character image (a). The black pixel portion is expanded by expansion processing, and one dot inside the character is replaced with a black pixel (b). Further, as shown in (c), the color material other than the inner periphery of the negative character is saved as a background color. The density of the inner periphery of the negative character replaced with is saved, and the readability is maintained.
以上、本実施例によれば、ネガ文字内周を背景色で置き換えることで、白抜き文字の可読性を維持し、かつ、原画像の印象を大きく変えない、色材セーブモードを実現することができる。 As described above, according to the present embodiment, by replacing the inner periphery of the negative character with the background color, it is possible to realize the color material save mode that maintains the readability of the white character and does not greatly change the impression of the original image. it can.
また、本発明は、前述した実施例の処理手順や機能を実現するソフトウェアのプログラムコードを記録した記憶媒体を、システムあるいは装置に供給し、そのシステムあるいは装置のコンピュータ(CPUやMPU)が記憶媒体に格納されたプログラムコードを読出し実行することによっても達成される。この場合、記憶媒体から読出されたプログラムコード自体が前述した実施例の処理手順や機能を実現することになる。プログラムコードを供給するための記憶媒体としては、例えば、フレキシブルディスク、ハードディスク、光ディスク、光磁気ディスク、磁気テープ、不揮発性のメモリカード、ROMなどを用いることができる。また、コンピュータが読出したプログラムコードを実行することにより、前述した実施例の処理手順が実現されるだけでなく、そのプログラムコードの指示に基づき、コンピュータ上で稼働しているOS(オペレーティングシステム)などが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれる。さらに、記憶媒体から読出されたプログラムコードが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書込まれた後、そのプログラムコードの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれる。 The present invention also supplies a storage medium storing software program codes for realizing the processing procedures and functions of the above-described embodiments to a system or apparatus, and a computer (CPU or MPU) of the system or apparatus stores the storage medium. This can also be achieved by reading and executing the program code stored in. In this case, the program code itself read from the storage medium realizes the processing procedures and functions of the above-described embodiment. As a storage medium for supplying the program code, for example, a flexible disk, a hard disk, an optical disk, a magneto-optical disk, a magnetic tape, a nonvolatile memory card, a ROM, or the like can be used. Further, by executing the program code read by the computer, not only the processing procedure of the above-described embodiment is realized, but also an OS (operating system) running on the computer based on the instruction of the program code. Includes a case where the function of the above-described embodiment is realized by performing part or all of the actual processing. Further, after the program code read from the storage medium is written into a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer, the function expansion is performed based on the instruction of the program code. This includes a case where the CPU or the like provided in the board or the function expansion unit performs part or all of the actual processing, and the functions of the above-described embodiments are realized by the processing.
10 アプリケーション
11 プリンタドライバ
12 コマンド変換部
13 ラスタライザ
14 ラインメモリ
15 参照領域切り出し部
16 濃度判定部
17 エッジ検出部
18 文字外周/内周判定部
19 ネガポジ判定部
20 色変換部
21 墨生成/下色除去部
22 γ補正部
23 擬似中間調処理部
24 プリンタ
DESCRIPTION OF
Claims (5)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006199013A JP4883613B2 (en) | 2006-07-21 | 2006-07-21 | Image processing apparatus, image processing method, program, and recording medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006199013A JP4883613B2 (en) | 2006-07-21 | 2006-07-21 | Image processing apparatus, image processing method, program, and recording medium |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2008027190A JP2008027190A (en) | 2008-02-07 |
JP4883613B2 true JP4883613B2 (en) | 2012-02-22 |
Family
ID=39117757
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2006199013A Expired - Fee Related JP4883613B2 (en) | 2006-07-21 | 2006-07-21 | Image processing apparatus, image processing method, program, and recording medium |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4883613B2 (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013120345A (en) * | 2011-12-08 | 2013-06-17 | Oki Data Corp | Image processing device |
JP6238656B2 (en) * | 2013-09-12 | 2017-11-29 | キヤノン株式会社 | Image processing apparatus and image processing method |
JP6325847B2 (en) | 2014-03-10 | 2018-05-16 | キヤノン株式会社 | Image processing apparatus, image processing method, and program |
JP7404836B2 (en) * | 2019-12-10 | 2023-12-26 | 京セラドキュメントソリューションズ株式会社 | Information processing device and image forming device |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3406954B2 (en) * | 1995-09-21 | 2003-05-19 | キヤノン株式会社 | Image processing apparatus and control method thereof |
US5872897A (en) * | 1996-07-26 | 1999-02-16 | Lexmark International, Inc. | Method for conserving print media |
JP4537116B2 (en) * | 2003-05-14 | 2010-09-01 | キヤノン株式会社 | Image forming apparatus, cartridge, and storage device mounted on cartridge |
-
2006
- 2006-07-21 JP JP2006199013A patent/JP4883613B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2008027190A (en) | 2008-02-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4956356B2 (en) | Image processing apparatus and image processing method | |
US7667711B2 (en) | Image processing system, a method thereof, and a recording medium thereof | |
JP4793874B2 (en) | Image processing apparatus, image processing method, program, and recording medium | |
US9176935B2 (en) | Image forming apparatus capable of displaying print preview on screen | |
JP2008252699A (en) | Image processor and image processing method | |
JP4883613B2 (en) | Image processing apparatus, image processing method, program, and recording medium | |
JP2003174555A (en) | Image processing apparatus and method and recording medium | |
JP4386216B2 (en) | Color printing system and control method thereof | |
JP3667181B2 (en) | Image processing method and image processing apparatus | |
JP2008147937A (en) | Image processor and image processing method | |
JP2006050551A (en) | Image processing apparatus, image processing method, program and storage medium | |
JP2004023737A (en) | Image processing apparatus and method thereof | |
JP2016042619A (en) | Image processing apparatus, image forming apparatus, image processing method, and program | |
JP2006352633A (en) | Image processing method and its program | |
JP2004240200A (en) | Image forming apparatus | |
JP6205893B2 (en) | Image processing apparatus, image processing method, and program | |
JP6020042B2 (en) | Image processing apparatus, image processing method, program, and recording medium | |
JP2005235238A (en) | Method and apparatus of image processing and storage medium | |
JP2017135609A (en) | Image processing apparatus, image processing method, and program | |
JP2004320361A (en) | Image processor and image processing method | |
JP2001103286A (en) | Image processing method and device | |
JP5205364B2 (en) | Image forming apparatus and image forming method | |
JP2005260559A (en) | Image processor | |
JP2005252749A (en) | Information processor | |
JP2008092148A (en) | Image processor and image processing method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20090413 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20110615 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20110801 |
|
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: 20111130 |
|
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: 20111201 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20141216 Year of fee payment: 3 |
|
R151 | Written notification of patent or utility model registration |
Ref document number: 4883613 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20141216 Year of fee payment: 3 |
|
LAPS | Cancellation because of no payment of annual fees |