JP2016100785A - Image processing apparatus, image processing method, and program - Google Patents
Image processing apparatus, image processing method, and program Download PDFInfo
- Publication number
- JP2016100785A JP2016100785A JP2014237000A JP2014237000A JP2016100785A JP 2016100785 A JP2016100785 A JP 2016100785A JP 2014237000 A JP2014237000 A JP 2014237000A JP 2014237000 A JP2014237000 A JP 2014237000A JP 2016100785 A JP2016100785 A JP 2016100785A
- Authority
- JP
- Japan
- Prior art keywords
- filter
- image
- image processing
- processing
- rendering
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Abstract
Description
本発明は、画像データに対してフィルタ処理を用いて画像処理を行う画像処理装置及び方法に関する。 The present invention relates to an image processing apparatus and method for performing image processing on image data using filter processing.
一般に、記録媒体上に画像を印刷するプリンタにおいては、入力された画像データに対して所望の画像処理を施すことにより、画像データをプリンタが出力可能な印刷データに変換する。画像処理を高速化するため、画像データに印刷する必要のない白領域が含まれている場合、画像データにおける白領域に対する処理をスキップする方法が開示されている。このような技術は、白スキップ処理とも呼ばれる。特許文献1には、スキャナにより画像を読み込んだ後、読み込んだ画像データの白ライン判定し、その白ラインを削除した画像データに変換して画像処理を行う方法を開示している。 In general, a printer that prints an image on a recording medium converts the image data into print data that can be output by the printer by performing desired image processing on the input image data. In order to speed up image processing, a method is disclosed in which processing for a white region in image data is skipped when the image data includes a white region that does not need to be printed. Such a technique is also called white skip processing. Japanese Patent Application Laid-Open No. 2004-151858 discloses a method of performing image processing by reading an image with a scanner, determining a white line of the read image data, and converting the white line into deleted image data.
しかしながら特許文献1に開示された方法によれば、画像処理にフィルタ処理が含まれる場合、白ラインを削除した境界において2つの画像領域の色が混ざってしまい、画質劣化を起こしてしまう場合があった。
However, according to the method disclosed in
そこで本発明は、フィルタ処理が含まれる画像処理において、画像劣化を発生することなく画像処理を削減することを目的とする。 Accordingly, an object of the present invention is to reduce image processing without causing image deterioration in image processing including filter processing.
上記課題を解決するため本発明は、像データに対して画像処理する画像処理装置であって、PDLデータにおける白ラインを検出する検出手段と、前記PDLデータをレンダリングするレンダリング処理手段と、前記レンダリング処理手段によって得られる画像データが表す各画素に対して、複数の画素を参照して画素値を変換するためのフィルタを用いたフィルタ処理を実行するフィルタ処理手段と、前記フィルタ処理手段に用いられるフィルタのサイズに応じてPDLデータに含まれる白ラインの一部をスキップしてレンダリングすることを特徴とする。 In order to solve the above-described problems, the present invention provides an image processing apparatus that performs image processing on image data, a detection unit that detects a white line in PDL data, a rendering processing unit that renders the PDL data, and the rendering A filter processing unit that executes a filter process using a filter for converting a pixel value with reference to a plurality of pixels for each pixel represented by image data obtained by the processing unit, and the filter processing unit Rendering is performed by skipping a part of the white line included in the PDL data according to the size of the filter.
本発明によれば、フィルタ処理を含む画像処理において、画像劣化を発生することなく画像処理を削減することができる。 According to the present invention, in image processing including filter processing, image processing can be reduced without causing image degradation.
以下、添付図面を参照し、本発明の好適な実施形態について説明する。なお、以下の実施例において示す構成は1例にすぎず、本発明は図示された構成に限定されるものではない。 Preferred embodiments of the present invention will be described below with reference to the accompanying drawings. In addition, the structure shown in the following Examples is only an example, and this invention is not limited to the structure shown in figure.
<第1実施形態>
(全体構成)
図1は、本発明の第1実施形態に適用可能な画像処理装置の全体構成を示すブロック図である。本実施形態において画像処理装置は、PDL処理部101、RIP処理部102、CPU103、画像処理部104、印刷部105を有する。
<First Embodiment>
(overall structure)
FIG. 1 is a block diagram showing the overall configuration of an image processing apparatus applicable to the first embodiment of the present invention. In this embodiment, the image processing apparatus includes a
PDL処理部101は、図示しないPC等からの印刷ジョブに含まれているページ記述言語(PDL:Page Description Language)によって記述されたデータ(以降、PDLデータ)を解析する。PDLデータとは、1ページ分の画像形成命令を含む。PDL処理部101は、PDLデータの画像形成命令を解釈し、描画するオブジェクトを示すディスプレイリスト(DL)等の中間データを生成する。生成された中間データは、メモリ(不図示)に一時的に保存する。
The
RIP処理部102は、PDL処理部101による解析の結果得られる中間データからラスタ形式の画像データ(以降、ラスタ画像データまたは画像データと呼ぶ)を生成する。RIP処理部102は、スキップ抑制レジスタ110を有し、スキップ抑制レジスタ110には最小白ライン数が格納されている。RIP102は、最小白ライン数に従って、中間データからラインごとにラスタ画像データを生成する際に、一部の白ラインをスキップ処理する。スキップ処理とは、特定の条件を満たすライン(ここでは白ライン)のレンダリング処理をスキップすることを意味する。つまり、RIP処理部102から出力されるラスタ画像データにおいては、一部のラインが省略されている。本来1ページ分の画像データを構成するライン数がLであり、ライン数Mの白ラインをスキップ処理すると、ラスタ画像データのライン数は、L−Mになる。また、RIP処理部102は、スキップ処理されたライン位置を示すスキップ情報を生成する。なお、ラインとは1ページ分の画像において主走査方向(横方向)の1列を意味する。例えば、画像データが256画素×512画素から構成される場合、1ラインは1×256画素である。RIP処理部102における処理の詳細は後述する。
The
CPU103は、画像処理部104における処理に必要なパラメータを設定する。また、後述する画像処理104に用いるフィルタのサイズに応じて最小白ライン数を生成し、スキップ抑制レジスタ110に格納する。上記最小白ライン数及びCPU103の詳細は後述する。
The
画像処理部104は、上記RIP処理部102で生成された画像データを入力し、フィルタ処理や変倍処理や色変換処理、ハーフトーン処理などの各種の画像処理を行う。特に本実施形態では、画像処理部104は第1フィルタ処理部106と第2フィルタ処理部107を有する。フィルタ処理とは、画像データが表す各画素に対して、注目画素の画素値と注目画素の周辺画素の画素値とに基づいて、注目画素の画素値を変換する処理である。複数の画素を参照して画素値を変換するためにフィルタを用いる。第1フィルタ処理部106は、図15(a)に示すような3×3のフィルタサイズのフィルタを用いてフィルタ処理をする。第2フィルタ処理部107は、図15(b)に示すような5×5のフィルタサイズを用いてフィルタ処理をする。フィルタ処理とは、注目画素の画素値を、注目画素および近傍画素それぞれに対応するフィルタ係数の積和演算により算出する処理である。従って、フィルタ処理後の注目画素の画素値は、フィルタサイズによって決まる近傍画素の画素値が参照された値が与えられる。
The
印刷部105は、CPU103から出力されたスキップ情報に基づいて、画像処理部104によって各種画像処理を実行された画像データに対して、スキップ処理された白ラインを復元する。そして、白ライン復元後の1ページ分の画像データを記録媒体上に印刷する。
Based on the skip information output from the
(RIP処理部102の詳細な説明)
次にRIP処理部102の詳細について説明する。図2は、RIP処理部102の詳細な構成を示すブロック図である。オブジェクト分割部201は、PDL処理部101により生成される中間データ(PDL解析結果)を入力する。中間データは、複数のオブジェクト情報(色、座標等)を示す。オブジェクト分割部201は、画像のライン毎に複数のオブジェクト情報を分割し、出力する。
(Detailed description of the RIP processing unit 102)
Next, details of the
白ライン判定部202は、オブジェクト分割部201により生成されたオブジェクト情報に基づいて、判定対象とする1ライン(以後、注目ラインと呼ぶ)のオブジェクトが白ラインか否かを判定する。具体的な判定方法としては、注目ラインのオブジェクトにエッジが存在せず、且つ色が白の場合に、注目ラインは白ラインであると判定する。なお、判定方法の変形例として、他の公知技術を用いて判定しても良い。
Based on the object information generated by the
白ラインカウンタ203は、上記白ライン判定部202において、注目ラインが白ラインと判定された場合にインクリメントされる。即ち、白ラインの連続数がカウントされる。一方、上記白ライン判定部202において、注目ラインが白ラインではないと判定された場合は、0に初期化する。
The
スキップ抑制レジスタ206は、CPU103により算出された最小白ライン数が格納されている。最小白ライン数とは、上記RIP処理部でスキップ処理する際、最低限残す必要のある白ライン数を示したものである。上記最小白ライン数は後述する比較部204及びスキップ処理部205で使用される。
The
比較部204は、白ラインカウンタ203の値と最小白ライン数とを比較する。比較した結果、最小白ライン数よりも白ラインカウンタ203の値が大きい場合、比較部204は、白ラインの連続数が最低限残す必要のあるライン数を超えたことを示すTRUEを出力する。一方、最小白ラインが色ラインカウンタ203の値以下の場合、比較部204は、白ラインの連続数が最低限残す必要のあるライン数を超えていない、または白ラインではないことを示すFALSEを出力する。
The
レンダリング処理部205は、オブジェクト分割部201で生成された注目ラインのオブジェクト情報を入力する。そして、上記比較部204での比較結果に応じて、ラインごとにスキップ処理または画像データ生成処理の何れかを実行する。比較部204からTRUEが出力されている(つまり注目ラインが白ラインかつ最小白ライン数より大きい)場合、レンダリング処理部205は注目ラインの画像データを生成せず、スキップする。比較部205からFALSEが出力されている(つまり注目ラインが白ラインでないか、または白ラインかつ最小白ライン数以下)場合、レンダリング処理部205は注目ラインの画像データを生成し、メモリ(不図示)に格納する。
The
またレンダリング処理部205は、注目ラインに対して、スキップしたかどうかを示すスキップ情報を生成する。レンダリング処理部205は注目ラインの画像データ生成をスキップした場合(比較部204の出力がTRUE)は、スキップ情報を1とする。スキップせずに画像データを生成した場合(比較部204の出力がFALSE)は、スキップ情報を0とする。つまりスキップ情報は、1ページ分の画像データのライン数Hに相当する分、0または1の何れかの情報を示している。なお、スキップ情報は図示しないメモリに格納される。
In addition, the
(フィルタサイズに応じた最小白ライン情報の生成方法について)
次に、CPU103が生成する最小白ライン情報について説明する。前述の通りスキップ処理とは、レンダリング部205が画像データを生成する際に、白ラインをスキップ(省略)する手法である。図3に示す画像のPDLデータが入力されたとする。従来、図5に示すように、図3に示す画像において白ラインとして検出された全てのラインをスキップ(省略)してレンダリング処理する方法があった。図5のレンダリング結果からわかる通り、白領域A〜Cがスキップされ、オブジェクト領域Aにおけるオブジェクトとオブジェクト領域Bにおけるオブジェクトが隣接している。図5に示す画像データに対してフィルタ処理すると、白スキップ領域で隔てられた2つのオブジェクト領域をまたいでフィルタ処理を施すことになる。そのためオブジェクト領域Aの三角オブジェクトとオブジェクト領域Bの四角オブジェクトとの画素値が混ざることにより、画質劣化を引き起こしてしまう。
(About the generation method of the minimum white line information according to the filter size)
Next, the minimum white line information generated by the
そこで本実施形態では、RIP処理部102においてフィルタ処理に応じてスキップ処理を施す。CPU103はフィルタサイズに応じて最小白ライン数を算出し、RIP102は最小白ライン数を超える白ラインのみスキップ処理をする。ただし、最小白ライン数は、画像処理部104における最大フィルタサイズから算出されることが重要である。その理由を以下に示す。1例として画像処理部104に含まれるフィルタ処理のうち、最大フィルタサイズは5(5×5フィルタ)であるとする。図6は、最小白ライン数2に応じて、スキップ処理された場合の画像データに対するフィルタ処理を模式的に示す図である。図15(a)に示すような3×3のフィルタサイズによるフィルタ処理をする場合には、白ライン数が3以上あれば、オブジェクト領域間で異なるオブジェクトの画素値が混ざり合うことはない。しかしながら図6に示すように、オブジェクト領域Aとオブジェクト領域Bの間に白領域が2ライン存在していても、5×5のフィルタはオブジェクトをまたいでしまう。
Therefore, in the present embodiment, the
図7は、フィルタサイズ5に対応する最小白ライン数4(5−1)に応じてスキップ処理された画像データに対するフィルタ処理を模式的に示す図である。最小白ライン数が4なので、白領域Bの白ラインは4ライン残して、スキップ処理されている。この場合、図7に示すようにオブジェクト領域の境界に位置する画素にフィルタ処理をしても、三角オブジェクトと四角オブジェクトの画素値が混ざることはない。
FIG. 7 is a diagram schematically illustrating filter processing on image data skipped according to the minimum number of white lines 4 (5-1) corresponding to the
このように、画像処理部104に含まれるフィルタ処理が複数ある場合、最大フィルタサイズを用いて最小白ライン数を算出する。これにより、白ラインによって隔てられたオブジェクト領域の境界において、白ラインをスキップした結果異なるオブジェクトの画素値が混ざり合ってしまうのを防ぐ。
Thus, when there are a plurality of filter processes included in the
(全体動作)
次に図11に示すフローチャートを用いて、第1実施形態に係る画像処理装置の動作を説明する。
(Overall operation)
Next, the operation of the image processing apparatus according to the first embodiment will be described using the flowchart shown in FIG.
まずステップS1101においてCPU103は、画像処理部104に含まれるフィルタ処理に用いるフィルタサイズを取得し、最大フィルタサイズを特定する。本実施形態における画像処理部104では、5×5フィルタ処理部107に対応する最大フィルタサイズ5を取得する。
First, in step S1101, the
次にステップS1102においてCPU103は、式(1)に従って最小白ライン数を算出する。例えば、最大フィルタサイズが5である場合、最小白ライン数は4(5−1)となる。
MIN_LINE = F_SIZE − 1 ・・・(1)
MIN_LINE:最小白ライン数
F_SIZE : 最大フィルタサイズ
次にステップS1103においてCPU103は、RIP処理部102におけるスキップ抑制レジスタ110に最小白ライン数4を設定する。以上がCPU103による初期設定の説明である。
In step S1102, the
MIN_LINE = F_SIZE-1 (1)
MIN_LINE: Minimum number of white lines F_SIZE: Maximum filter size Next, in step S1103, the
次に、PDL処理部101からRIP処理部102までの動作を説明する。S1104においてPDL処理部101は、図示しないPC等からの印刷ジョブに含まれているPDLデータを解析し中間データを生成する。ステップS1105においてRIP処理部102は、中間データに基づいてラインごとにラスタ形式の画像データを生成する。注目ラインが白ラインかつ白ラインの連続数が最小白ライン数より大きいときには、注目ラインの画像データの生成はスキップする。それ以外、注目ラインが白ラインではない、または白ラインかつ白ラインの連続数が最小白ライン数以下の場合は、注目ラインの画像データを生成する。
Next, operations from the
またステップS1106においてRIP処理部102は、スキップ処理に応じてスキップ情報を生成する。スキップ情報はライン毎の1ビットの2値で表される。図12に示すスキップ情報の場合、上から3ラインと下から2ラインは0なので、スキップ処理されていないラインを示す。それ以外の3ラインは1なので、スキップ処理されているラインを示す。以上がPDL処理部101からRIP処理部102までの動作の説明である。
In step S1106, the
ここで本実施形態によるレンダリング処理の経過について、図3及び図4を用いて説明する。PDL処理部101から入力されるオブジェクト情報は、図3に示す18ラインの白地のオブジェクトと三角オブジェクト(斜線部分)及び四角オブジェクト(縦線部分)により構成されるものとする。また、最小白ライン数は2とする。
Here, the progress of the rendering process according to the present embodiment will be described with reference to FIGS. The object information input from the
この条件下においてスキップ処理されなかった場合、レンダリング後のラスタ画像データは、そのまま図3のようになる。白ラインからなる白領域A〜Cと三角オブジェクトが存在するオブジェクト領域A、及び四角オブジェクトが存在するオブジェクト領域Bで構成され、18ラインの画像データとなる。 When skip processing is not performed under this condition, the raster image data after rendering is as shown in FIG. It is composed of white areas A to C made up of white lines, an object area A in which a triangular object exists, and an object area B in which a square object exists, and becomes 18-line image data.
次に、図4(a)〜(f)を用いて、同条件下にて、本実施形態におけるRIP処理部102が処理した結果について説明する。まず、RIP処理部102は、図3に示す白領域A(ライン番号0)を処理する。連続する白ライン数は1なので、白ラインカウンタ203は1を示す。この場合、白ラインカウンタ203は最小白ライン数2以下なので、ライン番号0のラインはスキップ処理されない。即ち、RIP処理部102はそのままライン番号0の画像データを生成する。また、該当ラインがスキップ処理されていないことを示すために、スキップ情報に0が1ライン分追加される。これにより図4(a)に示す画像データがメモリに格納される。
Next, the results of processing performed by the
次に、図3に示すオブジェクト領域A(ライン番号1〜5)を処理する。オブジェクト領域Aに白ラインは存在しないので、白ラインカウンタ203は0を示す。この場合、白ラインカウンタ203は最小白ライン数2以下なのでスキップ処理されない。即ち、RIP処理部102はライン番号1〜5の画像データを生成する。また、該当ラインがスキップ処理されていないことを示すために、スキップ情報に0が5ライン分追加される。その結果、図4(b)に示す画像データがメモリに格納され、スキップ情報が更新される。
Next, the object area A (
次に、図3に示す白領域B(ライン番号6〜10)を処理する。まず、ライン番号6、7の処理について説明する。ライン番号6、7を処理する際はそれぞれ、連続する白ラインは1、2なので、白ラインカウンタ203はライン番号6を処理するときには1、ライン番号7を処理するときには2を示す。この場合、白ラインカウンタ203は最小白ライン数2以下なので、ライン番号6、7はいずれもスキップ処理せず、RIP処理部192はライン番号6、7の画像データを生成する。また、ライン番号6、7がスキップ処理されていないことを示すために、スキップ情報に0が2ライン分追加される。ライン番号8〜10の処理について説明する。連続する白ライン数は、ライン番号7から継続すると3〜5なので、白ラインカウンタ203は、ライン番号8を処理するときには3、ライン番号9を処理するときには4、ライン番号10を処理するときには5を示す。この場合、白ラインカウンタ203は最小白ライン数2よりも大きいため、ライン番号8〜10を注目ラインとするとスキップ処理される。即ち、RIP処理部102は、ライン番号8、9、10の画像データを生成しない。また、ライン番号8、9、10のラインがスキップ処理されていることを示すために、スキップ情報に1が3ライン分追加される。その結果、図4(c)に示す画像データがメモリに格納され、スキップ情報が更新される。
Next, the white area B (line numbers 6 to 10) shown in FIG. 3 is processed. First, the processing of line numbers 6 and 7 will be described. When the line numbers 6 and 7 are processed, the continuous white lines are 1 and 2, respectively. Therefore, the
次に、図3に示すオブジェクト領域B(ライン番号11〜13)を処理する。オブジェクト領域Bには白ラインは存在しないので、白ラインカウンタ203は0を示す。この場合、白ラインカウンタ203は最小白ライン数2以下なので、ライン番号11〜13はスキップ処理されない。即ち、RIP処理部102は、図3においてライン番号11、12、13の画像データを形成し、ラスタ画像データにおいてライン番号8、9、10の画像データをメモリに格納する。また、ライン番号11〜13がスキップ処理されていないことを示すために、スキップ情報に0が3ライン分追加される。その結果、図4(d)に示す画像データおよびスキップ情報が得られる。
Next, the object area B (
次に、図3に示す白領域C(ライン番号14〜17)を処理する。まず、ライン番号14、15の処理について説明する。ライン番号14、15を処理する際それぞれ、連続する白ライン数は1、2なので、白ラインカウンタ203はライン番号14を処理するときには1、ライン番号15を処理するときには2を示す。この場合、白ラインカウンタ203は最小白ライン数が2以下なので、ライン番号14、15はスキップ処理されない。即ちRIP102は、ライン番号14、15の画像データを形成し、ラスタ画像データにおけるライン番号11、12の画像データをメモリに格納する。また、ライン番号14、15のラインがスキップ処理されていないことを示すために、スキップ情報に2ライン分0が追加される。次に、図3においてライン番号16、17の処理について説明する。ライン番号16、17を処理する際の連続する白ライン数はそれぞれ、ライン番号12から継続すると3、4である。なので、白ラインカウンタ203は、ライン番号16を処理する際には3、ライン番号17を処理する際には4を示す。この場合、白ンカウンタ203は最小白ライン数2よりも大きいので、ライン番号16および17はスキップ処理される。即ち、RIP処理部102は、ライン番号16、17の画像データを形成しない。また、該当ラインがスキップ処理されていることを示すために、スキップ情報に2ライン分1が追加される。その結果、図4に示すラスタ画像データおよびスキップ情報が得られる。
Next, the white area C (
以上に示したようにRIP処理部102で処理した場合の出力画像データは最終的に図4(f)のように13ラインの画像データとなる。即ち、18ライン中5ラインがスキップ処理された画像データとして出力される。
As described above, the output image data when processed by the
次に図11に戻り、画像処理部104から印刷部105までの動作を説明する。ステップS1108において画像処理部104は、スキップ処理を含むレンダリング処理後のラスタ画像データに対して画像処理を実行する。なお画像処理104では、図1には説明簡略化のため第1フィルタ処理部106と第2フィルタ処理部107のみ記載しているが、それ以外の変倍処理や色変換処理やハーフトーン処理なども行われる。なお、変倍処理がある場合には、スキップ情報も変倍される。そしてステップS1109において印刷部105は、画像処理部104で生成された画像データを取得し、RIP処理部102から取得するスキップ情報に基づいて、スキップ処理された白ラインを復元する。印刷部105は復元した画像データに基づいて、記録媒体上に画像を印刷する。以上のように本実施形態によれば、画像処理部104におけるフィルタ処理に用いられるフィルタサイズに応じて、レンダリングにおけるスキップ処理の白ライン量を調節する。これによって、スキップ処理の結果生じるフィルタ処理による画像劣化を抑制することができる。
Next, returning to FIG. 11, the operation from the
なお、本実施形態のスキップ情報は1または0が連続したデータである。そのため、ランレングス圧縮などの圧縮方法にてデータを圧縮することで、データ量の大幅な削減が見込めることは言うまでもない。また、本実施形態では、白ラインをスキップ処理対象として説明したが、単一の画素値(例えば、黒)からなるラインをスキップ処理してもよい。あるいは、画素値が所定値(例えば、2)以下を白画素と見なして白ラインを設定することで、ノイズを含む画素からなる白ラインを検出することもできる。 Note that the skip information in the present embodiment is data in which 1 or 0 continues. Therefore, it goes without saying that a significant reduction in the amount of data can be expected by compressing the data by a compression method such as run length compression. Further, in the present embodiment, the white line has been described as a skip processing target, but a line composed of a single pixel value (for example, black) may be skipped. Alternatively, it is possible to detect a white line including pixels including noise by setting a white line by regarding a pixel value of a predetermined value (for example, 2) or less as a white pixel.
<第2実施形態>
図13は本発明の第2実施形態に係る画像処理装置の全体構成を示すブロック図である。第1実施形態では、CPU103が画像処理部104における各パラメータを直接設定した。第2実施形態では、画像処理部1304内に制御部1309を備える場合を例に説明する。また、第2実施形態におけるCPU1303は、制御部1309を経由して、画像処理部1304の画像処理サブモジュール1308(図13では、第1フィルタ処理部1306及び第2フィルタ処理部1307)に対して、スルー設定可能な構成をもつ。スルー設定された画像処理サブモジュール1308内の処理部、は何も処理せず入力をそのまま出力する。このようにして、ユースケース(モード)によって、画像処理部104で使用する画像処理サブモジュール1308を選択することができる。例えばモードAにおいては、第1フィルタ処理部1306および第2フィルタ処理部1307いずれもスルー設定せず、モードBにおいて第2フィルタ処理部1307をスルー設定する。つまりモードAでは、3×3のフィルタサイズのフィルタを用いた第1フィルタ処理1306のみがラスタ画像データに対して実行される。なお、図13における符号1301〜1302、符号1305〜1307それぞれは、図1における符号101〜102、符号105〜107と構成が同じであるため説明を省略する。
Second Embodiment
FIG. 13 is a block diagram showing the overall configuration of an image processing apparatus according to the second embodiment of the present invention. In the first embodiment, the
第1実施形態においてCPU103は、第1フィルタ処理106および第2フィルタ処理107における回路構成のうち、最大フィルタサイズを取得した。これは、ユースケースが変わったとしても、RIP処理部102へ入力される最小白ライン数が変わらないため、RIP処理部102と画像処理部104の同期は簡単になる。しかしながら、ユースケースによっては、第1実施形態では冗長な処理がなされる場合がある。例えば、モードAにおいて第1フィルタ処理部106および第2フィルタ処理部107の両方を使用し、モードBにおいては、第1フィルタ処理部106のみ使用する。この場合、第1実施形態では、常に最小白ライン数は、第2フィルタ処理107に合わせた4に設定されるが、最小白ライン数4はモードAの最適値であって、モードBの最適値ではない。そこで第2実施形態では、モードに応じてより適応的に最大フィルタサイズに応じた最小白ライン数を設定可能とする方法について説明する。
In the first embodiment, the
(最小白ライン数の算出方法について)
CPU1303における最小白ライン数の算出方法を以下に示す。ただし、第1実施形態と異なる点のみ説明する。まずCPU1303は、画像処理部1304におけるユースケースを取得する。取得したユースケースにおいて使用される画像処理サブモジュール1308の中で最大フィルタサイズを取得する。例えば、画像処理サブモジュール1308のうちスルー設定されない処理部だけをピックアップし、その中で最大のフィルタサイズを取得すればよい。次に、CPU1303は、式(1)に従って最小白ライン数を算出する。以後の動作は、第1実施形態で説明したCPU103の動作と同様なため割愛する。
(How to calculate the minimum number of white lines)
A method for calculating the minimum number of white lines in the
(RIP処理部1302と画像処理部1304の同期)
RIP処理部1302と画像処理部1304において、同じ画像に対して処理を実行するタイミングが異なる。そのため、RIP処理部1302に与える最小白ライン数の切り替えを効率よくするためには、その切り替えタイミングに注意が必要である。例えば図8(a)は、画像処理部1304の処理時におけるモードBからモードAに切り替わるタイミングと同じタイミングで最小白ライン数の値を切り替えた場合を説明する図である。このような場合、RIP処理部1302に設定される最小白ライン数の値は、モードAに対応する印刷指示が入力してから、所定時間後に切り替わる。そのため、図8(a)に示すNG期間において、モードAに対応する画像データに対して、モードBに対応する最小白ライン数に基づいてスキップ処理がなされてしまう。これにより、冗長なデータを処理する場合だけでなく、画質劣化を引き起こす場合がある。
(Synchronization of
The
上記を回避するためには、例えば、図8(b)に示すように、RIP処理部1302においてモードBに対応する処理からモードAに対応する処理に切り替わるタイミングにおいて、最小白ライン数の値を切り替えた方が良い。これによって、モードAに対応する画像データにて、モードBに対応するスキップ処理がなされるといったことが起こるのを防ぐ。
In order to avoid the above, for example, as shown in FIG. 8B, the value of the minimum number of white lines is set at the timing when the
以上のように本実施形態によれば、ユースケース(モード)によって、使用されるフィルタサイズの最大値が変わる場合にも対応できる。即ち、ユースケースに伴う画像処理のフィルタサイズに応じて、スキップ処理時の白ライン量を調節する。これにより、スキップ処理による画像劣化を抑制することができる。 As described above, according to the present embodiment, it is possible to cope with the case where the maximum value of the filter size to be used varies depending on the use case (mode). In other words, the amount of white lines during skip processing is adjusted according to the filter size of image processing associated with the use case. Thereby, image degradation due to skip processing can be suppressed.
<第3実施形態>
第1実施形態では、PDL処理部101及びRIP処理部102を実装していたが、最小白ライン数に応じて、スキップ処理時の白ライン量を調節し、且つスキップ情報を出力する条件を伴っていることが重要である。即ち、PDL処理部101及びRIP処理部102の代わりに上記条件を満たしたスキャナ系画像処理(スキャナで取り込んだデータを画像処理する)であっても同様の実施形態を実現できる。その構成例を以下に示す。
<Third Embodiment>
In the first embodiment, the
(全体構成)
図9は、第3実施形態に適用可能な画像処理装置の全体構成を示すブロック図である。第1実施形態の全体構成を示す図1と異なる構成は、画像取得部901とスキャナ画像処理部902、CPU903である。それ以外の符号904〜907は、図1に示す符号104〜107と同じ構成であるため、説明を省略する。
(overall structure)
FIG. 9 is a block diagram showing an overall configuration of an image processing apparatus applicable to the third embodiment. A configuration different from FIG. 1 showing the overall configuration of the first embodiment is an
画像取得部901は、図示しないラインイメージセンサを用いて、原稿を読み取った画像データを取得する。スキャナ画像処理部902は、画像取得部901が取得した読取画像データに対し、補正、加工、編集を行う。例えば、シェーディング補正や文字加工、ノイズ除去などである。また、上記に加え、スキャナ画像処理902はCPU903から出力された最小白ライン数に基づいて、スキップ処理を行う。またスキャナ画像処理部902は、スキップ処理されたライン位置を示すスキップ情報を生成する。スキャナ画像処理部902の詳細は後述する。
The
CPU903は、第1実施形態のCPU103と同様の動作を行う。ただし、スキャナ画像処理部902にフィルタ処理が含まれる場合があるので、プリント画像処理904とスキャナ画像処理902の中で最大のフィルタサイズにて最小白ライン数を生成する必要がある。
The
(スキャナ画像処理部902)
次に図10のブロック図を用いて、スキャナ画像処理部902の詳細について説明する。シェーディング補正部1001は、画像取得部901が取得した画像データの主走査方向のムラをフラットに補正する。
(Scanner image processing unit 902)
Next, details of the scanner
スキップ処理部1002は、シェーディング補正部1001で補正された画像データの白ラインに対して、その連続白ライン数がCPU903により算出された最小白ライン数を超えないように白ラインを削除する。また、それに応じてスキップ情報を生成する。スキップ情報は、第1実施形態で説明したスキップ情報と同様である。
The
画像処理部1003は、図示しない画像処理サブモジュール群を備え、上記スキップ処理部1002が生成したスキップ処理後の画像データに対し、文字加工、ノイズ除去などの画像処理を施す。
The
以上のように本実施形態によれば、画像処理部904の前段処理は最小白ライン数に応じて、スキップ処理時の白ライン量を調節し、且つスキップ情報を出力する条件を伴っていればよい。即ち、本実施形態にようにスキャナ系画像処理がスキップ処理時の白ライン量を調節することによって、スキップ処理による画像劣化を抑制する画像処理装置を提供することができる。
As described above, according to the present embodiment, the pre-processing of the
<第4実施形態>
図14は、第4実施形態に適用可能な画像処理装置の全体構成を示すブロック図である。
<Fourth embodiment>
FIG. 14 is a block diagram showing an overall configuration of an image processing apparatus applicable to the fourth embodiment.
第1実施形態の全体構成を示す図1と異なる点は、画像処理1404の内部に最小白ライン数算出部1411及びスキップ情報変換部1412が実装されている点である。また、最小白ライン数算出部1411から直接スキップ抑制レジスタ1410に書き込まれる点が異なる。また、RIP処理1402で生成されたスキップ情報がスキップ情報変換部1412に入力されている点が異なる。それ以外の符号1401〜1410は、図1に示す符号101〜110と構成が同じであるため、説明を省略する。
A difference from FIG. 1 showing the overall configuration of the first embodiment is that a minimum white line
第1実施形態では、CPU103が画像処理部104のフィルタサイズから最小白ライン数を算出していた。また、第2実施形態ではプリント画像処理部104のユースケースに従って、スキップ情報が変わる場合は、CPU103にて対応していた。そのため、RIP処理102と画像処理部104の同期にはCPU103が不可欠だった。
In the first embodiment, the
第4実施形態では、CPUなしに、RIP処理とプリント画像処理の同期をとる方法について説明する。 In the fourth embodiment, a method for synchronizing RIP processing and print image processing without a CPU will be described.
最小白ライン数算出部1411は、画像処理部1404のフィルタサイズを取得し、式(1)を用いて最小白ライン数を算出する。そして、スキップ抑制レジスタ1410に、最小白ライン数を格納する。
The minimum white line
スキップ情報変換部1412は、RIP処理部1402から出力されたスキップ情報を入力する。そして、ユースケースに伴ってスキップ情報に変更が生じる場合には、それに対応する。例えば、変倍処理がある場合にはスキップ情報も変倍する。
The skip
以上説明したように第4実施形態によれば、CPU1403なしで、RIP処理部1402とプリント画像処理部1404の間のデータの同期が可能になる。
As described above, according to the fourth embodiment, it is possible to synchronize data between the
<その他の実施形態>
前述の実施形態として、レンダリング処理部やスキャナ画像処理部が実行するスキップ処理の対象とするラインを白ラインとして説明した。しかしながら、スキップ処理の対象とする特定の条件は、白画素からなるライン以外にも適用可能である。例えば、スキップ処理の対象となる特定の条件を、黒画素からなるラインとして設定することで、黒ラインをスキップ処理の対象とする。スキップ処理の対象として設定される特定ラインを検出し、後段のフィルタ処理に用いられるフィルタサイズに応じて最小特定ライン数を算出する。そして、レンダリング処理部やスキャナ画像処理部が最小特定ライン数に応じてスキップ処理をすることで、前述の実施形態と同様の効果を得ることができる。
<Other embodiments>
In the above-described embodiment, the line that is the target of the skip processing executed by the rendering processing unit and the scanner image processing unit has been described as a white line. However, the specific condition to be skipped can be applied to lines other than white pixels. For example, by setting a specific condition that is a target of the skip process as a line composed of black pixels, the black line is a target of the skip process. A specific line set as a target of the skip process is detected, and the minimum number of specific lines is calculated according to the filter size used for the subsequent filter process. The rendering processing unit and the scanner image processing unit perform the skip processing according to the minimum number of specific lines, so that the same effect as that of the above-described embodiment can be obtained.
また本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。 In addition, the present invention supplies a program that realizes one or more functions of the above-described embodiment to a system or apparatus via a network or a storage medium, and one or more processors in a computer of the system or apparatus read the program. It can also be realized by processing to be executed. It can also be realized by a circuit (for example, ASIC) that realizes one or more functions.
101 PDL処理得部
102 RIP処理部
103 CPU
104 画像処理部
105 印刷部
106 3×3フィルタ処理部
107 5×5フィルタ処理部
110 スキップ抑制レジスタ
101 PDL
104
Claims (10)
PDLデータにおける白ラインを検出する検出手段と、
前記PDLデータをレンダリングするレンダリング処理手段と、
前記レンダリング処理手段によって得られる画像データが表す各画素に対して、複数の画素を参照して画素値を変換するためのフィルタを用いたフィルタ処理を実行するフィルタ処理手段と、
前記フィルタ処理手段に用いられるフィルタのサイズに応じてPDLデータに含まれる白ラインの一部をスキップしてレンダリングすることを特徴とする画像処理装置。 An image processing apparatus that performs image processing on image data,
Detecting means for detecting white lines in the PDL data;
Rendering processing means for rendering the PDL data;
Filter processing means for executing filter processing using a filter for converting pixel values with reference to a plurality of pixels for each pixel represented by image data obtained by the rendering processing means;
An image processing apparatus that performs rendering by skipping a part of a white line included in PDL data in accordance with a size of a filter used in the filter processing unit.
前記設定手段は、前記複数のフィルタ処理手段のうち、最大のフィルタサイズに基づいて、前記最小白ライン数を設定することを特徴とする請求項1または2に記載の画像処理装置。 The image processing means includes a plurality of filter processing means having different filter sizes,
The image processing apparatus according to claim 1, wherein the setting unit sets the minimum number of white lines based on a maximum filter size among the plurality of filter processing units.
前記画像処理手段は、フィルタサイズの異なる複数のフィルタ処理手段を有し、
前記モードは、前記複数のフィルタ処理手段のうち画像処理に使用するフィルタ処理手段が異なるモードであって、
前記設定手段は、前記モードに応じて最小白ライン数を設定することを特徴とする請求項1または2に記載の画像処理装置。 Furthermore, it has an input means for inputting a mode for executing at least two different image processes,
The image processing means includes a plurality of filter processing means having different filter sizes,
The mode is a mode in which filter processing means used for image processing among the plurality of filter processing means is different,
The image processing apparatus according to claim 1, wherein the setting unit sets a minimum number of white lines according to the mode.
前記レンダリング処理手段は、ラインごとにスキップしたかどうかを示すスキップ情報を生成し、
前記印刷手段は、前記スキップ情報に基づいて、前記画像処理された画像データを復元した後に印刷することを特徴とする請求項1乃至5の何れか一項に記載の画像処理装置。 Furthermore, it has a printing means for printing an image on a recording medium based on the image processed image data obtained from the image processing means,
The rendering processing unit generates skip information indicating whether or not each line is skipped,
The image processing apparatus according to claim 1, wherein the printing unit performs printing after restoring the image processed image data based on the skip information.
記録媒体上の画像を読み取る読取手段と、
前記読取手段によって読み取られた画像データに対して、前記読取手段に応じた画像処理を実行する第一の画像処理手段と、
前記読取手段が読み取った画像データにおける白ラインを検出する検出手段と、
前記第一の画像処理手段から得られる画像データが表す各画素に対して、複数の画素を参照して画素値を変換するためのフィルタを用いたフィルタ処理を実行するフィルタ処理手段と、
前記フィルタ処理手段に用いられるフィルタのサイズに応じて前記読取手段によって読み取られた画像データに含まれる白ラインの一部をスキップして画像処理することを特徴とする画像処理装置。 An image processing apparatus that reads an image on a recording medium and performs image processing for printing the image on the recording medium based on the read image,
Reading means for reading an image on a recording medium;
First image processing means for executing image processing according to the reading means on the image data read by the reading means;
Detecting means for detecting a white line in the image data read by the reading means;
Filter processing means for executing filter processing using a filter for converting a pixel value with reference to a plurality of pixels for each pixel represented by image data obtained from the first image processing means;
An image processing apparatus that performs image processing by skipping a part of white lines included in image data read by the reading unit in accordance with a size of a filter used in the filter processing unit.
PDLデータにおける所定の画素値を有する特定ラインを検出する検出手段と、
前記PDLデータをレンダリングするレンダリング処理手段と、
前記レンダリング処理手段によって得られる画像データが表す各画素に対して、複数の画素を参照して画素値を変換するためのフィルタを用いたフィルタ処理を実行するフィルタ処理手段と、
前記フィルタ処理手段に用いられるフィルタのサイズに応じてPDLデータに含まれる特定ラインの一部をスキップしてレンダリングすることを特徴とする画像処理装置。 An image processing apparatus that performs image processing on image data,
Detecting means for detecting a specific line having a predetermined pixel value in the PDL data;
Rendering processing means for rendering the PDL data;
Filter processing means for executing filter processing using a filter for converting pixel values with reference to a plurality of pixels for each pixel represented by image data obtained by the rendering processing means;
An image processing apparatus that performs rendering while skipping a part of a specific line included in PDL data according to a size of a filter used in the filter processing unit.
PDLデータにおける白ラインを検出し、
前記PDLデータをレンダリングするレンダリング処理を施し、
前記レンダリング処理によって得られる画像データが表す各画素に対して、複数の画素を参照して画素値を変換するためのフィルタを用いたフィルタ処理を実行し、
前記フィルタ処理に用いられるフィルタのサイズに応じてPDLデータに含まれる白ラインの一部をスキップしてレンダリングすることを特徴とする画像処理方法。 An image processing method for performing image processing on image data,
Detect white lines in PDL data,
A rendering process for rendering the PDL data;
For each pixel represented by the image data obtained by the rendering process, a filter process using a filter for converting a pixel value with reference to a plurality of pixels is performed,
An image processing method characterized by skipping a part of a white line included in PDL data in accordance with a size of a filter used for the filter processing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2014237000A JP2016100785A (en) | 2014-11-21 | 2014-11-21 | Image processing apparatus, image processing method, and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2014237000A JP2016100785A (en) | 2014-11-21 | 2014-11-21 | Image processing apparatus, image processing method, and program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2016100785A true JP2016100785A (en) | 2016-05-30 |
Family
ID=56077616
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2014237000A Pending JP2016100785A (en) | 2014-11-21 | 2014-11-21 | Image processing apparatus, image processing method, and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2016100785A (en) |
-
2014
- 2014-11-21 JP JP2014237000A patent/JP2016100785A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6706985B2 (en) | Image processing apparatus and control method thereof | |
US9477914B2 (en) | Image processing apparatus, method, and medium for converting page image data | |
JP2017092872A (en) | Image processing apparatus and image processing method | |
JP4803288B2 (en) | Pixel interpolation device, pixel interpolation method, and image reading device | |
JP5485277B2 (en) | Video interpolating apparatus and method using region segmentation | |
JP6840884B2 (en) | Image processing system and image processing method | |
JP5451313B2 (en) | Image processing apparatus, image processing method, and program | |
JP6338469B2 (en) | Image processing apparatus and image processing method | |
JP2017200042A (en) | Image forming device | |
JP2007200170A (en) | Image processor and image processing program | |
JP4501791B2 (en) | Image processing method and image processing program | |
JP2013026991A (en) | Image processing device, image forming device, and program | |
US8743419B2 (en) | Image processing apparatus and method converting low-resolution image to high-resolution using signal value patterns | |
JP2020145661A (en) | Image processing device, control method thereof, and program | |
JP2002232654A (en) | Device and method for image processing and computer readable recording medium with program for making computer perform the method recorded thereon | |
JP2016100785A (en) | Image processing apparatus, image processing method, and program | |
JP5515552B2 (en) | Pixel interpolation device, pixel interpolation method, and image reading device | |
JP4802853B2 (en) | Image processing apparatus and image processing program | |
JP6230467B2 (en) | Image processing apparatus and image processing method | |
JP5034131B2 (en) | Image processing controller, image processing method, and image processing program | |
JP4863846B2 (en) | Color image forming apparatus and color image processing apparatus | |
JP6805874B2 (en) | Image processing equipment, image processing methods and programs | |
JP2012142898A (en) | Image size conversion apparatus, method and program | |
KR100860995B1 (en) | Method and device for increasing image resolution | |
JP5656790B2 (en) | Image processing apparatus and image forming apparatus |