JP4200369B2 - Image converter - Google Patents
Image converter Download PDFInfo
- Publication number
- JP4200369B2 JP4200369B2 JP2003290865A JP2003290865A JP4200369B2 JP 4200369 B2 JP4200369 B2 JP 4200369B2 JP 2003290865 A JP2003290865 A JP 2003290865A JP 2003290865 A JP2003290865 A JP 2003290865A JP 4200369 B2 JP4200369 B2 JP 4200369B2
- Authority
- JP
- Japan
- Prior art keywords
- color
- information
- image data
- density value
- elements
- 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
Description
本発明は、3要素の色情報の入力画像データを4要素の色情報の出力画像データに変換する画像変換処理に関するものである。 The present invention relates to an image conversion process for converting input image data of three-element color information into output image data of four-element color information.
パーソナルコンピュータなどの上位処理装置から記録装置や表示装置などの出力装置に画像を表示させる場合、上位処理装置から出力される描画命令に従って描画オブジェクトを描画処理し、ビットマップイメージを生成する展開処理が行われる。この展開処理では、一般的には出力装置の解像度に合わせて展開処理を行っている。しかし、文字や線画などにおいては、通常の解像度では斜めのエッジ部にジャギーと呼ばれる凹凸が視認され、視覚的な画質の劣化を生じてしまう場合がある。このようなジャギーを低減するため、いくつかの手法が提案されている。 When displaying an image from a host processing device such as a personal computer on an output device such as a recording device or a display device, a rendering process is performed in which a drawing object is drawn according to a drawing command output from the host processing device and a bitmap image is generated. Done. In this expansion process, the expansion process is generally performed in accordance with the resolution of the output device. However, in characters and line drawings, irregularities called jaggies are visually recognized at oblique edges at normal resolution, and visual image quality may be degraded. In order to reduce such jaggy, several methods have been proposed.
その一つとして、パルス幅変調方式がある。パルス幅変調方式は、出力装置として電子写真方式を用いる場合の高解像度化の方法の一つである。具体的には、中間調のビデオデータに対し、参照する三角波の種類やしきい値などを切り替えて出力することによって、1画素における画像形成位置や面積を制御し、擬似的に解像度を向上させる技術である。例えば特許文献1などにも記載されている。
One of them is a pulse width modulation method. The pulse width modulation method is one of high resolution methods when an electrophotographic method is used as an output device. Specifically, for halftone video data, the type and threshold value of the triangular wave to be referenced is switched and output, thereby controlling the image formation position and area in one pixel and improving the resolution in a pseudo manner. Technology. For example, it is described also in
図6は、パルス幅変調方式により描画された画像の一例の拡大図である。例えば出力解像度を主/副走査線ともに2倍にするものとして1画素を4分割し、そのいずれの位置に描画を行うかを濃度やエッジの方向などに応じて選択し、画像形成を行う。具体例として、図6(A)に示すように文字や線画の斜め線が存在する場合、そのままでは階段状の凹凸が視認されやすい。ここでパルス変調方式を用いることによって、図6(B)に示すように1画素以下(ここでは1/4)の画像形成を行うことによって、階段状の部分の凹凸を小さくして視覚的になめらかな斜め線を形成する。 FIG. 6 is an enlarged view of an example of an image drawn by the pulse width modulation method. For example, assuming that the output resolution is doubled for both the main and sub scanning lines, one pixel is divided into four, and at which position drawing is selected according to the density, the direction of the edge, and the like, and image formation is performed. As a specific example, as shown in FIG. 6 (A), when there are diagonal lines of characters or line drawings, stair-like irregularities are easily visually recognized. Here, by using the pulse modulation method, as shown in FIG. 6B, by forming an image of one pixel or less (in this case, 1/4), the unevenness of the stepped portion is reduced visually. A smooth diagonal line is formed.
図7は、パルス幅変調方式を適用した場合の白抜けへの対応の説明図である。上述のようなパルス幅変調方式を用いる場合、背景色上に黒の文字や線画を描画すると、上述のように4分割するなどにより高解像度で画像形成する画素については黒の画素として処理されてしまうため、1画素の領域のうち画像形成された領域以外の部分が白く抜けてしまうという問題がある。例えば図7(A)に示した例では、中央の画素において右下の1/4を黒で画像形成しているが、残りの3/4の領域は白抜けを起こしてしまう。この白抜けが原因となり、文字そのものの画質は向上しても、ページ全体で見た場合に画質が劣化してしまう場合がある。 FIG. 7 is an explanatory diagram of correspondence to white spots when the pulse width modulation method is applied. When the pulse width modulation method as described above is used, when a black character or line drawing is drawn on the background color, pixels that form an image with high resolution by being divided into four as described above are processed as black pixels. Therefore, there is a problem that a part other than the area where the image is formed out of one pixel area is white. For example, in the example shown in FIG. 7A, the lower right quarter of the center pixel is imaged in black, but the remaining 3/4 area is blanked. Even though the image quality of the character itself is improved due to the white spots, the image quality may deteriorate when viewed on the entire page.
このような不具合を解消するため、1画素のうち1/4のいずれの位置を描画するかを示した形状情報とともに、背景の色を残すことが考えられている。そして、黒色については形状情報で示されたパターンで擬似的に高解像度で画像形成するとともに、他の色については背景色による画像形成を行う。これによって図7(B)に示すように擬似的に高解像度で画像形成した画素についても白抜けを防止することができ、印字装置において高画質の画像を形成することができる。なお、このような白抜けの防止処理については、例えば特許文献2等に記載されている。
In order to solve such a problem, it is considered to leave the background color together with shape information indicating which position of 1/4 of one pixel is drawn. Then, for black, an image is formed in a pseudo high resolution with the pattern indicated by the shape information, and for other colors, an image is formed using the background color. As a result, as shown in FIG. 7B, it is possible to prevent white spots even for pixels formed with a pseudo high-resolution image, and a high-quality image can be formed in the printing apparatus. Such white-out prevention processing is described, for example, in
このようなパルス変調方式による高解像度化の処理は、上述のようにレーザダイオードや発光ダイオードなどの光源の駆動制御時に参照する三角波の種類やしきい値などを切り替えて出力するための処理である。すなわち、画像形成エンジンに依存した処理であるため、画像形成エンジンに画像データを送出する直前に行われる場合が多い。一般に画像形成エンジンに画像データを送出する場合には、画像形成に用いるイエロー(Y)、マゼンタ(M)、シアン(C)、ブラック(K)などの4要素の色情報を面順次で送出する。そのため、上述のような高解像度化の処理は面順次の4要素の色情報からなる画像データに対して行われるのが一般的であった。 Such high-resolution processing by the pulse modulation method is processing for switching and outputting the type of triangular wave, threshold value, and the like that are referred to during drive control of a light source such as a laser diode or a light-emitting diode as described above. . That is, since the process depends on the image forming engine, it is often performed immediately before sending image data to the image forming engine. In general, when image data is sent to an image forming engine, color information of four elements such as yellow (Y), magenta (M), cyan (C), and black (K) used for image formation is sent in frame sequential order. . For this reason, the above-described high resolution processing is generally performed on image data composed of four-element color sequential color information.
しかし、上述のようなパルス変調方式による高解像度化の処理を行うためには、Kの要素のみを参照すればよいわけではなく、他の3要素やタグ情報なども参照して行われる。例えば、ある画素が黒い部分であるか否かは、黒以外の他の3要素が0であるか否かなども参照することになる。面順次の画像データを処理対象としてこのような画素毎の処理を行おうとすると、それぞれの要素ごとに別の面(プレーン)を参照することになるため、メモリへのアクセス回数が多くなり、処理に時間がかかるという問題があった。
本発明は、上述した事情に鑑みてなされたもので、3要素の色情報の入力画像データから4要素の色情報の出力画像データへの変換を高速に行うとともに、高画質で画像形成可能な出力画像データを生成する画像変換装置を提供することを目的とするものである。 The present invention has been made in view of the above-described circumstances, and can perform high-speed image conversion while rapidly converting input image data of three-element color information into output image data of four-element color information. It is an object of the present invention to provide an image conversion apparatus that generates output image data.
本発明は第1の解像度で点順次で3要素の色情報を有するとともに少なくとも所定の画像部分について前記第1の解像度よりも高い第2の解像度で前記画像部分の形状を表現した形状情報を有する入力画像データを4要素の色情報を有する面順次の出力画像データに変換する画像変換装置において、前記入力画像データの3要素の色情報を4要素の色情報に変換して点順次で4要素の色情報及び前記形状情報を有する中間画像データを生成する色空間変換手段と、前記中間画像データ中の前記形状情報に従って前記色空間変換手段で変換した後の色情報のうちの1色の要素について前記形状情報に対応した値に変換するとともに前記4要素のうちの前記1色の要素を除く3色の要素の濃度値と予め定められた閾値との比較結果に応じて前記3色の要素の濃度値を補正する補正手段と、前記補正手段で補正した後の点順次の中間画像データを面順次の出力画像データに変換する点面変換手段を有することを特徴とするものである。 The present invention has color information of three elements dot-sequentially at the first resolution and has shape information representing the shape of the image portion at a second resolution higher than the first resolution for at least a predetermined image portion. In an image conversion apparatus for converting input image data into field-sequential output image data having four-element color information, the three-element color information of the input image data is converted into four-element color information to generate four-element dot-sequential information. Color space conversion means for generating intermediate image data having the color information and the shape information, and one color element of the color information after being converted by the color space conversion means in accordance with the shape information in the intermediate image data Is converted into a value corresponding to the shape information and the density value of the three color elements excluding the one color element out of the four elements is compared with a predetermined threshold value according to the 3 And a point plane conversion unit for converting the dot sequential intermediate image data corrected by the correction unit into frame sequential output image data. .
このとき補正手段による補正処理は、比較結果について、前記4要素のうち前記1色の要素を除く3色の要素の濃度値が、予め定められた閾値以上である場合は、前記3色の要素の濃度値を前記閾値の濃度値とする補正を行い、予め定められた閾値より小さい場合は、前記3色の要素の濃度値を前記色空間変換手段から得た前記3色の要素の色情報とする補正を行う
ように構成することができる。
At this time, the correction process by the correction means is performed when the density value of the three color elements excluding the one color element among the four elements is equal to or greater than a predetermined threshold. If the density value of the three colors is smaller than a predetermined threshold value, the density information of the three color elements obtained from the color space conversion means is obtained. It can be configured to perform the correction as follows.
また補正手段による補正処理は、さらに、前記色空間変換手段で変換した後の色情報のうちの前記1色の要素の濃度値と、前記形状情報に対応付けられた濃度値との第2の比較結果に応じて、前記1色の要素の濃度値を補正することができる。この場合、第2の比較結果について、前記色空間変換手段で変換した後の色情報のうちの前記1色の要素の濃度値が、前記形状情報に対応付けられた濃度値より小さい場合は、前記1色の要素の濃度値を前記形状情報に対応付けられた濃度値とする補正を行い、前記形状情報に対応付けられた濃度値以上である場合は、前記1色の要素の濃度値を前記色空間変換手段で得られた色情報とする補正を行うように構成することができる。 Further, the correction process by the correction unit further includes a second value between the density value of the element of the one color in the color information converted by the color space conversion unit and the density value associated with the shape information. According to the comparison result, the density value of the element of one color can be corrected. In this case, for the second comparison result, when the density value of the element of one color of the color information after being converted by the color space conversion unit is smaller than the density value associated with the shape information, When the density value of the one color element is corrected to the density value associated with the shape information, and the density value is equal to or higher than the density value associated with the shape information, the density value of the one color element is The color space obtained by the color space conversion means can be corrected.
本発明によれば、点順次の画像データのままで、色空間変換とともに、高解像度化のための補正処理を行うので、高速に補正処理を行うことができ、ひいては画像変換処理全体の処理時間を短縮させることができるという効果がある。 According to the present invention, the correction processing for increasing the resolution is performed together with the color space conversion while maintaining the dot sequential image data, so that the correction processing can be performed at a high speed, and consequently the processing time of the entire image conversion processing. There is an effect that can be shortened.
また、上述の図7でも説明したように高解像度化の処理時に背景色を残すと白抜けを防止することができるが、背景色が濃い場合には文字や細線が太って見える場合がある。これを防止するため、例えばブラックK以外の3色について閾値で制限している。これによって、高画質で画像形成を行うことができる。また、グレーの背景中に黒の文字や線画を描画すると、文字や線画のエッジ部で白抜けを起こす場合がある。この白抜けは、背景のグレーが濃い場合に顕著となる。これを防止するため、ブラックKについても背景のグレーとの比較によって補正処理前後の値を選択できるようにしている。例えば背景のグレーが濃く、エッジ部の描画面積が小さい場合には背景色で描画することにより、見かけ上の白抜けを防止することができるという効果がある。 Further, as described with reference to FIG. 7 described above, white background can be prevented by leaving a background color during high resolution processing. However, when the background color is dark, characters and fine lines may appear thick. In order to prevent this, for example, three colors other than black K are limited by threshold values. As a result, image formation can be performed with high image quality. In addition, when a black character or line drawing is drawn on a gray background, white spots may occur at the edge of the character or line drawing. This white spot becomes noticeable when the background gray is dark. In order to prevent this, the value before and after the correction process can be selected for black K by comparing with the background gray. For example, when the background gray is dark and the drawing area of the edge portion is small, drawing with the background color has an effect of preventing apparent white spots.
図1は、本発明の実施の一形態を示すブロック構成図、図2は、画像データのフォーマットの一例の説明図である。図中、1は色空間変換部、2はグレイ補正部、3は点面変換部である。なお、入力画像データは、例えばレッド(R)、グリーン(G)、ブルー(B)の3要素の色情報を有する点順次の画像データである。図2(A)に入力画像データの1画素分のデータフォーマットを示している。点順次のデータであるので、1画素分のデータ中に3要素の値が格納される。図中の要素1〜3の色情報には、例えばR、G、Bの値がそれぞれ格納されることになる。
FIG. 1 is a block diagram illustrating an embodiment of the present invention, and FIG. 2 is an explanatory diagram of an example of a format of image data. In the figure, 1 is a color space conversion unit, 2 is a gray correction unit, and 3 is a point plane conversion unit. The input image data is dot-sequential image data having color information of three elements, for example, red (R), green (G), and blue (B). FIG. 2A shows a data format for one pixel of the input image data. Since the data is dot sequential, three element values are stored in one pixel of data. In the color information of
そのほかに、オブジェクト情報、形状情報などが含まれている。オブジェクト情報は、当該画素がどのような属性、例えば写真部分であるのか、図形部分であるのか、文字部分であるのかといった情報を含んでいる。この属性には、形状情報を有する場合の属性も含まれている。オブジェクト情報として形状情報を含む属性が設定されている場合、次の形状情報のフィールドに当該画素の形状情報が格納される。例えば上述のパルス変調方式を用いる場合には、通常の解像度(第1の解像度)よりも高解像度(第2の解像度)で画像を形成する際に1画素中の画像を形成する位置を示す必要がある。このための情報が形状情報である。 In addition, object information, shape information, and the like are included. The object information includes information such as what attribute the pixel is, for example, whether it is a photographic part, a graphic part, or a character part. This attribute includes an attribute in the case of having shape information. When an attribute including shape information is set as the object information, the shape information of the pixel is stored in the next shape information field. For example, in the case of using the above-described pulse modulation method, it is necessary to indicate a position where an image is formed in one pixel when an image is formed with a higher resolution (second resolution) than a normal resolution (first resolution). There is. Information for this is shape information.
なお、図2(A)に示したデータフォーマットは一例であり、例えば他の情報が付加されていたり、並び順が異なるなど、変形が可能である。また、各フィールドの幅も任意である。 Note that the data format shown in FIG. 2A is an example, and can be modified, for example, by adding other information or by changing the arrangement order. The width of each field is also arbitrary.
色空間変換部1は、上述のような点順次の3要素の色情報を有する入力画像データを受け取り、その入力画像データの各画素について3要素の色情報を4要素の色情報に変換して中間画像データを生成する。変換する4要素の色情報としては、出力画像データを用いて画像を形成する画像形成装置に応じた色情報とすることができ、例えばC、M、Y、Kの4要素の色情報とすることができる。色空間変換部1で用いる変換アルゴリズムは任意である。例えば変換時に入力画像データ中のオブジェクト情報を参照し、それぞれの画素の属性に対応したパラメータを用いて変換処理を行うことができる。
The color
色空間変換部1で生成される中間画像データのフォーマットは、上述の入力画像データとほぼ同様とすることができる。その一例を図2(B)に示している。例えば色空間変換部1がYMCKの4要素に変換する場合、図中の要素1’〜4’の色情報には、Y、M、C、Kの値がそれぞれ格納されることになる。この時点では、Kの値は色空間変換部1で変換した後の濃度値が格納されている。
The format of the intermediate image data generated by the color
グレイ補正部2は、色空間変換部1で生成された点順次の中間画像データを受け取り、当該画素が形状情報を有する属性の場合には、形状情報に従って特にブラックについて高解像度化のための補正処理を行う。この補正処理によって、必要に応じてブラックの要素の値を変更する。
The
図3は、高解像度化の処理によって形成される1画素中の画像形成位置のパターンの一例の説明図である。ここでは通常の解像度を主/副走査線ともに2倍にするものとして1画素を4分割し、そのいずれの位置を濃度に応じて選択し、画像形成を行うものとしている。この場合、画像形成位置のパターンとしては、図示した16個のパターンとなる。それぞれのパターンの下部に数値を示しているが、この数値がパターンを特定するコードとなる。それとともに、階調数を256階調とした場合の各パターンの概略の濃度を示している。例えば1/4のみを画像形成するパターンでは、濃度としても1/4程度であるから、62〜65の値が割り当てられている。他のパターンについても同様である。グレイ補正部2は、これらの値を図2(B)に示すデータフォーマット中のブラックの要素の値として設定する。
FIG. 3 is an explanatory diagram showing an example of a pattern of image forming positions in one pixel formed by the resolution enhancement process. Here, assuming that the normal resolution is doubled for both the main / sub scanning lines, one pixel is divided into four, and any one of the positions is selected according to the density to form an image. In this case, the pattern of image forming positions is the 16 patterns shown in the figure. A numerical value is shown at the bottom of each pattern, and this numerical value is a code for specifying the pattern. In addition, the schematic density of each pattern when the number of gradations is 256 gradations is shown. For example, in a pattern in which only 1/4 is formed, since the density is about 1/4, a value of 62 to 65 is assigned. The same applies to other patterns. The
またグレイ補正部2は、このブラックの要素に対する高解像度化のための補正処理に伴って、背景となる他の3色(YMC)の要素についても補正処理を行う。例えば3色の要素の値が予め定めた閾値以上である時には、3色の要素の値を閾値に制限するように処理を行うことができる。これにより、黒文字や黒の細線のエッジ部に高濃度の背景が形成されることによって、線が見かけ上太くなって見えるという不具合を解消することができる。
The
さらに、グレイの背景上に黒文字や黒の線画を描画した時にエッジ部に発生する白抜けを防止するため、高解像度化の処理によって得られたブラックの値と色空間変換部1で得られたブラックの値を比較して、例えばいずれか大きい値を選択するように構成することができる。例えば色空間変換部1から出力されたブラックの値が高解像度化の処理結果よりも大きい場合には、色空間変換部1から出力されたブラックの値を選択する。この場合、形状情報は使用しない。また、高解像度化の処理結果の方が、色空間変換部1から出力されたブラックの値よりも大きい場合には、高解像度化の処理結果を選択すればよい。
Furthermore, the black value obtained by the high-resolution processing and the color
なお、グレイ補正部2から次の点面変換部3に渡される中間画像データのデータフォーマットは、ほぼ図2(B)に示すフォーマットと同様であるが、形状情報が必要な場合にはブラックの要素の値として色情報のフィールドに形状情報を格納したので、形状情報のためのフィールドは設ける必要はない。
Note that the data format of the intermediate image data passed from the
点面変換部3は、グレイ補正部2で補正処理を行った後の点順次の中間画像データを、面順次の出力画像データに変換する。出力画像データのデータフォーマットを図2(C)に示している。この例では、それぞれの画素のそれぞれの要素に対してオブジェクト情報を付加したデータフォーマットとしている。面順次の画像データでは、図中、破線で示したようにそれぞれの色要素毎に画素のデータが並ぶことになる。また、出力画像データにおいても、形状情報が必要な場合にはブラックのプレーンに形状情報が格納されているので、形状情報のためのフィールドは設けられていない。
The point
ここではそれぞれの色要素毎にオブジェクト情報を付加したが、これに限らず、オブジェクト情報のみのプレーンを生成し、4色の要素毎に生成される4つのプレーンとともに5つのプレーンで構成することもできる。 Here, object information is added for each color element. However, the present invention is not limited to this, and a plane including only object information may be generated and configured with five planes together with four planes generated for each four-color element. it can.
なお、点面変換部3から出力される出力画像データは、一般的には画像形成エンジンなどに入力される。画像形成エンジンでは、出力画像データを用いて画像を形成するが、その画像形成方法については任意である。例えば高解像度化された画像部分については通常の解像度よりも高解像度で画像形成する機能を有している必要があるが、従来の三角波などの参照波を用いたパルス変調方式に限られるものではない。例えば、画像形成エンジン自体の解像度が本発明の画像変換装置における通常の解像度よりも高解像度での出力が可能な場合もあり、そのような場合には、画像形成エンジンの能力を活かした高解像度の画像形成が可能である。
The output image data output from the point
次に、本発明の実施の一形態における動作の一例について説明する。3要素の色情報を有する点順次の入力画像データが色空間変換部1に入力されると、3要素の色情報から4要素の色情報に変換し、4要素の色情報を有する点順次の中間画像データを生成する。ここでは一例として、変換後の4要素の色がYMCKであるものとして説明する。
Next, an example of the operation in the embodiment of the present invention will be described. When dot-sequential input image data having three-element color information is input to the color
グレイ補正部2は、色空間変換部1で生成された中間画像データを受け取ると、画素毎に以下の処理を行う。図4は、グレイ補正部2における1画素に対する処理の一例を示すフローチャートである。まずS11において、中間画像データ中のオブジェクト情報を参照し、形状情報を有する属性の画素であるか否かを判定する。形状情報を有していない属性の画素である場合には、S12において、グレイ補正部2における補正処理を行わず、当該画素の処理を終える。この場合、色空間変換部1で生成された中間画像データのオブジェクト情報及び4色の色情報による点順次の画像データが点面変換部3へ渡される。
When the
形状情報を有する属性の画素である場合には、S13において、ブラック以外のYMCがいずれも0、すなわち、色情報YMCK=[0,0,0,Kx](Kxの値は任意)であるか否かを判定する。このYMCがいずれも0である画素とは、背景色を持たない画素のことである。なお、色空間変換部1から渡されたブラックの要素の値を以下の説明でもKxとする。
If the pixel has an attribute having shape information, whether or not YMC other than black is 0 in S13, that is, color information YMCK = [0, 0, 0, Kx] (the value of Kx is arbitrary) Determine whether or not. A pixel whose YMC is all 0 is a pixel having no background color. The value of the black element passed from the color
YMCの値がいずれも0であった場合には、S14において、ブラックの要素の値を変換する。変換後のブラックの要素の値をKsとする。この変換処理は任意であるが、ここでは高解像度化のための変換処理であるものとし、色空間変換部1から受け取った中間画像データ中の形状情報をもとに上述の図3に示したパターンのいずれに該当するかを判断し、そのパターンに対応する値をKsとする。この場合、背景色となるYMCは0であるので、YMCに対しては変換処理を行わない。
If the values of YMC are all 0, the value of the black element is converted in S14. Let Ks be the value of the black element after conversion. This conversion process is optional, but here it is assumed to be a conversion process for increasing the resolution, and is shown in FIG. 3 based on the shape information in the intermediate image data received from the color
S13でYMCのいずれかが0ではないと判断され、背景色が存在する(色情報YMCK=[Yx,Mx,Cx,Kx](Yx、Mx、Cx、Kxの値は任意))場合には、S15において、S14と同様にブラックの要素の値を変換し、Ksを得る。S16において、S15で得たKsを参照し、1画素すべてを形成するパターンであるか否かを判定する。例えば図3に示すパターンの場合には、右下の値255のパターンであるか否かを判定する。図5は、形状パターンと画像との対応の具体例の説明図である。S15で得られた変換後のブラックの値Ksが、1画素すべてを形成するパターンであるとは、例えば図5において点P1として示したように、黒文字や黒の線分の内部であることが考えられる。
If it is determined in S13 that any of YMC is not 0 and a background color exists (color information YMCK = [Yx, Mx, Cx, Kx] (values of Yx, Mx, Cx, Kx are arbitrary)) In S15, the value of the black element is converted in the same manner as in S14 to obtain Ks. In S16, referring to Ks obtained in S15, it is determined whether or not the pattern forms all the pixels. For example, in the case of the pattern shown in FIG. 3, it is determined whether or not the pattern has the
S15で得られた変換後のブラックの値Ksが1画素すべてを形成するパターンを示している場合、ブラックによって1画素すべてが塗りつぶされるため、背景色があってもその背景色が視認されることはほとんどない。そのため、S17において、YMCの値を予め決めておいた固定値[Yy,My,Cy]とし、中間画像データの対応するフィールドを変更する。なお、固定値としては、出力画像データを受け取る画像形成エンジンにもよるが、例えば4要素の色情報の合計に対して制限が課せられる場合もある。このような種々の条件を考慮して固定値を決定しておけばよい。もちろん固定値として0としてもよい。 If the converted black value Ks obtained in S15 indicates a pattern that forms all one pixel, all the pixels are filled with black, so that the background color is visible even if there is a background color. There is almost no. Therefore, in S17, the YMC value is set to a predetermined fixed value [Yy, My, Cy], and the corresponding field of the intermediate image data is changed. The fixed value depends on the image forming engine that receives the output image data, but there may be a limit imposed on the total of the color information of four elements, for example. The fixed value may be determined in consideration of such various conditions. Of course, it may be 0 as a fixed value.
S16でKsが示すパターンが1画素すべてを形成するパターンではないと判断された場合は、図5において点P2として示したように黒文字や黒の線分のエッジ部の場合である。エッジ部においては、背景技術において述べたように、ブラックのパターンのみでは白抜けが発生するため、背景色についても形成されるように画像データを生成する。しかしこのとき、背景色の濃度が高いとブラックの線が太く見えてしまうという問題がある。そのためS18において、背景色を示すY、M、Cの値が濃いか否かを判定する。具体例としては、色空間変換部1から出力されたY、M、Cの値[Yx,Mx,Cx]が閾値[Yz,Mz,Cz]以上であるか否かを判定し、背景色が濃い場合と薄い場合とで処理を分けている。なお、このとき用いる閾値については、特開2000−232590号公報に記載されている不具合の解消およびその方法に基づいて設定するなど、高画質印字に最適な値を設定しておくことができる。また、この閾値との判定は、Y、M、Cのすべてが閾値以上であり、黒に近い場合に背景色が濃いと判定するほか、Y、M、Cのいずれかが閾値以上であれば背景色が濃いと判定するなど、背景色の濃さに関する判定条件は任意に定めることができる。
If it is determined in S16 that the pattern indicated by Ks is not a pattern that forms all one pixel, this is the case of an edge portion of a black character or a black line segment as indicated by a point P2 in FIG. In the edge portion, as described in the background art, since white spots occur only in the black pattern, the image data is generated so that the background color is also formed. However, at this time, there is a problem that if the background color density is high, the black line looks thick. Therefore, in S18, it is determined whether or not the values of Y, M, and C indicating the background color are dark. As a specific example, it is determined whether or not the values [Yx, Mx, Cx] of Y, M, and C output from the color
S18で背景色が濃いと判定された場合には、S19において、背景色を抑える処理を行う。具体例として、ここではY、M、Cの値を、S18の判定で用いた閾値[Yz,Mz,Cz]とし、中間画像データのそれぞれのフィールドを書き換える。これによって背景色は閾値で抑えられ、黒文字や黒の線画が濃い背景によって太く見えると言った不具合を解消することができる。 If it is determined in S18 that the background color is dark, processing for suppressing the background color is performed in S19. As a specific example, here, the values of Y, M, and C are set to the threshold values [Yz, Mz, Cz] used in the determination of S18, and the respective fields of the intermediate image data are rewritten. As a result, the background color is suppressed by the threshold value, and it is possible to solve the problem that black characters and black line drawings appear thick due to the dark background.
またS18で背景色が薄いと判定された場合には、そのまま背景色を用いても不具合の発生は比較的少ないので、S20において、色空間変換部1から得たY、M、Cの値[Yx,Mx,Cx]をそのまま用いる。
If it is determined in S18 that the background color is light, the occurrence of problems is relatively small even if the background color is used as it is, so that the values of Y, M, and C obtained from the color
このようにしてブラックの要素の変換後の値KsとYMCに対して必要に応じて補正を加えた値が得られたら、最後にブラックの変換後の値Ksをブラックの要素の値として用いるか否かを判定する。上述の特許文献1に記載されているように、グレイの背景に黒文字や黒の線画を形成する場合には、高解像度化の処理を行った時にエッジ部に白抜けを生じることがある。特に、背景が濃いグレイであって、高解像度化の処理によって1画素中に形成される領域が小さい場合に、そのような不具合が発生しやすい。
When a value obtained by correcting the black element converted value Ks and YMC as necessary is obtained in this way, the black converted value Ks is finally used as the black element value. Determine whether or not. As described in
このような不具合を防止するため、S21において、S14やS15で得られたブラックの高解像度化の変換処理後の値Ksと、色空間変換部1から得られたブラックの要素の値Kxとを比較する。なお、値Ksは例えば図3に示したいずれかのパターンを示す値であり、また値Kxはブラックの濃度を示す値であり、性質が異なる値である。しかし上述のように値Ksはそれぞれのパターンに対応する濃度に応じて対応付けがなされているので、値Ksをそのまま濃度として用いることが可能である。
In order to prevent such a problem, in S21, the value Ks obtained after the conversion processing for increasing the black resolution obtained in S14 or S15 and the value Kx of the black element obtained from the color
そして、値Ksの方が値Kxよりも大きい場合には、S22において、高解像度化のための変換処理後の値Ksをブラックの要素の値として選択し、中間画像データのブラックのフィールドに設定する。また、値Kxが値Ks以上であれば色空間変換部1から得られたブラックの要素の値Kxをそのまま用いることとする。この場合、値Kxは形状情報を表していないので、オブジェクト情報中の属性を、形状情報を用いない属性に変更しておく。これによって、濃いグレーの背景中に白抜けが発生する部分を、背景色で埋めることによって白抜けを防止することができる。
If the value Ks is larger than the value Kx, the converted value Ks for high resolution is selected as the black element value in S22 and set in the black field of the intermediate image data. To do. If the value Kx is equal to or greater than the value Ks, the black element value Kx obtained from the color
このようにして、グレイ補正部2における処理を終了する。上述のようなグレイ補正部2の処理は、ブラックのみならず、他の色要素(YMC)についても参照する。従来のように面順次の画像データではそれぞれの色要素のプレーンをアクセスするため、オブジェクト情報や形状情報などを含めると5回以上のメモリアクセスが必要であり、非常に時間がかかる処理であった。しかし本発明では、図2(B)に示すような点順次の画像データであるため、1画素のYMCKの色情報及びオブジェクト情報、形状情報などを含めても1回あるいは2回程度のメモリアクセスで済む。そのため、処理を高速に実行することができる。また入力画像データを直接受け取る場合でも、面順次の画像データのように各プレーンを記憶しておかなくても、点順次の画像データを1画素分受け取った順に処理を行うことができ、データの流れに沿って処理を行ってゆくことができ、高速な処理が可能である。逆に、このようにブラック以外の色要素を用いた処理を行っても、処理速度の低下を起こさずに処理を行うことが可能である。
In this way, the processing in the
なお、点面変換部3へ渡す点順次の中間画像データとしては、形状情報のフィールドは不要となるので、この時点で削除しておくことができる。
Note that the point-sequential intermediate image data passed to the point
グレイ補正部2より出力された4要素、点順次の中間画像データは点面変換部3に入力され、図2(C)に示したような4要素の面順次の出力画像データとなるように情報の組み替えが行われ、各要素の情報とオブジェクト情報を合わせて出力画像データが生成され、出力される。
The four-element dot-sequential intermediate image data output from the
生成された出力画像データは、例えば画像形成エンジンなどに渡され、出力画像データに応じた画像形成が行われる。このとき、オブジェクト情報として形状情報を有する属性が設定されている場合には、ブラックのプレーンの値については例えば図3に示したパターンとして解釈され、高解像度での画像形成が行われることになる。このとき、背景色についてもグレイ補正部2において補正処理を行っているため、ブラックについて高解像度での画像形成を行った画素についても白抜けを起こすことなく、高画質の画像を得ることができる。また、背景色の濃度が抑えられているので、黒文字や黒の線画が太って見えるようなこともない。さらに、濃いグレー部での黒文字や黒の線画のエッジ部で白抜けを起こす不具合に対しても、そのような画素については予め背景色で画像形成が行われるように補正しているので、不具合を回避することができる。このように、全体として高画質の画像を得ることが可能である。
The generated output image data is transferred to, for example, an image forming engine, and image formation according to the output image data is performed. At this time, when an attribute having shape information is set as the object information, the value of the black plane is interpreted as the pattern shown in FIG. 3, for example, and high-resolution image formation is performed. . At this time, since the background color is also corrected by the
なお、上述の説明中、具体的な色要素として、RGB及びYMCKの場合を示した。しかし本発明はこれに限定されるものではないことは言うまでもない。 In the above description, RGB and YMCK are shown as specific color elements. However, it goes without saying that the present invention is not limited to this.
1…色空間変換部、2…グレイ補正部、3…点面変換部。
DESCRIPTION OF
Claims (6)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003290865A JP4200369B2 (en) | 2003-08-08 | 2003-08-08 | Image converter |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003290865A JP4200369B2 (en) | 2003-08-08 | 2003-08-08 | Image converter |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2005064759A JP2005064759A (en) | 2005-03-10 |
JP4200369B2 true JP4200369B2 (en) | 2008-12-24 |
Family
ID=34368756
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2003290865A Expired - Fee Related JP4200369B2 (en) | 2003-08-08 | 2003-08-08 | Image converter |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4200369B2 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4636145B2 (en) * | 2008-09-03 | 2011-02-23 | 富士ゼロックス株式会社 | Image processing apparatus and program |
JP6152310B2 (en) * | 2013-06-28 | 2017-06-21 | 理想科学工業株式会社 | Image forming apparatus |
-
2003
- 2003-08-08 JP JP2003290865A patent/JP4200369B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2005064759A (en) | 2005-03-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5615312A (en) | Color management system having business graphics rendering mode | |
US7706022B2 (en) | Image forming apparatus and image forming method | |
JP4956356B2 (en) | Image processing apparatus and image processing method | |
US20040239958A1 (en) | Method of preparing bit map | |
JP5031694B2 (en) | Image processing apparatus, image processing method, and computer-readable recording medium storing program for executing the method | |
JP4882626B2 (en) | Image processing apparatus, image forming apparatus, and program | |
JP2009172970A (en) | Image processing apparatus, image processing method, program and recording medium | |
JP2007312010A (en) | Image processor, image processing method, and program | |
JP4200369B2 (en) | Image converter | |
US10949720B2 (en) | Converting image data resolution using different coefficients depending on whether a target pixel constitutes a predetermined dot | |
JP3362674B2 (en) | Image processing apparatus and image processing method | |
JP2007050708A (en) | Image processor and printer | |
WO2020129778A1 (en) | Image processing device, method of controlling image processing device, and program | |
US8682070B2 (en) | Method to restore edges in rasterized images | |
JPH05268465A (en) | Method and device for post-processing image data context-sensitively | |
US7443538B2 (en) | Method of controlling printed line quality | |
JP2005252911A (en) | Image processing method and image processor | |
JP2004240200A (en) | Image forming apparatus | |
JP2004334533A (en) | Image processing device and method | |
JP2004320361A (en) | Image processor and image processing method | |
JP2010263313A (en) | Image processing apparatus, image forming apparatus, image processing method, computer program, and recording medium | |
JP4863846B2 (en) | Color image forming apparatus and color image processing apparatus | |
JP3775458B2 (en) | Image processing apparatus and image smoothing method | |
JP3659016B2 (en) | Color image processing device | |
JP4126827B2 (en) | Image forming apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20060724 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20080501 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20080507 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20080702 |
|
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: 20080910 |
|
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: 20080923 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20111017 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121017 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121017 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20131017 Year of fee payment: 5 |
|
LAPS | Cancellation because of no payment of annual fees |