JP5747553B2 - Image processing system and program - Google Patents
Image processing system and program Download PDFInfo
- Publication number
- JP5747553B2 JP5747553B2 JP2011036914A JP2011036914A JP5747553B2 JP 5747553 B2 JP5747553 B2 JP 5747553B2 JP 2011036914 A JP2011036914 A JP 2011036914A JP 2011036914 A JP2011036914 A JP 2011036914A JP 5747553 B2 JP5747553 B2 JP 5747553B2
- Authority
- JP
- Japan
- Prior art keywords
- gradation
- image
- scanning direction
- area
- dither
- 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
- 239000011159 matrix material Substances 0.000 claims description 27
- 238000001514 detection method Methods 0.000 claims description 11
- 230000006870 function Effects 0.000 claims 1
- 238000000034 method Methods 0.000 description 20
- 238000010586 diagram Methods 0.000 description 5
- 238000009877 rendering Methods 0.000 description 5
- 238000004891 communication Methods 0.000 description 1
Images
Landscapes
- Color, Gradation (AREA)
- Image Processing (AREA)
- Facsimile Image Signal Circuits (AREA)
Description
本発明は、画像処理システム及びプログラムに関する。 The present invention relates to an image processing system and a program.
下記特許文献1には、階調値のパターン画像として、その階調値でディザマトリクスの領域を塗りつぶした画像を予め生成する手法が記載されている。 Japanese Patent Application Laid-Open No. 2005-228561 describes a method of generating in advance an image in which a dither matrix area is filled with a gradation value as a gradation value pattern image.
本発明の目的は、主走査方向の位置に応じて階調が変化する領域を含む画像にディザ処理を施した二値画像を描画する場合における、処理負荷の軽減を図ることである。 An object of the present invention is to reduce the processing load in the case of drawing a binary image obtained by performing dither processing on an image including a region where the gradation changes according to the position in the main scanning direction.
上記課題を解決するための請求項1の発明は、ページ記述言語で記載された画像情報に基づいて、出力対象の画像をディザマトリクスで二値化したディザ画像を記憶手段に描画する描画手段と、前記記憶手段に描画されたディザ画像を出力する出力手段と、を含み、前記描画手段は、主走査方向に平行であり、且つ、前記主走査方向に垂直な副走査方向の幅が、前記ディザマトリクスの前記副走査方向の幅である基準距離より大きく、且つ、前記主走査方向の位置に応じて階調が変化する矩形形状のグラデーション領域の存在を、前記画像情報に基づき、前記出力対象の画像に対応する画像領域のうちで検知する検知手段と、前記検知手段が前記グラデーション領域の存在を検知した場合に、前記グラデーション領域のうちの一部の矩形形状の領域であって、前記副走査方向の幅が前記基準距離であり且つ前記主走査方向の幅が前記グラデーション領域と同じである一部領域、のディザ画像を生成する生成手段と、前記生成手段により生成されたディザ画像に基づいて、前記グラデーション領域のディザ画像を前記記憶手段に描画するグラデーション描画手段と、を含むこと画像処理システムである。
The invention according to
また、請求項2の発明は、請求項1の発明において、前記ディザマトリクスに含まれる第1の閾値と、前記ディザマトリクスに含まれる、前記第1の閾値から前記副走査方向に前記基準距離離れた位置にある第2の閾値と、は同じであることを特徴とする。 According to a second aspect of the present invention, in the first aspect of the invention, the first threshold included in the dither matrix and the reference distance in the sub-scanning direction from the first threshold included in the dither matrix. The second threshold value at the same position is the same.
また、上記課題を解決するための請求項3の発明は、ページ記述言語で記載された画像情報に基づいて、出力対象の画像をディザマトリクスで二値化したディザ画像を記憶手段に描画する描画手段、前記記憶手段に描画されたディザ画像を出力する出力手段、としてコンピュータを機能させ、前記描画手段は、主走査方向に平行であり、且つ、前記主走査方向に垂直な副走査方向の幅が、前記ディザマトリクスの前記副走査方向の幅である基準距離より大きく、且つ、前記主走査方向の位置に応じて階調が変化する矩形形状のグラデーション領域の存在を、前記画像情報に基づき、前記出力対象の画像に対応する画像領域のうちで検知する検知手段と、前記検知手段が前記グラデーション領域の存在を検知した場合に、前記グラデーション領域のうちの一部の矩形形状の領域であって、前記副走査方向の幅が前記基準距離であり且つ前記主走査方向の幅が前記グラデーション領域と同じである一部領域、のディザ画像を生成する生成手段と、前記生成手段により生成されたディザ画像に基づいて、前記グラデーション領域のディザ画像を前記記憶手段に描画するグラデーション描画手段と、を含むことを特徴とするプログラムである。 According to a third aspect of the present invention for solving the above-described problem, a drawing is performed in which a dither image obtained by binarizing an output target image with a dither matrix is drawn in a storage unit based on image information described in a page description language. And a computer functioning as output means for outputting a dither image drawn in the storage means, wherein the drawing means is parallel to the main scanning direction and perpendicular to the main scanning direction. Is based on the image information, the presence of a rectangular gradation region that is larger than a reference distance that is the width in the sub-scanning direction of the dither matrix and whose gradation changes according to the position in the main scanning direction. Detecting means for detecting an image area corresponding to the image to be output; and when the detecting means detects the presence of the gradation area, the gradation area is detected. A dither image of a part of the rectangular region, wherein the width in the sub-scanning direction is the reference distance and the width in the main scanning direction is the same as the gradation region And a gradation drawing means for drawing the dither image of the gradation area in the storage means based on the dither image generated by the generating means.
請求項1、請求項3の発明によれば、主走査方向の位置に応じて階調が変化する領域を含む画像にディザ処理を施した二値画像を描画する場合における、処理負荷の軽減を図ることができる。 According to the first and third aspects of the present invention, the processing load can be reduced when a binary image obtained by performing dither processing on an image including an area that changes in gradation according to the position in the main scanning direction is drawn. Can be planned.
請求項2の発明によれば、本構成を有しない場合に比して、主走査方向の位置に応じて階調が変化する領域を含む画像にディザ処理を施した二値画像を描画する場合における、処理負荷の軽減をより確実に実現することができる。 According to the second aspect of the present invention, when a binary image obtained by performing dither processing on an image including a region where the gradation changes according to the position in the main scanning direction is rendered as compared with the case where the present configuration is not provided. The processing load can be reduced more reliably.
以下、本発明の実施形態の例について図面に基づき詳細に説明する。 Hereinafter, examples of embodiments of the present invention will be described in detail with reference to the drawings.
[画像処理システム]
図1は、本発明に係る画像処理システムの構成を例示する図である。本実施形態の場合、画像処理システムは、制御部4と記憶部6と画像形成部8とを含むページプリンタ2として実現される。
[Image processing system]
FIG. 1 is a diagram illustrating the configuration of an image processing system according to the present invention. In the case of this embodiment, the image processing system is realized as the
制御部4は、例えばマイクロプロセッサであり、記憶部6に記憶される画像処理プログラムに従って画像処理を実行する。
The
記憶部6は、RAM及びROMを含み、記憶部6には、制御部4が画像処理を行う過程で必要となるデータが記憶される。また、記憶部6(詳しくは、ROM)には、上記画像処理プログラムが格納される。この画像処理プログラムは、DVD(登録商標)−ROM等のコンピュータ読取可能な情報記憶媒体から読み出されて記憶部6に格納されてもよいし、ネットワーク等の通信網から供給されて記憶部6に格納されてもよい。
The
同図に示すように、ページプリンタ2には、ページ記述言語で記載されたPDLデータ(画像情報)が入力される。PDLデータは、出力対象のページ画像を示している。このページプリンタ2では、PDLデータが入力されると、このPDLデータが表すページ画像にディザ処理を施したディザ画像が印刷用紙に印刷される。具体的には、制御部4(描画手段)が、このPDLデータに基づいて、ページ画像にディザ処理を施したディザ画像を記憶部6のページバッファ領域(画像領域)に描画し、プリンタエンジンとして実現される画像形成部8(出力手段)が、制御部4の指示に従い、ページバッファ領域に描画されたディザ画像を印刷(出力)する。
As shown in the figure, PDL data (image information) described in a page description language is input to the
[PDLデータ]
図2及び図3は、PDLデータについて説明するための図である。PDLデータは、複数の描画コマンドを含んでおり、これらの描画コマンドにより、ページ画像をいわゆるカレントページ平面上の画像として表現している。図3に、PDLデータの記載内容を例示した。また、図2に、図3に示すPDLデータにより表現されるページ画像を例示した。図2に示すように、カレントページ平面10には、α軸とα軸に垂直なβ軸とが座標軸として設定されている。
[PDL data]
2 and 3 are diagrams for explaining the PDL data. The PDL data includes a plurality of drawing commands, and a page image is expressed as an image on a so-called current page plane by these drawing commands. FIG. 3 illustrates the description content of the PDL data. FIG. 2 illustrates a page image represented by the PDL data shown in FIG. As shown in FIG. 2, in the
図3に示すように、PDLデータには、複数の描画コマンドが含まれる。横一列に記載された文字列(例えば、「0.98 setgray 10 10 800 100 rectfill」)が1つの描画コマンドを示している。
As shown in FIG. 3, the PDL data includes a plurality of drawing commands. A character string (for example, “0.98
一つ一つの描画コマンドは、描画の対象となるカレントページ平面上の領域(以下、仮想描画対象領域と記載する)と、その仮想描画対象領域が有する仮想的な階調(以下、仮想階調と記載する)と、を示している。例えば、一番上の描画コマンドにより示される仮想描画対象領域A1は、左下の頂点の座標値(α、β)が(10、10)である、α軸方向の幅(長さ)が「800」でβ軸方向の幅(高さ)が「150」の矩形領域であり、この描画コマンドにより示される仮想階調は「0.98」である(図2参照)。また、例えば、上から二番目の描画コマンドにより示される仮想描画対象領域A2は、左下の頂点の座標値が(10、160)である、長さが「800」で高さが「150」の矩形領域であり、この描画コマンドにより示される仮想階調は「0.78」である(図2参照)。また、例えば、上から三番目の描画コマンドにより示される仮想描画対象領域A3は、左下の頂点の座標値が(10、310)である、長さが「800」で高さが「150」の矩形領域であり、この描画コマンドにより示される仮想階調は「0.58」である(図2参照)。また、例えば、上から四番目の描画コマンドにより示される仮想描画対象領域A4は、左下の頂点の座標値が(10、460)である、長さが「800」で高さが「150」の矩形領域であり、この描画コマンドにより示される仮想階調は「0.38」である(図2参照)。また、例えば、一番下の描画コマンドにより示される仮想描画対象領域A5は、左下の頂点の座標値が(300、300)である、長さが「200」で高さが「100」の矩形領域であり、この描画コマンドにより示される仮想階調は「01.00」である(図2参照)。 Each drawing command includes an area on the current page plane to be drawn (hereinafter referred to as a virtual drawing target area) and a virtual gradation (hereinafter referred to as virtual gradation) of the virtual drawing target area. ). For example, in the virtual drawing target area A1 indicated by the top drawing command, the coordinate value (α, β) of the lower left vertex is (10, 10), and the width (length) in the α axis direction is “800”. ”And a rectangular area whose width (height) in the β-axis direction is“ 150 ”, and the virtual gradation indicated by this drawing command is“ 0.98 ”(see FIG. 2). Also, for example, the virtual drawing target area A2 indicated by the second drawing command from the top has a coordinate value of the lower left vertex of (10, 160), a length of “800”, and a height of “150”. This is a rectangular area, and the virtual gradation indicated by this drawing command is “0.78” (see FIG. 2). Further, for example, the virtual drawing target area A3 indicated by the third drawing command from the top has the coordinate value of the lower left vertex (10, 310), the length “800”, and the height “150”. This is a rectangular area, and the virtual gradation indicated by this drawing command is “0.58” (see FIG. 2). For example, the virtual drawing target area A4 indicated by the fourth drawing command from the top has a coordinate value of the lower left vertex of (10, 460), a length of “800”, and a height of “150”. This is a rectangular area, and the virtual gradation indicated by this drawing command is “0.38” (see FIG. 2). Also, for example, the virtual drawing target area A5 indicated by the bottom drawing command is a rectangle whose bottom left vertex has a coordinate value of (300, 300), a length of “200”, and a height of “100”. The virtual gradation indicated by this drawing command is “01.00” (see FIG. 2).
ここでは、仮想階調「0.00」が最大階調を示し、仮想階調「1.00」が最小階調を示している。そのため、図2に示すように、仮想描画対象領域A1、仮想描画対象領域A2、仮想描画対象領域A3、仮想描画対象領域A4の順に、段階的に濃くなっている。また、仮想描画対象領域A5が白で塗りつぶされている。 Here, the virtual gradation “0.00” indicates the maximum gradation, and the virtual gradation “1.00” indicates the minimum gradation. Therefore, as illustrated in FIG. 2, the virtual drawing target area A1, the virtual drawing target area A2, the virtual drawing target area A3, and the virtual drawing target area A4 are darkened in order. The virtual drawing target area A5 is filled with white.
以下、文字列「rectfill」を含む描画コマンドのことを矩形描画コマンドと記載する。なお、図3では、矩形描画コマンドだけが示されているが、もちろん、PDLデータに矩形描画コマンド以外の描画コマンドが含まれる場合がある。 Hereinafter, a drawing command including the character string “rectfill” is referred to as a rectangular drawing command. In FIG. 3, only the rectangle drawing command is shown, but of course, the PDL data may include drawing commands other than the rectangle drawing command.
このページプリンタ2では、ディザ画像の出力形式として、いわゆるSEF(Short Edge Feed)方式とLEF(Long Edge Feed)方式とのうちの一方が選択されるようになっている。また、このページプリンタ2では、選択された出力形式に応じて一つ一つの描画コマンドが順次解釈され、仮想描画対象領域に対応するページバッファ領域内の領域(以下、描画対象領域と記載する)が特定される。また、例えば、描画コマンドが矩形描画コマンドである場合には、仮想階調に対応する階調値が特定されるようになっている。
In the
図4に、図3に示す描画コマンドの解釈結果を例示した。上からN(N=1〜5)番目の解釈結果は、上からN番目の描画コマンドの解釈結果を示している。なお、ここでは、ディザ画像の出力方式がSEF方式である場合の解釈結果を示している。 FIG. 4 illustrates the interpretation result of the drawing command shown in FIG. The Nth (N = 1 to 5) th interpretation result from the top indicates the interpretation result of the Nth drawing command from the top. Here, the interpretation results when the dither image output method is the SEF method are shown.
また、図5にページバッファ領域を例示した。同図に示すように、ページバッファ領域12には、x軸とx軸に垂直なy軸とが座標軸として設定されている。ページバッファ領域12内の位置はx座標値とy座標値とにより特定される。x軸方向が走査方向となり、y軸方向が副走査方向となる。なお、出力方式がLEF方式である場合、x軸とy軸とが入れ替わる。
FIG. 5 illustrates the page buffer area. As shown in the figure, in the
一番上の解釈結果が示すように、始点を始点S1とし終点を終点E1とする矩形形状の領域が、仮想描画対象領域A1に対応する描画対象領域B1として特定され、階調値「5」が、仮想階調「0.98」に対応する階調値として特定される。また、上から二番目の解釈結果が示すように、始点を始点S2とし終点を終点E2とする矩形形状の領域が、仮想描画対象領域A2に対応する描画対象領域B2として特定され、階調値「55」が、仮想階調「0.78」に対応する階調値として特定される。また、上から三番目の解釈結果が示すように、始点を始点S3とし終点を終点E3とする矩形形状の領域が、仮想描画対象領域A3に対応する描画対象領域B3として特定され、階調値「105」が、仮想階調「0.58」に対応する階調値として特定される。また、上から四番目の解釈結果が示すように、始点を始点S4とし終点を終点E4とする矩形形状の領域が、仮想描画対象領域A4に対応する描画対象領域B4として特定され、階調値「155」が、仮想階調「0.38」に対応する階調値として特定される。また、一番下の解釈結果が示すように、始点を始点S5とし終点を終点E5とする矩形形状の領域が、仮想描画対象領域A5に対応する描画対象領域B5として特定され、階調値「0」が、仮想階調「1.00」に対応する階調値として特定される。各描画対象領域は、それぞれ異なる階調値を有している。 As shown in the top interpretation result, a rectangular area having the start point as the start point S1 and the end point as the end point E1 is specified as the drawing target area B1 corresponding to the virtual drawing target area A1, and the gradation value is “5”. Is specified as the gradation value corresponding to the virtual gradation “0.98”. Further, as shown by the second interpretation result from the top, a rectangular area having the start point as the start point S2 and the end point as the end point E2 is specified as the drawing target area B2 corresponding to the virtual drawing target area A2, and the gradation value “55” is specified as the gradation value corresponding to the virtual gradation “0.78”. Further, as shown in the third interpretation result from the top, a rectangular area having the start point as the start point S3 and the end point as the end point E3 is specified as the drawing target area B3 corresponding to the virtual drawing target area A3, and the gradation value “105” is specified as the gradation value corresponding to the virtual gradation “0.58”. Further, as shown by the fourth interpretation result from the top, a rectangular area having the start point as the start point S4 and the end point as the end point E4 is specified as the drawing target area B4 corresponding to the virtual drawing target area A4, and the gradation value “155” is specified as the gradation value corresponding to the virtual gradation “0.38”. As shown in the bottom interpretation result, a rectangular area having a start point S5 and an end point E5 is specified as a drawing target area B5 corresponding to the virtual drawing target area A5, and the gradation value “ “0” is specified as the gradation value corresponding to the virtual gradation “1.00”. Each drawing target area has a different gradation value.
各描画コマンドが解釈される結果として、ページ画像のディザ画像がページバッファ領域12に描画されることになる。この点については、後述する。
As a result of interpreting each drawing command, a dither image of the page image is drawn in the
[ディザマトリクス]
ここで、このページプリンタ2で用いられるディザマトリクスについて説明する。図6は、ディザマトリクスを例示する図である。このディザマトリクスは、ページバッファ領域12内の各位置に設定された閾値を含む閾値マトリクスである。このディザマトリクスは、x軸方向の幅が「L」でy軸方向の幅が「F」(基準距離)である単位閾値マトリクスが碁盤状に配列された閾値マトリクスであり、このディザマトリクスでは、ある閾値の値と、その閾値からy軸方向に「F」だけ離れた位置の閾値の値と、が同じになる。なお、図7に、単位閾値マトリクスを例示した。
[Dither Matrix]
Here, the dither matrix used in the
このページプリンタ2では、記憶部6に、各階調値のパターン画像が記憶されている。すなわち、記憶部6に、階調値のパターン画像として、その階調値で上記ディザマトリクスの領域を塗りつぶした画像を上記ディザマトリクスで二値化した二値画像が記憶されている。なお、階調値のパターン画像として、その階調値で上記単位閾値マトリクスの領域を塗りつぶした画像を上記単位閾値マトリクスで二値化した二値画像が記憶されていてもよい。
In the
[処理]
以下、ページ画像のディザ画像をページバッファ領域12に描画するために、制御部4(描画手段)が上記画像処理プログラムに従って実行する処理について説明する。図8は、制御部4が実行する処理を例示するフロー図である。この処理は、PDLデータが入力された場合に実行される。
[processing]
Hereinafter, a process executed by the control unit 4 (drawing unit) in accordance with the image processing program in order to draw a dither image of a page image in the
まず、制御部4は、グラデーション値「g」の値を「0」に設定する(S101)。
First, the
そして、制御部4は、PDLデータに記載される描画コマンドの一つ一つを上から順番に読み出し、描画コマンドを読み出すごとにS102以降のステップを順次実行する。以下、S102以降のステップについて説明する。なお、読み出された描画コマンドのことを描画コマンドXと呼ぶ。
Then, the
制御部4は、描画コマンドXが矩形描画コマンドであるか否かを判定する(S102)。例えば、制御部4は、描画コマンドX中に文字列「rectfill」が含まれるか否かを判定する。
The
描画コマンドXが矩形描画コマンドである場合(S102のY)、制御部4(検知手段)は、描画コマンドXを解釈し、仮想描画対象領域及び仮想階調から、矩形形状の描画対象領域X及び階調値Xを特定する(S103)。なお、以下、描画対象領域Xの始点SXの座標を(sx、sy)と記載し、描画対象領域Xの終点EXの座標を(ex、ey)と記載して説明を続ける。 When the drawing command X is a rectangular drawing command (Y in S102), the control unit 4 (detecting means) interprets the drawing command X, and from the virtual drawing target area and the virtual gradation, the rectangular drawing target area X and A gradation value X is specified (S103). In the following description, the coordinates of the start point SX of the drawing target area X are described as (sx, sy), and the coordinates of the end point EX of the drawing target area X are described as (ex, ey).
そして、制御部4(検知手段)は、描画対象領域Xの副走査方向(すなわち、y軸方向)の幅が上記「F」より大きいか否かを判定する(S104)。具体的には、制御部4は、「ey−sy+1」の値が「F」より大きいか否かを判定する。
Then, the control unit 4 (detection means) determines whether or not the width of the drawing target area X in the sub-scanning direction (that is, the y-axis direction) is larger than the “F” (S104). Specifically, the
描画対象領域Xの副走査方向の幅が「F」より大きい場合(S104のY)、制御部4(検知手段)は、グラデーション値「g」が「0」であるか否かを判定する(S105)。 When the width of the drawing target area X in the sub-scanning direction is larger than “F” (Y in S104), the control unit 4 (detection means) determines whether or not the gradation value “g” is “0” ( S105).
グラデーション値「g」が「0」である場合(S105のY)、制御部4(検知手段)は、スプール処理を行い、描画対象領域X及び階調値Xを、現在のグラデーション値「g」と関連づけて記憶部6に記憶させる(S106)。そして、制御部4(検知手段)は、グラデーション値「g」をインクリメントする(S107)。 When the gradation value “g” is “0” (Y in S105), the control unit 4 (detecting means) performs spool processing, and the drawing target area X and gradation value X are converted to the current gradation value “g”. And stored in the storage unit 6 (S106). Then, the control unit 4 (detection means) increments the gradation value “g” (S107).
一方、グラデーション値「g」が「1」以上である場合(S105のN)、制御部4(検知手段)は、グラデーション値「g−1」と関連づけて記憶部6に記憶される描画対象領域(以下、描画対象領域Yと記載する)を読み出す。そして、制御部4(検知手段)は、「描画対象領域Yの始点SYのy座標値syyと描画対象領域Xの始点SXのy座標値syとの差」と「描画対象領域Yの終点EYのy座標値eyyと描画対象領域Xの終点EXのy座標値eyとの差」との両方、が「0」であるか否かを判定する(S108)。すなわち、制御部4は、描画対象領域Xの上辺の位置syと描画対象領域Yの上辺の位置syyとが同じであり、且つ、描画対象領域Xの下辺の位置eyと描画対象領域Yの下辺の位置eyyとが同じである否かを判定する。
On the other hand, when the gradation value “g” is equal to or greater than “1” (N in S105), the control unit 4 (detecting means) draws the drawing target area stored in the
また、制御部4(検知手段)は、「描画対象領域Yの始点SYのx座標値syxと描画対象領域Xの終点EXのx座標値exとの差の絶対値」と「描画対象領域Yの終点EYのx座標値eyxと描画対象領域Xの始点SXのx座標値sxとの差の絶対値」とのうちのいずれか一方が「1」であるか否かを判定する(S109)。すなわち、制御部4は、描画対象領域Xの右辺と描画対象領域Yの左辺との組み合わせと、描画対象領域Xの左辺と描画対象領域Yの右辺との組み合わせと、のうちのいずれかの一方の組み合わせに係る2つの辺が隣接しているか否かを判定する。
Further, the control unit 4 (detection means) determines that “the absolute value of the difference between the x coordinate value syx of the start point SY of the drawing target area Y and the x coordinate value ex of the end point EX of the drawing target area X” and “the drawing target area Y It is determined whether or not any one of “the absolute value of the difference between the x coordinate value eyx of the end point EY” and the x coordinate value sx of the start point SX of the drawing target area X is “1” (S109). . That is, the
「座標値syyと座標値syとの差と座標値eyyと座標値eyとの差との両方が「0」である」と判定され(S108のY)、且つ、「座標値syxと座標値exとの差の絶対値と座標値eyxと座標値sxとの差の絶対値とのうちのいずれか一方が「1」である」と判定された場合(S109のY)、制御部4は、S106のステップに進む。
It is determined that “both the difference between the coordinate value sy and the coordinate value sy and the difference between the coordinate value ey and the coordinate value ey are“ 0 ”” (Y in S108), and “the coordinate value syx and the coordinate value When it is determined that one of the absolute value of the difference from ex and the absolute value of the difference between the coordinate value eyx and the coordinate value sx is “1” (Y in S109), the
一方、「座標値syyと座標値syとの差と座標値eyyと座標値eyとの差との両方が「0」でない」と判定された場合(S108のN)、又は、「座標値syxと座標値exとの差の絶対値と座標値eyxと座標値sxとの差の絶対値との両方が「1」でない」と判定された場合(S109のN)、制御部4(検知手段)は、サブルーチンSを実行する(S110)。 On the other hand, when it is determined that “the difference between the coordinate value sy and the coordinate value sy and the difference between the coordinate value ey and the coordinate value ey are not“ 0 ”” (N in S108), or “the coordinate value syx When the absolute value of the difference between the coordinate value ex and the absolute value of the difference between the coordinate value eyx and the coordinate value sx is determined not to be “1” (N in S109), the control unit 4 (detecting means) ) Executes a subroutine S (S110).
図9は、サブルーチンSを例示するフロー図である。サブルーチンSでは、制御部4(検知手段)は、グラデーション値「g」が「2」以上であるか否かを判定する(S201)。すなわち、制御部4(検知手段)は、S201のステップを実行することにより、グラデーション領域の存在を検知する。 FIG. 9 is a flowchart illustrating the subroutine S. In the subroutine S, the control unit 4 (detection means) determines whether or not the gradation value “g” is “2” or more (S201). That is, the control unit 4 (detection means) detects the presence of the gradation area by executing the step of S201.
ここで、グラデーション領域とは、ページバッファ領域12に含まれる、主走査方向(すなわち、x軸方向)に平行な矩形形状の領域であって、副走査方向(すなわち、y軸方向)の幅が「F」より大きく、且つ、主走査方向の位置に応じて階調が変化し、且つ、主走査方向のどの位置においても副走査方向の位置に応じて階調が変化しない領域である。具体的には、制御部4は、グラデーション値「g」が「2」以上である場合に(S201のY)、「0」〜「g−1」の各々に関連づけて記憶部6に記憶される複数の描画対象領域を連結した矩形形状の領域をグラデーション領域として検知する。
Here, the gradation area is a rectangular area included in the
グラデーション値「g」が「1」である場合(S201のN)、制御部4(描画手段)は、「0」に関連づけて記憶部6に記憶される、描画対象領域(以下、描画対象領域Zと記載する)及び階調値(以下、階調値Zと記載する)を読み出し、階調値Zに関連づけられたパターン画像に基づいて、描画対象領域Zのディザ画像を描画する(S202)。
When the gradation value “g” is “1” (N in S201), the control unit 4 (drawing unit) stores the drawing target area (hereinafter, the drawing target area) stored in the
そして、制御部4(検知手段)は、グラデーション値「g」を「0」に更新する(S203)。 Then, the control unit 4 (detection means) updates the gradation value “g” to “0” (S203).
一方、グラデーション値「g」が「2」以上である場合(S201のY)、制御部4(描画手段)は、サブルーチンS1を実行し(S204)、S203のステップに進む。 On the other hand, when the gradation value “g” is equal to or greater than “2” (Y in S201), the control unit 4 (drawing means) executes the subroutine S1 (S204) and proceeds to the step of S203.
図10は、サブルーチンS1を例示するフロー図である。サブルーチンS1では、制御部4(生成手段)は、主走査方向の幅が「F」であり副走査方向の幅がグラデーション領域と同じである単位矩形分のバッファを記憶部6に生成する(S301)。 FIG. 10 is a flowchart illustrating the subroutine S1. In the subroutine S1, the control unit 4 (generating unit) generates a buffer for a unit rectangle whose width in the main scanning direction is “F” and whose width in the sub scanning direction is the same as that of the gradation area in the storage unit 6 (S301). ).
そして、制御部4(生成手段)は、グラデーション領域の一部に含まれる上記単位矩形分の領域を注目領域(一部領域)として設定する。本実施形態の場合、制御部4は、グラデーション領域の上辺を含む単位矩形分の領域を注目領域として設定する。
Then, the control unit 4 (generating unit) sets the region for the unit rectangle included in a part of the gradation region as the attention region (partial region). In the case of this embodiment, the
そして、制御部4は、注目領域をラスタスキャンニングすることにより、グラデーション領域に含まれる描画対象領域の各々の階調値のパターン画像に基づいて、注目領域のディザ画像(以下、単位ディザ画像)を上記バッファに描画する(S302)。すなわち、制御部4(生成手段)は、単位ディザ画像を生成する。なお、スキャン一回につき、グラデーション領域に含まれる描画対象領域の数「n」と同じ回数、パターン画像(より詳しくは、パターン画像の一部分)の読み出しが行われる。そのため、注目領域の副走査方向の幅が「F」であるので、注目領域全体では、「「n」×「F」」回、データの読み出しが行われる。
Then, the
図11は、注目領域を例示する図である。ここでは、図5に示す描画対象領域B1,B2,B3,B4を連結した領域14がグラデーション領域として検知された場合を例に取り上げる。なお、「R」は、グラデーション領域の主走査方向の幅を示している。
FIG. 11 is a diagram illustrating a region of interest. Here, the case where the area |
この場合、S301のステップにおいて、主走査方向の幅「F」であり副走査方向の幅が「R」である単位矩形分のバッファが生成され、グラデーション領域のうちの網掛けされた領域が注目領域として設定されることとなる。 In this case, in step S301, a buffer for a unit rectangle having a width “F” in the main scanning direction and a width “R” in the sub-scanning direction is generated, and the shaded area in the gradation area is noted. It will be set as an area.
そして、制御部4(グラデーション描画手段)は、グラデーション領域をラスタスキャンニングすることにより、単位ディザ画像に基づいて、グラデーション領域のディザ画像を描画する(S303)。こうして、制御部4は、グラデーション領域に単位ディザ画像をタイリングする。なお、スキャン一回につき、単位ディザ画像(より詳しくは、単位ディザ画像のうちの一ライン)の読み出しが一回行われる。そのため、グラデーション領域の副走査方向の幅を「「h」×「F」」とする場合、グラデーション領域全体では、「「h」×「F」」回のデータの読み出しが行われる。
Then, the control unit 4 (gradation drawing means) draws the dither image in the gradation area based on the unit dither image by raster scanning the gradation area (S303). Thus, the
図12に、グラデーション領域のディザ画像の描画を概念的に示した。領域16a、領域16b、領域16c、領域16d、及び領域16eのそれぞれに、単位ディザ画像が描画されることになる。
FIG. 12 conceptually shows the drawing of the dither image in the gradation area. A unit dither image is drawn in each of the
なお、描画対象領域Xの副走査方向の幅が「F」以下である場合(S104のN)、制御部4は、サブルーチンS2を実行する(S111)。また、描画コマンドXが矩形描画コマンド以外の描画コマンドである場合(S102のN)、制御部4は、サブルーチンS3を実行する(S112)。
If the width of the drawing target area X in the sub-scanning direction is equal to or smaller than “F” (N in S104), the
図13は、サブルーチンS2を例示するフロー図である。サブルーチンS2では、制御部4は、グラデーション値「g」が「0」であるか否かを判定する(S401)。
FIG. 13 is a flowchart illustrating the subroutine S2. In the subroutine S2, the
グラデーション値「g」が「0」である場合(S401のY)、制御部4(描画手段)は、階調値Xのバターン画像に基づいて、描画対象領域Xのディザ画像を描画する(S402)。 When the gradation value “g” is “0” (Y in S401), the control unit 4 (drawing unit) draws a dither image in the drawing target area X based on the pattern image of the gradation value X (S402). ).
一方、グラデーション値「g」が「0」でない場合(S401のN)、制御部4は、サブルーチンS(図9参照)を実行してから(S403)、描画対象領域Xのディザ画像を描画する(S402)。
On the other hand, when the gradation value “g” is not “0” (N in S401), the
図14は、サブルーチンS3を例示するフロー図である。サブルーチンS3では、制御部4は、S401のステップと同様にして、グラデーション値「g」が「0」であるか否かを判定する(S501)。
FIG. 14 is a flowchart illustrating the subroutine S3. In the subroutine S3, the
グラデーション値「g」が「0」である場合(S501のY)、制御部4(描画手段)は、描画コマンドXを解釈し(S502)、解釈結果により示される階調値のパターン画像に基づいて、当該解釈結果により示される領域のディザ画像を描画する(S503)。 When the gradation value “g” is “0” (Y in S501), the control unit 4 (rendering unit) interprets the rendering command X (S502) and based on the pattern image of the gradation value indicated by the interpretation result. Then, a dither image of the area indicated by the interpretation result is drawn (S503).
一方、グラデーション値「g」が「0」でない場合(S501のN)、制御部4は、サブルーチンS(図9参照)を実行し(S504)、S502のステップに進む。
On the other hand, when the gradation value “g” is not “0” (N in S501), the
以上のようにして、ページ画像を上記ディザマトリクスで二値化したディザ画像がページバッファ領域12に描画される。そして、画像形成部8により、ページバッファ領域12に描画されたディザ画像が印刷用紙に印刷されることとなる。
As described above, the dither image obtained by binarizing the page image with the dither matrix is drawn in the
ところで、単位ディザ画像を用いずにグラデーション領域のディザ画像を描画する方法がない訳ではない。通常は、S302のステップと同様の処理を、注目領域ではなくグラデーション領域をラスタスキャニングするようにして行うことで、グラデーション領域のディザ画像を描画する方法が考えられる。しかしながら、この場合、上述のように、スキャン一回につき、グラデーション領域内の描画対象領域の数「n」と同じ回数のデータの読み出しが行われるため、「「n」×「h」×「F」」回のデータ読み出しが行われることになる。なお、上述のように、「「h」×「F」」は、グラデーション領域の副走査方向の幅である。 By the way, there is no lack of a method for drawing a dither image in a gradation area without using a unit dither image. Usually, a method of rendering a dither image in the gradation area by performing the same process as in step S302 so as to raster scan the gradation area instead of the attention area can be considered. However, in this case, as described above, data is read as many times as the number “n” of the drawing target areas in the gradation area for each scan, and therefore ““ n ”ד h ”ד F ” “” Times of data reading are performed. As described above, ““ h ”ד F ”” is the width of the gradation area in the sub-scanning direction.
そのため、「n」の値が大きい場合、すなわち、主走査方向における階調の変化のピッチが短い場合、グラデーション領域のディザ画像の描画に関する処理負荷が多量になる。 Therefore, when the value of “n” is large, that is, when the pitch of the gradation change in the main scanning direction is short, the processing load related to drawing the dither image in the gradation area becomes large.
この点、このページプリンタ2では、上述のように、S302のステップで「「n」×「F」」回のデータ読み出しが行われ、S303のステップで、「「h」×「F」」回のデータ読み出しが行われる。その結果、データ読みだしが、「(「h」+「n」)×「F」」回しかデータ読み出しが行われなくなる。従って、グラデーション領域のディザ画像の描画に関する処理負荷の軽減が図られるようになる。
In this regard, in this
なお、本発明の実施形態は上記実施形態だけに限らない。 The embodiment of the present invention is not limited to the above embodiment.
例えば、制御部4(検知手段)は、描画コマンドXがいわゆるグラデーション描画コマンドであるか否かを判定し、描画コマンドXがグラデーション描画コマンドである場合に、描画コマンドXの解釈結果から導かれる矩形領域の副走査方向の幅が「F」より大きいか否かを判定してよい。この場合、副走査方向の幅が「F」より大きいと判定された上記矩形領域をグラデーション領域として検知し、図10に示すサブルーチンS1を実行すればよい。なお、この場合、グラデーション領域に含まれる「階調値がそれぞれ異なる複数の矩形領域」の一つ一つが、上記実施形態における「グラデーション領域に含まれる描画対象領域」に相当する。 For example, the control unit 4 (detection means) determines whether or not the drawing command X is a so-called gradation drawing command, and when the drawing command X is a gradation drawing command, a rectangle derived from the interpretation result of the drawing command X It may be determined whether or not the width of the region in the sub-scanning direction is larger than “F”. In this case, the rectangular area determined as having a width in the sub-scanning direction larger than “F” may be detected as a gradation area, and the subroutine S1 shown in FIG. 10 may be executed. In this case, each of “a plurality of rectangular regions having different gradation values” included in the gradation region corresponds to “a drawing target region included in the gradation region” in the above embodiment.
例えば、画像形成部8は、制御部4及び記憶部6とは別体の画像形成装置により実現されてもよい。
For example, the
また、ページ記述言語はどのようなページ記述言語であってもよい。 The page description language may be any page description language.
2 ページプリンタ、4 制御部、6 記憶部、8 画像形成部、10 カレントページ平面、12 ページバッファ領域、14 グラデーション領域、16a,16b,16c,16d,16e 領域。 2 page printer, 4 control unit, 6 storage unit, 8 image forming unit, 10 current page plane, 12 page buffer area, 14 gradation area, 16a, 16b, 16c, 16d, 16e area.
Claims (3)
前記記憶手段に描画されたディザ画像を出力する出力手段と、
を含み、
前記描画手段は、
主走査方向に平行であり、且つ、前記主走査方向に垂直な副走査方向の幅が、前記ディザマトリクスの前記副走査方向の幅である基準距離より大きく、且つ、前記主走査方向の位置に応じて階調が変化する矩形形状のグラデーション領域の存在を、前記画像情報に基づき、前記出力対象の画像に対応する画像領域のうちで検知する検知手段と、
前記検知手段が前記グラデーション領域の存在を検知した場合に、前記グラデーション領域のうちの一部の矩形形状の領域であって、前記副走査方向の幅が前記基準距離であり且つ前記主走査方向の幅が前記グラデーション領域と同じである一部領域、のディザ画像を生成する生成手段と、
前記生成手段により生成されたディザ画像に基づいて、前記グラデーション領域のディザ画像を前記記憶手段に描画するグラデーション描画手段と、を含むこと、
を特徴とする画像処理システム。 A drawing means for drawing a dither image obtained by binarizing an output target image with a dither matrix based on image information described in a page description language in a storage means;
Output means for outputting a dither image drawn in the storage means;
Including
The drawing means includes
A width in the sub-scanning direction that is parallel to the main scanning direction and perpendicular to the main scanning direction is larger than a reference distance that is a width in the sub-scanning direction of the dither matrix and is at a position in the main scanning direction. Detecting means for detecting the presence of a rectangular gradation region whose gradation changes in response, based on the image information, in an image region corresponding to the output target image;
When the detection means detects the presence of the gradation area, the gradation area is a part of the gradation area, the width in the sub-scanning direction is the reference distance, and the width in the main scanning direction is Generating means for generating a dither image of a partial area having the same width as the gradation area;
Gradation drawing means for drawing the dither image of the gradation area in the storage means based on the dither image generated by the generation means;
An image processing system.
を特徴とする請求項1に記載の画像処理システム。 The first threshold value included in the dither matrix is the same as the second threshold value included in the dither matrix and located at a position away from the first threshold value in the sub-scanning direction by the reference distance.
The image processing system according to claim 1.
前記記憶手段に描画されたディザ画像を出力する出力手段、
としてコンピュータを機能させ、
前記描画手段は、
主走査方向に平行であり、且つ、前記主走査方向に垂直な副走査方向の幅が、前記ディザマトリクスの前記副走査方向の幅である基準距離より大きく、且つ、前記主走査方向の位置に応じて階調が変化する矩形形状のグラデーション領域の存在を、前記画像情報に基づき、前記出力対象の画像に対応する画像領域のうちで検知する検知手段と、
前記検知手段が前記グラデーション領域の存在を検知した場合に、前記グラデーション領域のうちの一部の矩形形状の領域であって、前記副走査方向の幅が前記基準距離であり且つ前記主走査方向の幅が前記グラデーション領域と同じである一部領域、のディザ画像を生成する生成手段と、
前記生成手段により生成されたディザ画像に基づいて、前記グラデーション領域のディザ画像を前記記憶手段に描画するグラデーション描画手段と、を含むこと、
を特徴とするプログラム。 Drawing means for drawing a dither image obtained by binarizing an output target image with a dither matrix based on image information described in a page description language in a storage means;
Output means for outputting a dither image drawn in the storage means;
Function as a computer
The drawing means includes
A width in the sub-scanning direction that is parallel to the main scanning direction and perpendicular to the main scanning direction is larger than a reference distance that is a width in the sub-scanning direction of the dither matrix and is at a position in the main scanning direction. Detecting means for detecting the presence of a rectangular gradation region whose gradation changes in response, based on the image information, in an image region corresponding to the output target image;
When the detection means detects the presence of the gradation area, the gradation area is a part of the gradation area, the width in the sub-scanning direction is the reference distance, and the width in the main scanning direction is Generating means for generating a dither image of a partial area having the same width as the gradation area;
Gradation drawing means for drawing the dither image of the gradation area in the storage means based on the dither image generated by the generation means;
A program characterized by
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2011036914A JP5747553B2 (en) | 2011-02-23 | 2011-02-23 | Image processing system and program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2011036914A JP5747553B2 (en) | 2011-02-23 | 2011-02-23 | Image processing system and program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2012175510A JP2012175510A (en) | 2012-09-10 |
| JP5747553B2 true JP5747553B2 (en) | 2015-07-15 |
Family
ID=46977958
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2011036914A Expired - Fee Related JP5747553B2 (en) | 2011-02-23 | 2011-02-23 | Image processing system and program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP5747553B2 (en) |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP3829908B2 (en) * | 1999-10-26 | 2006-10-04 | 富士ゼロックス株式会社 | Image processing device |
| JP2002063582A (en) * | 2000-08-23 | 2002-02-28 | Fuji Xerox Co Ltd | Device and method for forming image |
| JP4144395B2 (en) * | 2003-03-25 | 2008-09-03 | ブラザー工業株式会社 | Image processing apparatus and image forming apparatus having the same |
| JP2006235855A (en) * | 2005-02-23 | 2006-09-07 | Ricoh Co Ltd | Image forming apparatus, image processing apparatus, program, and image processing method |
| JP2010176082A (en) * | 2009-02-02 | 2010-08-12 | Fujitsu Ten Ltd | Image processor |
-
2011
- 2011-02-23 JP JP2011036914A patent/JP5747553B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2012175510A (en) | 2012-09-10 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP7005337B2 (en) | Display control device, its control method, and program | |
| JP2024102221A (en) | Image processing device, image processing method, and program | |
| US9047554B2 (en) | Image processing apparatus and program | |
| JP5863001B2 (en) | Image processing apparatus, image forming apparatus, and program | |
| CN102436357B (en) | Image processing apparatus and image processing method | |
| JP5747553B2 (en) | Image processing system and program | |
| US10424066B2 (en) | Image analyzing apparatus that corrects isolated pixels in target image data | |
| JP4998176B2 (en) | Translation apparatus and program | |
| JP6904717B2 (en) | Image processing equipment, its control method, and programs | |
| JP2024082122A (en) | Information processing device, control method thereof, and program | |
| JP2013026865A (en) | Image processing apparatus and image processing method | |
| JP5936363B2 (en) | Image processing apparatus and image processing method | |
| JP7123737B2 (en) | Image processing device, image processing method and program | |
| JP2016066222A (en) | Image processing apparatus, image processing method, and computer program | |
| JP5790000B2 (en) | Printing apparatus and printing method therefor | |
| JP4735212B2 (en) | Image processing device | |
| US8792133B2 (en) | Rendering data processing apparatus, rendering data processing method, print apparatus, print method, and computer-readable medium | |
| JP2008107970A (en) | Image forming device | |
| JP4361457B2 (en) | Image forming apparatus and program | |
| JP5720335B2 (en) | Image processing apparatus and image processing program | |
| JP4443256B2 (en) | Image processing apparatus, image output apparatus, information processing apparatus, image forming system, image processing method, program, and recording medium | |
| US9824305B2 (en) | Printing control device, image processing method, and storage medium | |
| JP5609573B2 (en) | Driver program and printing system | |
| JP5131144B2 (en) | Image processing apparatus, image processing program, and image forming apparatus | |
| JP2016189086A (en) | Information processing apparatus, information processing method, and computer program |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20140121 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20141127 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20141202 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20150129 |
|
| 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: 20150414 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20150427 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 5747553 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| LAPS | Cancellation because of no payment of annual fees |